GATE Computer ScienceVery hardGATE CS (PYQ pattern)
Ideal CPI is 1. Every instruction fetch misses the L1 I-cache 2% of the time; 30% of instructions are loads/stores and miss the L1 D-cache 5% of the time. Every L1 miss goes to L2 (10 cycles), which misses locally 20% of the time (memory adds 100 cycles). In addition, 30% of D-cache misses evict a dirty block whose write-back to L2 stalls the processor 10 more cycles. What is the CPI?
- A. 1.495
- B. 4.895
- C. 2.050
- D. 2.095
Correct answer: D. 2.095
L1 misses per instruction = 0.02 + 0.3 × 0.05 = 0.035, each costing 10 + 0.2 × 100 = 30 cycles → 1.05. Dirty write-backs: 0.015 × 0.3 × 10 = 0.045. CPI = 2.095. Forgetting the I-cache gives 1.495; charging memory to every L1 miss gives 4.895; dropping the write-backs gives 2.050.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Three enhancements with speed-ups 30, 20 and 15 apply to disjoint parts of a program's original run time. The first two each apply to 25%…
- A processor compares A = 0xF0 with B = 0x10 using an 8-bit subtraction A − B and sets flags like a normal ALU. Which statement describes…
- Which statements about 8-bit number representations are correct? I. In one's complement, 0xFE + 0x02 with end-around carry gives 0x01. II…
- A 64 KB, 4-way set-associative write-back cache uses 64-byte blocks and 40-bit physical addresses. Each line also stores one valid bit…
- A disk has 4 platters. Both surfaces of every platter hold data except the top surface of the top platter and the bottom surface of the…
- A control store holds 1024 microinstructions. In horizontal form each word has one bit for each of 60 control signals, a 10-bit…