CS FundamentalsHardGATE CS

A system has 48-bit virtual addresses, 8 KB pages and 16 GB of physical memory. An inverted page table has one entry per frame, holding a 16-bit process id, the virtual page number, 8 bits of flags and a hash-chain pointer wide enough to name any frame. Entries are packed to a whole number of bytes. What is the table size?

  1. A. 16 MB
  2. B. 24 MB
  3. C. 20 MB
  4. D. 40 MB

Correct answer: C. 20 MB

Frames = 2³⁴/2¹³ = 2²¹, so the chain pointer takes 21 bits. VPN = 48−13 = 35 bits. Entry = 16+35+8+21 = 80 bits = 10 bytes. Table = 2²¹ × 10 B = 20 MB.

More Operating Systems questions

Exams that ask this topic