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?
- A. 16
- B. 8
- C. 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A program spends 40% of its time in floating-point operations, 30% in memory operations and 30% elsewhere. FP operations are made 5 times…
- A direct-mapped cache has 8 lines and block-number mapping line = block mod 8. The following block numbers are accessed in order: 0, 1, 0…
- A 2-way set-associative cache with 4 sets uses LRU replacement and set = block mod 4. Blocks accessed in order: 1, 5, 9, 2, 6, 1, 5, 3, 7…
- A fully associative cache with FIFO replacement serves the block reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. How many misses…
- A 16-bit instruction format uses 4-bit address fields and the expanding-opcode technique. There are 13 three-address instructions, 40…
- Two 8-bit two's-complement numbers a and b are added with an 8-bit adder. For how many ordered pairs (a, b), where a and b each range over…