GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 2.21

Estimating a flat page-table size

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

GATE 2001, Q2.21 2 marks · MCQ
Report issue

Virtual Memory & Paging

Question 2.21, GATE 2001: A machine has 64 MiB physical memory, 32-bit virtual addresses, and 4 KiB pages. Estimate a flat page-table size from choices 16,8,2,24 MiB, and state the necessary page-entry-size assumption.
Question 2.21, GATE 2001: A machine has 64 MiB physical memory, 32-bit virtual addresses, and 4 KiB pages. Estimate a flat page-table size from choices 16,8,2,24 MiB, and state the necessary page-entry-size assumption.
Tap to enlarge
Your answer
Answer & solution

Answer: C under a two-byte-entry assumption (no official key was published)

Step 1: A 4 KiB page has 12 offset bits. A 32-bit virtual address therefore has 20 virtual-page bits, requiring 220 entries in a full single-level page table.

Step 2: Physical memory 64 MiB=226 bytes contains 214 frames, so a physical frame number needs 14 bits. Rounding that field to two bytes gives 220·2=2 MiB, option C, with only limited room for additional status bits.

Qualification: The entry size and organization are not specified. Four-byte entries would require 4 MiB, not listed; multilevel allocation can use a different amount. Therefore 2 MiB is a conventional estimate, not uniquely determined by the stated capacities alone.

Original paper, page 6