GATE / CS ARCHIVE

GATE CSE 2025 SET 1 / QUESTION 53

Averaging cumulative memory-access path times

Computer Organization & Architecture · Cache Memory · Full GATE CSE 2025 Set 1 paper

GATE 2025 Set 1, Q53 2 marks · NAT
Report issue

Cache Memory

Question 53, GATE 2025: Memory is searched in order L1,L2,main memory. L1 has 95% hit rate and 10 ns access time. L2 has 85% hit rate conditional on an L1 miss; its 20 ns time already includes the L1 miss penalty. Main-memory access is 200 ns including both cache miss penalties. Find average access time in ns to two decimals.
Tap to enlarge
Answer & solution

Official answer: 11.83 to 11.87

Our answer: 11.85

Approach: Partition accesses into mutually exclusive completion paths and weight the total time of each path.
An L1 hit has probability 0.95 and total time 10 ns. An L1 miss followed by an L2 hit has probability 0.05×0.85=0.0425 and total time 20 ns. Missing both caches has probability 0.05×0.15=0.0075 and total time 200 ns. These probabilities sum to 1.
The expected time is therefore 0.95×10+0.0425×20+0.0075×200=9.50+0.85+1.50=11.85 ns.
The word “including” in the diagram is essential: adding 10 ns again to the L2 or memory path would double-count time already included. Likewise the 85% L2 hit rate applies only to accesses reaching L2, not to all processor requests.

Original paper, page 53 · Answer key