Anonymous user menu

Consider the following information of virtual memory system

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.

OR

Shall we calculate number of page table entries form 20  bits i.e. 220 x 2 bytes = 2MB.

3Comments
Arul @innovwelt
11 Jan 2015 12:21 am

I think, your second answer is correct.

for calculating page table size, we need number of pages in virtual address space & page table entry size (2 bytes).

Shreyas Dawkhare @shreyasdawkhare
11 Jan 2015 07:16 am

First one will be in the case of inverted page table right?

Arul @innovwelt
11 Jan 2015 06:46 pm

Yes.. you are right