Chapter 6: Q20E (page 573)
Assume a quad-core computer system can process database queries at a steady state rate of requests per second. Also assume that each transaction takes, on average, a fixed amount of time to process. The following table shows pairs of transaction latency and processing rate.
Average Transaction Latency | Minimum transaction processing rate |
1 ms | 5000/sec |
2 ms | 5000/sec |
1 ms | 10,000/sec |
2 ms | 10,000/sec |
For each of the pairs in the table, answer the following questions:
(6.20.1) On average, how many requests are being processed at any given instant?
(6.20.2) If move to an 8-core system, ideally, what will happen to the system throughput (i.e., how many queries/second will the computer process)?
(6.20.3) Discuss why we rarely obtain this kind of speedup by simply increasing the number of cores.
Short Answer
(6.20.1)
Average Transaction Latency | Minimum transaction processing rate | Average number of requests being processed |
1 ms | 5000/sec | 1.25 |
2 ms | 5000/sec | 2.5 |
1 ms | 10,000/sec | 2.5 |
2 ms | 10,000/sec | 5 |
(6.20.2)
The system throughput doubles with 8-core system.
(6.20.3)
Memory contention is the reason for not obtaining speedup by simply increasing the number of cores.