Parth Dhar
unread,Mar 5, 2021, 6:50:19 AM3/5/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Operating System, rahulsur...@gmail.com, Dhinesh, guptapr...@gmail.com
Apologies, we selected the wrong option.
Here's a detailed explanation:
A page entry is used to get the address of physical memory. Here we assume that a single level of Paging is happening. So the resulting page table will contain entries for all the pages of the Virtual address space.
Number of entries in page table = (virtual address space size)/(page size)
Using the above formula we can say that there will be 2^(32-12) = 2^20 entries in the page table.
No. of bits required to address the 128MB Physical memory = 27.
So there will be 2^(27-12) = 2^15 page frames in the physical memory. And the page table needs to store the address of all these 2^15 page frames. Therefore, each page table entry will contain 15 bits address of the page frame and 1 bit for valid-invalid bit.
Since memory is byte-addressable. So we take that each page table entry is 16 bits i.e. 2 bytes long.
Size of page table = (total number of page table entries) * (size of a page table entry) = (2^20 * 2) = 2MB