GATE Computer ScienceHardGATE CSE · UGC NET

A virtually indexed, physically tagged 256 KB cache is 8-way set associative with 64-byte lines. The page size is 4 KB. Into how many page colours must the OS partition physical pages to guarantee that virtual aliases always map to the same cache sets?

  1. A. 16
  2. B. 8
  3. C. 4
  4. D. 64

Correct answer: B. 8

Sets = 256K/(8·64) = 512, so index+offset = 15 bits; only 12 are page-offset bits, leaving 3 translated bits → 8 colours.

More Computer Organization and Architecture questions

Exams that ask this topic