edited by
2,563 views
0 votes
0 votes

Suppose that you wish to design a virtual memory system with the following characteristics:
• Size of page table entry is 4 bytes.
• Each page table must fit into a single page frame.
• System must be able to support virtual address space of 4 GB.
You decided to use a multi-level paging scheme with no more than 2 levels of page tables. What is the minimum page size that the system must have?

edited by

1 Answer

Best answer
2 votes
2 votes

32 bits --generated address , k bits for the page frame 

size of page be 2k

so for the 32 bits (4GB) of generated address , to identify the page will be 32-k bits

again 2 level of page tables so it will be like this

x | 32-k-x | k ---this sum will be equal to 32 bits

now the condition is each page table is fitted into a single frame so 

2x * 4 = 2k and 2 (32-k-x) * 4 = 2k

solving this you will get k =12 bits --- so the page frame size will be 212 B

selected by

Related questions

0 votes
0 votes
3 answers
1
2 votes
2 votes
2 answers
3