CS FundamentalsVery hardGATE CS

A system has 46-bit virtual addresses, 16 KB pages and 4-byte PTEs; each page table must fit in one page. How many levels of page tables are required, and how many bits does the outermost level use?

  1. A. 3 levels; 8 bits
  2. B. 3 levels; 12 bits
  3. C. 2 levels; 12 bits
  4. D. 4 levels; 2 bits

Correct answer: A. 3 levels; 8 bits

Offset = 14 bits, leaving 32. A 16 KB page holds 4096 entries = 12 bits per level. 32 = 12 + 12 + 8, so 3 levels with the outermost using only 8 bits (a partly filled top table).

More Operating Systems questions

Exams that ask this topic