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 ____.
GATE 2022 CS Q.33: solution and answer
Answer and solution
ANSWER
The minimum hit rate needed after optimization is 0.85.
Official answer: 0.85Source: Official answer key, GATE 2022 CS (IIT Kharagpur)
Recall AMAT (Average Memory Access Time) formula: .
Compute AMAT before optimization: .
Let be the new (post-optimization) hit rate. Then .
The optimization must not increase AMAT, so require : .
Simplify: .
Solve for : .
Minimum hit rate needed = .
KEY IDEA
Average Memory Access Time (AMAT) = Hit time + Miss rate × Miss penalty. To keep AMAT unchanged after a latency increase, the miss rate (equivalently, hit rate) must improve enough to offset the added hit-time cost.
WATCH OUT FOR
Forgetting that AMAT uses (1 − hit rate) as the miss rate, or comparing the new access latency directly to the old AMAT instead of setting up the inequality AMAT_new ≤ AMAT_old and solving for h.
From the GATE 2022 CS paper. Every question of this paper · Download the full paper · All 22 Memory & cache questions, with notes
More Memory & cache questions
- GATE 2020 CS Q.20 · NAT · 1 markIf there are m input lines and n output lines for a decoder that is used to uniquely address a byte…
- GATE 2020 CS Q.21 · NAT · 1 markA direct mapped cache memory of 1 MB has a block size of 256 bytes. The cache has an access time of 3 ns and…
- GATE 2020 CS Q.30 · MCQ · 2 marksA computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way…
- GATE 2018 CS Q.23 · NAT · 1 markA 32-bit wide main memory unit with a capacity of 1 GB is built using 256M × 4-bit DRAM chips.
