Consider a machine with MB physical memory and a -bit virtual address space. If the page size s KB, what is the approximate size of the page table?
View worked solution
Answer: C
To find the approximate size of the page table, we first determine the number of entries in the page table and the size of each Page Table Entry (PTE).
1. Number of Entries in the Page Table
The number of entries in the page table is equal to the number of pages in the virtual address space:
- Virtual Address Space: bytes (since it is a -bit address space)
- Page Size: bytes
Thus, the page table must contain entries.
2. Size of each Page Table Entry (PTE)
Each entry in the page table must store the physical frame number corresponding to that page:
- Physical Memory Size: bytes
- Number of Frames: frames
To address frames, we need at least bits for the frame number.
In practice, a page table entry also contains auxiliary control bits (such as valid/invalid, dirty, and read/write protection bits). Rounding the minimum bits up to the nearest byte boundary for alignment gives:
3. Size of the Page Table
Therefore, the approximate size of the page table is 2 MB.
Free practice · Your answers on this page are not saved.
