GATE / CS ARCHIVE

GATE CSE 2003 / QUESTION 26

Size of a flat page table

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

GATE 2003, Q26 1 mark · MCQ
Report issue

Virtual Memory & Paging

Question 26, GATE 2003: With 32-bit virtual addresses and 1 KB pages, why is a one-level page table impractical? A. Large internal fragmentation; B. Large external fragmentation; C. Large memory overhead for page tables; D. Large computation overhead in translation.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. A 1 KB page means 2¹⁰ byte offsets, so a virtual address splits into 22 page-number bits and 10 offset bits. Even a sparsely used process address space requires all 2²² slots in a flat table. Four-byte entries are an illustration, not an additional given: they would occupy 16 MiB per table.

2. A 1 KiB page uses 10 offset bits, leaving 22 virtual-page bits in a 32-bit address. A flat table therefore needs 222 entries per address space; at 4 bytes each this is 16 MiB. The large memory overhead, C, motivates multilevel or other sparse organizations.

Original paper, page 3