CS FundamentalsEasyGATE CS (PYQ pattern)

A physically indexed 1 MB, 8-way set-associative L2 cache with 64-byte lines sits under a system with 4 KB pages and 4 GB of RAM. How many page colours are there, and how many physical frames does each colour have?

  1. A. 16 colours, 65,536 frames each
  2. B. 32 colours, 32,768 frames each
  3. C. 64 colours, 16,384 frames each
  4. D. 32 colours, 16,384 frames each

Correct answer: B. 32 colours, 32,768 frames each

Cache size / (associativity x page size) = 1 MB / (8 x 4 KB) = 32 colours. 4 GB has 2^20 frames, so each colour has 2^20 / 32 = 32,768.

More Operating Systems questions

Exams that ask this topic