Question
Consider a computer system with 40-bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires 48 bits, then the size of the per-process page table is _____ megabytes.
Official answer and solution
- Official answer
- 384
- From
- Official GATE 2016 answer key
Solution
Calculate the number of pages in the virtual address space and multiply by the page table entry size.
Given parameters:
- Virtual address space bits bytes.
- Page size .
Calculate the number of pages:
Calculate page table size:
- Each page table entry (PTE) requires .
- A one-level page table must contain an entry for every virtual page:
Convert to megabytes ():
384
Forgetting to divide 48 bits by 8 to convert to bytes, or confusing 16 KB with bytes instead of bytes.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2016 Computer Science and Information Technology (CS) Session 1
- 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.