GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A direct-mapped L1 has hit time 1 cycle and miss rate 5%. A small victim cache catches 30% of the L1 misses at a cost of 2 cycles (instead of going lower). The remaining 70% go to an L2 with 12-cycle hit time and 25% local miss rate; memory takes 100 cycles. What is the average memory access time in cycles?

  1. A. 2.325
  2. B. 2.765
  3. C. 3.150
  4. D. 2.045

Correct answer: A. 2.325

AMAT = 1 + 0.05 × (0.3 × 2 + 0.7 × (12 + 0.25 × 100)) = 1 + 0.05 × (0.6 + 25.9) = 2.325. Applying the victim-cache saving to all misses, or forgetting that only the remaining 70% reach L2, gives the other values.

More Computer Organization and Architecture questions

Exams that ask this topic