Consider the following information of virtual memory system
• 32-bit virtual address with single level paging
• First 20-bits are used for page number and remaining 12-bits are used for offset of the page.
• Each page table entry has 2 bytes information
• 100 MB of main memory
What is the page table size (in MB)?
Here shall we calculate number of pages from 100MB RAM i.e. (100 x 220 )/212 = 25 x 210 and multiply it by size of page table entry i.e. 25 x 210 x 2 byte = 50KB.
Shall we calculate number of page table entries form 20 bits i.e. 220 x 2 bytes = 2MB.