CS FundamentalsVery hardGATE

A 36-bit virtual address space uses 4 KB pages and single-level page table entries of 8 bytes each. What is the total size of the page table for one process using the full address space (assuming every entry is allocated)?

  1. A. 2^20 bytes
  2. B. 2^36 bytes
  3. C. 2^24 bytes
  4. D. 2^27 bytes

Correct answer: D. 2^27 bytes

4 KB pages need a 12-bit offset, leaving 36 − 12 = 24 bits for the page number, so there are 2^24 pages/entries. At 8 bytes per entry, the table is 2^24 × 2^3 = 2^27 bytes — this is exactly why large address spaces need multi-level or inverted page tables instead of one flat table.

More Operating Systems questions

Exams that ask this topic