GATE / CS ARCHIVE

GATE CSE 2015 SET 1 / QUESTION 29

GATE CSE 2015 Set 1 Q29

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

GATE 2015 Set 1, Q29 1 mark · NAT
Report issue

Virtual Memory & Paging

Question 29, GATE 2015: Byte-addressable memory has 32-bit logical addresses, 4-kilobyte pages, and 4-byte page-table entries. Find the single-level page-table size in megabytes.
Tap to enlarge
Answer & solution

Official answer: 4

Step through it (6 steps)

There are 232 addressable bytes and 212 bytes per page, so the virtual address space contains 220 pages. Each needs one entry even though physical memory size is not given. Multiply entries by bytes per entry: 220×4=222 bytes=4 MiB. The question labels binary MiB as MB; the answer is not the page size itself.

Solution: A4 KiB page uses 12 offset bits, leaving 20 page-number bits in a 32-bit address. A single-level table needs 220 entries of 4 bytes, totaling 222 bytes=4 MiB. Thus4 under the question’s binary MB convention.

Original paper, page 11 · Answer key