GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 33

GATE CSE 2022 Q33

Computer Organization & Architecture · Cache Memory · Full GATE CSE 2022 paper

GATE 2022, Q33 1 mark · NAT
Report issue

Cache Memory

Question 33, GATE 2022: A cache initially has hit rate 0.8, lookup latency 10 ns and additional miss penalty 100 ns. An optimization increases lookup latency to 15 ns, leaving miss penalty unchanged. What minimum new hit rate prevents AMAT increasing? Round to two decimals.
Tap to enlarge
Answer & solution

Official answer: 0.85

Originally the average access time is 10+(1−0.8)100=30 ns. With the slower 15 ns cache it becomes 15+(1−h)100. Requiring this to be at most 30 gives h≥0.85, so the minimum hit ratio is 0.85. The 100 ns miss penalty is additional to the cache lookup, as in the standard AMAT formula.

Solve 15+100−100h≤30: 100h≥85, hence h≥0.85. At exactly 0.85 the AMAT is 15+15=30 ns. A smaller rate would cause the extra cache latency to outweigh the miss-rate improvement.

Original paper, page 23 · Answer key