GATE Computer ScienceHardGATE CS (PYQ pattern)

A direct-mapped cache has a 1-cycle hit time, a 4% miss rate and a 40-cycle miss penalty on a 1.0 ns clock. A 2-way version also hits in 1 cycle but stretches the clock of the whole processor to 1.1 ns; its miss penalty is still 40 cycles. Below what miss rate must the 2-way cache stay to give a lower average access time in ns?

  1. A. 3.41%
  2. B. 3.75%
  3. C. 3.64%
  4. D. 4.00%

Correct answer: A. 3.41%

DM: (1 + 0.04 × 40) × 1.0 = 2.6 ns. 2-way: (1 + 40m) × 1.1 < 2.6 → 1 + 40m < 2.364 → m < 3.41%. Treating the 40-cycle penalty as 40 ns (unstretched) gives 3.75%; scaling the miss rate by 1/1.1 gives 3.64%.

More Computer Organization and Architecture questions

Exams that ask this topic