Question
A computer system implements 8 kilobyte pages and a 32-bit physical address space. Each page table entry contains a valid bit, a dirty bit, three permission bits, and the translation. If the maximum size of the page table of a process is 24 megabytes, the length of the virtual address supported by the system is _____ bits.
Official answer and solution
- Official answer
- 36
- From
- Official GATE 2015 answer key
Solution
Determine the Page Table Entry (PTE) size, compute the maximum number of pages, and sum with the page offset.
- Page offset length:
Page size = Page offset .
- Frame number length:
Physical address space = 32 bits.
Number of frames = Frame number = 19 bits.
- Page Table Entry (PTE) size:
Each PTE consists of:
- Translation (frame number): 19 bits
- Valid bit: 1 bit
- Dirty bit: 1 bit
- Permission bits: 3 bits
- Number of page table entries:
- Virtual address length:
36
Assuming PTE size must be rounded up to 4 bytes ( bytes) instead of using the exact 24 bits (3 bytes) supported by the calculation.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 2
- Question
- 57 of 65, printed as CS Q.47
- 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.