GATE Computer ScienceHardGATE CS (PYQ pattern)

On a processor with base CPI 1.0, the L1 cache has 40 misses per 1000 instructions. Of these, 10 per 1000 instructions also miss in the L2 (global rate). An L2 hit adds 10 cycles to an L1 miss and a memory access adds 100 cycles. What is the CPI?

  1. A. 1.5
  2. B. 2.4
  3. C. 2.1
  4. D. 5.4

Correct answer: B. 2.4

Every L1 miss pays the L2 access: 0.04 × 10 = 0.4. Only L2 misses pay memory: 0.01 × 100 = 1.0. CPI = 2.4. Charging memory time to all L1 misses gives 5.4.

More Computer Organization and Architecture questions

Exams that ask this topic