GATE Computer ScienceVery hardGATE CS
A fully associative cache (or page frame pool) of k lines has to serve the reference string 6, 5, 5, 7, 4, 6, 5, 2, 2, 6, 5, 7, 3, 2, 4, 5. Under FIFO replacement, what are the numbers of misses with k = 3 and with k = 4 lines, as the pair (k = 3, k = 4)?
- A. (12, 11)
- B. (11, 10)
- C. (12, 10)
- D. (11, 12)
Correct answer: D. (11, 12)
Simulating FIFO gives 11 misses with 3 frames and 12 with 4: Belady's anomaly, where more frames cause more faults. LRU, a stack algorithm, gives 12 and 10 and never shows the anomaly.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A fully associative cache has 3 lines (one word each). The reference string 2, 3, 2, 1, 5, 2, 4, 5, 3, 2, 5, 2, 6, 1, 3, 6, 2, 5, 1, 4 is…
- A DDR-style DRAM needs tRP = tRCD = CL = 15 ns, and a burst that fills one cache line takes 10/3 ns. A row-buffer hit costs CL + burst; a…
- A write-back, write-allocate cache is direct mapped with 4 lines of one word (line = address mod 4). Starting empty, it serves these…
- Twenty-eight 32-bit numbers are added with a tree of carry-save adders (3:2 compressors) that reduces every group of three operands to…
- A direct-mapped write-back cache of 8 KB has 64-byte blocks and each block is divided into 4 sub-blocks of 16 bytes with their own valid…
- A loop body occupies the 160 bytes from address 0x1000 to 0x109F and runs 100 iterations. The instruction cache is direct mapped, 128…