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?
- A. 3.360
- B. 1.780
- C. 4.224
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- 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…
- A cache with 8-word blocks is cold. A program reads an array of 1000 consecutive words once, starting at a block boundary. How many…
- A processor has 64 general registers and a fixed 32-bit instruction word. Its three-register format has three 6-bit register fields and…
- A cache has a 2-cycle hit time. 70% of memory accesses are reads, which miss 5% of the time with a 40-cycle miss penalty. The other 30%…
- An 8-bit floating-point format has 1 sign bit, 4 exponent bits with bias 7 and 3 fraction bits, with IEEE-style rules (exponent field 0000…
- Five instructions occur with relative frequencies 0.4, 0.2, 0.2, 0.1 and 0.1. A fixed-length opcode would need 3 bits. What is the minimum…