GATE 2022 CS – Question 33
A cache memory that has a hit rate of 0.8 has an access latency 10 ns and miss penalty 100 ns. An optimization is done on the cache to reduce the miss rate. However, the optimization results in an increase of cache access latency to 15 ns, whereas the miss penalty is not affected. The minimum hit rate (rounded off to two decimal places) needed after the optimization such that it should not increase the average memory access time is _____________.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: 0.85
Explanation
Average memory access time (AMAT) $=$ hit time $+$ miss rate $\times$ miss penalty.
**Before:** hit time 10 ns, hit rate 0.8, miss penalty 100 ns:
$$\text{AMAT}_{before}=10+0.2\times100=30\text{ ns}.$$
**After:** hit time 15 ns, hit rate $h$, miss penalty still 100 ns. We need AMAT not to increase:
$$15+(1-h)\times100\le30\ \Rightarrow\ 1-h\le0.15\ \Rightarrow\ h\ge\mathbf{0.85}.$$