GATE Computer ScienceHardGATE CS (PYQ pattern)

A write-back cache has 64-byte blocks, 2 ns hit time and 5% miss rate. Over an 8-byte bus, memory delivers the first 8 bytes 60 ns after a request and each further 8 bytes 10 ns later; writing a block back takes the same time as fetching one. 30% of misses evict a dirty block, which is written back before the new block is fetched, and the processor waits for the whole block. What is the average access time?

  1. A. 8.50 ns
  2. B. 15.00 ns
  3. C. 5.90 ns
  4. D. 10.45 ns

Correct answer: D. 10.45 ns

Block transfer = 60 + 7 × 10 = 130 ns. Miss penalty = 130 + 0.3 × 130 = 169 ns. AMAT = 2 + 0.05 × 169 = 10.45 ns. Ignoring dirty write-backs gives 8.50; writing back on every miss gives 15.00; waiting only for the first 8 bytes gives 5.90.

More Computer Organization and Architecture questions

Exams that ask this topic