Question
Consider a computer system with 57-bit virtual addressing using multi-level tree-structured page tables with levels for virtual to physical address translation. The page size is 4 KB () and a page table entry at any of the levels occupies 8 bytes.
The value of is _______.
Official answer and solution
- Official answer
- 5
- From
- Official GATE 2023 answer key
Solution
Calculate the page offset bits and index bits per page table level for the 57-bit address space.
- Page Offset:
Page size = page offset requires 12 bits. - Virtual Page Number (VPN):
Virtual address length = 57 bits.
Bits remaining for page table translation: . - Page Table Entry (PTE) Capacity:
Each page table is exactly one page (). With each PTE occupying :Therefore, each level of the page table hierarchy uses bits of the virtual address. - Number of Levels ():
5
Dividing 57 directly by 9 without subtracting the 12 page offset bits first.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2023 Computer Science and Information Technology (CS)
- Question
- 58 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.