GATE Computer ScienceVery hardGATE CS
A cache has 4 lines of one word each. The word-address trace 0, 4, 0, 4, 1, 5, 1, 5, 2, 6, 3, 7, 0, 4, 1, 5, 8, 0, 8, 4, 2, 6 is applied. Misses are classified in the usual way: compulsory if the address is referenced for the first time; capacity if it also misses in a fully associative LRU cache of the same size (4 lines); conflict otherwise. For a DIRECT-MAPPED cache (line = address mod 4), how many of the misses are conflict misses?
- A. 3
- B. 9
- C. 5
- D. 8
Correct answer: C. 5
Simulating the direct-mapped cache gives 22 misses: 9 are compulsory (the 9 distinct addresses 0 to 8), 8 are also misses in the 4-line fully associative LRU cache and so are capacity misses, and the remaining 5 are conflict misses that associativity would remove.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A 4-bit non-restoring divider divides the unsigned dividend Q = 1101 (13) by the divisor M = 0011 (3). The accumulator A is 5 bits wide…
- In IEEE 754 single precision (round-to-nearest-even), let a = 2²⁴ = 16777216, b = 1 and c = 1. The two sums S₁ = (a + b) + c and S₂ = a +…
- Three processors P0, P1, P2 use a snooping MESI write-invalidate protocol on one block that is initially invalid everywhere. A read miss…
- A program has a serial fraction of 5% when run on 1 processor. Under Amdahl's law (fixed problem size) the speedup on 64 processors is SA…
- A process of size s = 4 MB runs under paging with a one-level page table in which each page-table entry occupies e = 8 bytes. The wasted…
- A RAID 5 array has 6 disks, each able to perform 120 random I/Os per second. A small random read costs 1 disk I/O and a small random write…