GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A cache has 64 sets of 4 ways. Exact LRU stores the full recency order of each set using the minimum number of bits; tree pseudo-LRU stores 3 bits per set. How many bits of replacement state does the whole cache need under each scheme, as (exact LRU, tree PLRU)?

  1. A. (256, 192)
  2. B. (192, 320)
  3. C. (320, 192)
  4. D. (512, 192)

Correct answer: C. (320, 192)

4 ways have 4! = 24 possible orders, so ⌈log₂24⌉ = 5 bits per set: 64 × 5 = 320. Tree-PLRU needs 3 bits per set: 192.

More Computer Organization and Architecture questions

Exams that ask this topic