CS FundamentalsVery hardGATE CS

A 32-bit system uses 2-level paging (10 + 10 + 12 bits, 4-byte PTEs, so every table is one 4 KB page). A process touches one byte in each of 600 pages, spread so that no two of them fall under the same inner page table. How much memory do its page tables use?

  1. A. 2,400 KB
  2. B. 2,404 KB
  3. C. 4,100 KB
  4. D. 8 KB

Correct answer: B. 2,404 KB

Each touched page needs its own inner table: 600 inner tables plus the single outer table = 601 pages × 4 KB = 2,404 KB. Had all 600 pages been contiguous, 1 inner table (it maps 1024 pages) + 1 outer = 8 KB would suffice: sparsity, not size, drives page-table cost.

More Operating Systems questions

Exams that ask this topic