GATE Computer ScienceHardGATE CS (PYQ pattern)
A direct-mapped cache has 8 lines (block = 1 word). A program issues block references [0, 8, 0, 8, 1, 9, 1, 9, 2, 10, 2, 10, 0, 8, 1, 9]. Define conflict misses as misses of this cache minus misses of a fully-associative LRU cache of the same capacity. How many conflict misses are there?
- A. 16
- B. 10
- C. 6
- D. 12
Correct answer: B. 10
Blocks b and b+8 collide in the direct-mapped cache, so it misses on every reference (16); the fully associative cache of 8 lines keeps all six distinct blocks and misses only the first 6 times. 16 − 6 = 10.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- An 8-bit CPU adds the 16-bit two's-complement numbers 0x7F9C and 0x00A7 with ADD on the low bytes followed by ADC (add with carry) on the…
- A disk spins at 7200 rpm with 400 sectors of 512 B per track, an average seek of 9 ms and a 0.2 ms controller overhead. A 64 KB block (1…
- A DMA controller uses cycle stealing and may take at most 20% of the bus cycles. Bus 1 is 32 bits wide with a 50 ns cycle; bus 2 is 64…
- 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…
- 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…