CS FundamentalsModerateGATE CS (PYQ pattern)

A system has 48-bit virtual addresses, 8 KB pages and 2^40 bytes of physical memory. Each page-table entry holds a frame number plus 5 control bits and is rounded up to a whole number of bytes. Each page-table node must fit in a single page. What is the minimum number of page-table levels?

  1. A. 4
  2. B. 3
  3. C. 5
  4. D. 6

Correct answer: A. 4

Frame number = 40 - 13 = 27 bits; +5 = 32 bits = 4 bytes. A page holds 8192 / 4 = 2048 entries = 11 index bits per level. 48 - 13 = 35 translated bits need ceil(35 / 11) = 4 levels.

More Operating Systems questions

Exams that ask this topic