A cache has a hit time of 1 cycle, a miss rate of 5% and a miss penalty of 100 cycles. What is the average memory access time?
Correct answer C. 6 cycles
Explanation
AMAT = hit time + miss rate x miss penalty = 1 + 0.05 x 100 = 6 cycles. Every access pays the hit time because the cache is checked first, and misses pay the penalty on top. 5 cycles forgets the hit time, and 5.95 cycles applies the hit time only to the 95% of hits, which is the wrong model when the penalty is measured beyond the cache lookup.
Answer checked How we write and check questions
Discussion