481 views
0 votes
0 votes
I want to divide a page table into 2 page tables (outer and inner). Single page table has 2^20 entries with Page Size of 2^5 Bytes and Page Entry of 4Bytes in Page Table.  
What should be the number of entries in Outer Page Table? What is the formula ?

1 Answer

Best answer
2 votes
2 votes
Outer Page Table Inner Page Table Page Size
17 3 5

Number of entries in Outer Page Table = 2^20 * 2^2 / 2^5. = 2^17. 

Don't remember the formula rather understand the logic. We divide the inner page table into size of Page Size so that one Page Table could fit into one frame size. Size of single level Page Table = 2^20 * 4B = 2^22B.

Now divide 2^22  by 2^5 to get 2^17 page tables of size 2^5 each. So for 2^17 page Tables you need 2^17 entries in outer Page Table to select Inner Page Table and rest 3 bits for entry in Inner Page Table.

selected by

Related questions

320
views
0 answers
0 votes
Dipanshu Rana asked Nov 28, 2018
320 views
Let waiting time of process is 'x' and there are 'y' process in memory.CPU utilisation ???a) x^y( x to power y)b) xyc) y^x d) x+y
1.7k
views
2 answers
2 votes
priti sharma asked Oct 14, 2015
1,749 views
Consider a system in demand paged enviorment supporting a virtual address of 32bits  with a page size of 4KB, physical adddress is 29 bits . Page fault rate ... ?a)6MB,42O MICROSECB)3MB, 420 microsecc)12MB , 419micro secd)3MB , 42microsec
590
views
1 answers
0 votes
Ahsanul Hoque asked Feb 28, 2018
590 views
Difference between static memory allocation and dynamic memory allocation.(Need concept clearing explanation)