Memory Hierarchy
Why must cache designs be compared by average memory access time rather than miss rate alone?
- AMiss rate cannot be measured, while average memory access time is easy to measure
- BA lower miss rate may come with a longer hit time and a slower average
- CAverage memory access time depends only on the miss rate, not the hit time
Show answer and explanation
Answer: B. A lower miss rate may come with a longer hit time and a slower average
More associativity or capacity lowers the miss rate but can lengthen the hit time. Comparing a 1-cycle hit with a 5% miss rate against a 2-cycle hit with a 4% miss rate, at a 20-cycle miss penalty, gives 1 + 0.05 × 20 = 2.0 versus 2 + 0.04 × 20 = 2.8, so the lower miss rate is slower. Average memory access time depends on hit time, miss rate and miss penalty together. Miss rates can be measured with performance counters and similar tools.
- A. Miss rates can be measured with performance counters and the like.
- B. Correct. A better miss rate can be offset by a worse hit time.
- C. The average depends on hit time, miss rate and miss penalty.