GATE / CS ARCHIVE

GATE CSE 2016 SET 1 / QUESTION 47

GATE CSE 2016 Set 1 Q47

Operating Systems · Virtual Memory & Paging · Full GATE CSE 2016 Set 1 paper

GATE 2016 Set 1, Q47 2 marks · NAT
Report issue

Virtual Memory & Paging

Question 47, GATE 2016: A system has 40-bit virtual addresses,16-kilobyte pages and a one-level page table per process. Each entry occupies 48 bits. Find the per-process page-table size in megabytes, using binary memory units.
Tap to enlarge
Answer & solution

Official answer: 384.0 : 384.0

Our answer: 384

Step through it (6 steps)

A16 KiB page uses 14 offset bits, leaving 40−14=26 virtual-page bits. There are 226 page-table entries, each 48 bits=6 bytes, totaling 6*226 bytes=384 MiB. The official answer uses binary kilobyte/megabyte conventions and excludes unspecified table metadata.

Page-table storage depends on the number of virtual pages, not the physical RAM capacity, which is not given. Offset bits are log 2(16×1024)=14; the remaining 26 bits index 226 entries. Convert the 48-bit entry into 6 bytes before multiplying. The product 402653184 bytes divided by 220 bytes per MiB is 384. Confusing 48 bits with 48 bytes would inflate the answer by a factor 8.

Original paper, page 18 · Answer key