GATE Computer ScienceHardGATE CS (PYQ pattern)
A direct-mapped cache has a 1-cycle hit time, a 4% miss rate and a 40-cycle miss penalty on a 1.0 ns clock. A 2-way version also hits in 1 cycle but stretches the clock of the whole processor to 1.1 ns; its miss penalty is still 40 cycles. Below what miss rate must the 2-way cache stay to give a lower average access time in ns?
- A. 3.41%
- B. 3.75%
- C. 3.64%
- D. 4.00%
Correct answer: A. 3.41%
DM: (1 + 0.04 × 40) × 1.0 = 2.6 ns. 2-way: (1 + 40m) × 1.1 < 2.6 → 1 + 40m < 2.364 → m < 3.41%. Treating the 40-cycle penalty as 40 ns (unstretched) gives 3.75%; scaling the miss rate by 1/1.1 gives 3.64%.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- An interrupt is recognised only at instruction boundaries. The longest instruction takes 30 cycles; on average an interrupt arrives…
- 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…
- 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%…