GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Over 1000 memory references, 40 miss in L1 and 20 of those also miss in L2. L1 hit time is 1 cycle, L2 hit time 10 cycles, and memory adds 100 cycles; each level is searched only after the previous one misses. There are 1.5 memory references per instruction. What are the average memory access time and the memory-stall cycles per instruction (cycles beyond the 1-cycle hit)?

  1. A. 3.4 cycles; 5.1 per instruction
  2. B. 3.4 cycles; 3.6 per instruction
  3. C. 1.5 cycles; 0.7 per instruction
  4. D. 3.4 cycles; 2.4 per instruction

Correct answer: B. 3.4 cycles; 3.6 per instruction

L1 miss rate 4%; L2 local miss rate 20/40 = 50% (global 2%). AMAT = 1 + 0.04 × (10 + 0.5 × 100) = 3.4. Stalls per reference = 2.4, per instruction 1.5 × 2.4 = 3.6. Using the 2% global rate as if local gives about 1.5; forgetting the 1.5 references per instruction gives 2.4.

More Computer Organization and Architecture questions

Exams that ask this topic