GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A program has base CPI 1.2 and makes 1.4 memory references per instruction. Per memory reference, 3% miss in L1 and 1.2% miss in L2 (a global rate). An L1 miss costs 12 cycles to reach L2, and an L2 miss costs a further 150 cycles. What is the CPI?

  1. A. 3.360
  2. B. 1.780
  3. C. 4.224
  4. D. 8.004

Correct answer: C. 4.224

Stall cycles per reference = 0.03 × 12 + 0.012 × 150 = 2.16; per instruction 1.4 × 2.16 = 3.024. CPI = 4.224. Forgetting the 1.4 references per instruction gives 3.360; treating 1.2% as the local L2 miss rate gives 1.780; charging memory to every L1 miss gives 8.004.

More Computer Organization and Architecture questions

Exams that ask this topic