CS FundamentalsVery hardGATE CS

32-bit addresses, 4 KB pages, 4-byte PTEs, two-level paging (10/10/12). A process uses only 8 MB of code at virtual address 0 and 4 MB of stack at the very top of the address space. How much memory do its page tables occupy?

  1. A. 4 MB
  2. B. 12 KB
  3. C. 16 KB
  4. D. 4 KB

Correct answer: C. 16 KB

Each inner table maps 4 MB. Code needs 2 inner tables, stack needs 1; plus the outer table: 4 pages × 4 KB = 16 KB. A flat table would need 4 MB.

More Operating Systems questions

Exams that ask this topic