GATE Computer ScienceHardGATE CS (PYQ pattern)
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 75% go to memory (40 ns). Design 2 is a 2-way set-associative cache (hit 1.1 ns, miss rate 4%) with the same 40 ns memory and no victim buffer. Which has the lower average access time, and by what factor?
- A. Design 2, by 1.037×
- B. Design 1, by 1.043×
- C. Design 2, by 1.259×
- D. Design 2, by 1.043×
Correct answer: D. Design 2, by 1.043×
Design 1: 1 + 0.06 × (0.25 × 1 + 0.75 × 40) = 2.815 ns. Design 2: 1.1 + 0.04 × 40 = 2.7 ns. Ratio 1.043. Forgetting the victim-buffer access time gives 1.037; ignoring the buffer altogether gives 3.40/2.70 = 1.259.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- 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…
- An in-order 2-issue processor starts up to two consecutive instructions per cycle. The second is issued with the first only if it has no…