GATE Computer ScienceHardGATE CS (PYQ pattern)

Design 1 is a direct-mapped cache (hit 1.0 ns, miss rate 6%) with a victim buffer that catches 25% of its misses for 1 ns extra; the other 75% go to memory (40 ns). Design 2 is a 2-way set-associative cache (hit 1.1 ns, miss rate 4%) with the same 40 ns memory and no victim buffer. Which has the lower average access time, and by what factor?

  1. A. Design 2, by 1.037×
  2. B. Design 1, by 1.043×
  3. C. Design 2, by 1.259×
  4. D. Design 2, by 1.043×

Correct answer: D. Design 2, by 1.043×

Design 1: 1 + 0.06 × (0.25 × 1 + 0.75 × 40) = 2.815 ns. Design 2: 1.1 + 0.04 × 40 = 2.7 ns. Ratio 1.043. Forgetting the victim-buffer access time gives 1.037; ignoring the buffer altogether gives 3.40/2.70 = 1.259.

More Computer Organization and Architecture questions

Exams that ask this topic