GATE Computer ScienceHardGATE CS (PYQ pattern)

A machine has 48-bit virtual addresses, 4 KB pages and 16 GB of RAM (1 GB = 2³⁰ B). Its inverted page table has one entry per frame holding the virtual page number, a 16-bit process id and 12 control bits, rounded up to whole bytes; a hash anchor table adds one 4-byte entry per frame. What is the total size of these two tables, and how large would a flat one-level page table with 8-byte entries be for a single process?

  1. A. 32 MB versus 512 GB
  2. B. 48 MB versus 256 GB
  3. C. 40 MB versus 512 GB
  4. D. 48 MB versus 512 GB

Correct answer: D. 48 MB versus 512 GB

Frames = 16 GB / 4 KB = 2²² = 4M. IPT entry = 36 (VPN) + 16 + 12 = 64 bits = 8 B → 32 MB; anchor table 4M × 4 B = 16 MB; total 48 MB. A flat table has 2³⁶ entries × 8 B = 512 GB. Forgetting the anchor table gives 32 MB; 4-byte flat entries give 256 GB.

More Computer Organization and Architecture questions

Exams that ask this topic