CS FundamentalsVery hardGATE CS

A system has 32-bit virtual addresses, 1 GB of physical memory, 4 KB pages, and each page-table entry holds the frame number plus a valid bit, a dirty bit, a reference bit and 3 protection bits, rounded up to a whole number of bytes. What is the size of a single-level page table for one process?

  1. A. 4 MB
  2. B. 2 MB
  3. C. 3 MB
  4. D. 1.5 MB

Correct answer: C. 3 MB

Frames = 2³⁰ / 2¹² = 2¹⁸, so the frame number needs 18 bits; plus 6 control bits = 24 bits = 3 bytes. Entries = 2³² / 2¹² = 2²⁰, so the table is 2²⁰ × 3 B = 3 MB. Rounding the entry to 4 bytes gives the 4 MB trap.

More Operating Systems questions

Exams that ask this topic