GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A 48-bit virtual address space uses 4 KB pages and a 4-level page table in which every table is one 4 KB page of 512 eight-byte entries (9 + 9 + 9 + 9 + 12 split). A process uses 6 MB of contiguous memory starting at virtual address 0 and one 4 KB page at 0xFFFFFFFFF000. How many page-table pages exist?

  1. A. 6
  2. B. 9
  3. C. 7
  4. D. 10

Correct answer: B. 9

6 MB = 1536 pages → 3 leaf tables (512 entries each) under one level-2 table, one level-3 table and the root: 6 pages. The top page has different indices at every level below the root, so it needs its own level-3, level-2 and leaf table: 3 more. Total 9 (36 KB). Forgetting the separate path gives 6; adding only a leaf table gives 7.

More Computer Organization and Architecture questions

Exams that ask this topic