GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 19(c)

Page-table bits available for metadata

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

GATE 2002, Q19(c) Descriptive
Report issue

Virtual Memory & Paging

Question 19(c), GATE 2002: Virtual and physical addresses are 32 bits, byte addressed, page size 4 KB, two-level page tables with equal index widths, each entry 4 bytes. Original19(c): How many bits in each entry remain for protection/other information?
Question 19(c), GATE 2002: Virtual and physical addresses are 32 bits, byte addressed, page size 4 KB, two-level page tables with equal index widths, each entry 4 bytes. Original19(c): How many bits in each entry remain for protection/other information?
Tap to enlarge
Answer & solution

Answer: 12 bits per page-table entry. (no official key was published)

Step through it (8 steps)

There are 232 addressable physical bytes and frames of 212 bytes, so a physical frame number needs 32−12=20 bits. Each page-table entry is 4 bytes=32 bits, leaving 32−20=12 bits for valid, protection, reference, dirty, or other information. The page offset is supplied by the virtual address and is not separately stored in each entry. First-level entries likewise point to page-aligned second-level tables.

Original paper, page 10