GATE Computer ScienceHardGATE CS (PYQ pattern)

A write-back, write-allocate cache has a 2 ns hit time and a 5% miss rate. A miss that evicts a clean block costs 40 ns; a miss that evicts a dirty block costs 70 ns in total (write-back plus fetch). What is the largest fraction of misses that may evict dirty blocks if the average access time must stay at or below 4.5 ns?

  1. A. 33.3%
  2. B. 14.3%
  3. C. 25.0%
  4. D. 50.0%

Correct answer: A. 33.3%

AMAT = 2 + 0.05 × (40(1 − d) + 70d) = 2 + 0.05 × (40 + 30d) ≤ 4.5 → 40 + 30d ≤ 50 → d ≤ 1/3. Adding the full 70 ns on top of the 40 ns for dirty misses (40 + 70d ≤ 50) gives 14.3%.

More Computer Organization and Architecture questions

Exams that ask this topic