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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.