GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 67

Pointer bits in a three-level page table

Operating Systems · Virtual Memory & Paging · Full GATE CSE 2008 paper

GATE 2008, Q67 2 marks · MCQ
Report issue

Virtual Memory & Paging

Question 67, GATE 2008: A processor has 36-bit physical and 32-bit virtual addresses, 4-KiB page frames, and 4-byte page-table entries. Its three-level translation indexes level 1 with VA bits 30–31, level 2 with bits 21–29, level 3 with bits 12–20; bits 0–11 are page offset. How many address bits in entries at levels 1,2,3 identify the next table or final frame, respectively?

(A) 20,20,20
(B) 24,24,24
(C) 24,24,20
(D) 25,25,24
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Each second- and third-level table has 29 entries of 4 bytes, so it occupies 211 bytes. With compact 2-KiB-aligned tables in a 36-bit physical address space, a pointer to either table needs 36−11=25 bits.
2. A data page frame occupies 212 bytes and its frame number needs 36−12=24 bits. The result is (25,25,24), option D.
3. This uses the intended natural table-size alignment; forcing every table to a separate 4-KiB frame would instead produce 24-bit table-frame pointers.

Original paper, page 14