875 views
2 votes
2 votes
A system support 32 bit virtual address with a page size of power of 2. Page table entries 32 bit wide. The page size in KB of the system should be ____ in order to make sure that the page table fits exactly in one frame of memory.

2 Answers

Best answer
4 votes
4 votes

Let page size(also block size) be 2^x.

Number of frames = Virtual Address Space / Page Size

Assuming single level paging,byte addressable and the given condition,

Page Table Entry * Number of Frames <= Page Size

or, PTE * Virtual Address Space / Page Size  <= Page Size

or, (Page Size)^2 >= PTE * Virtual Address Space

or, 2^(2x) >= 2^2 * 2^32

or, 2x >= 34

or, x >= 17  Therefore x should be atleast 17.

Minimum required Page Size = 2^x= 2^17= 128 KB (Answer)

Any page size >= 128 KB is possible.

selected by
0 votes
0 votes
Assume page size=2^x

No of entries in page table=2^(32-x)

Now it is given that page table should  fit in one frame

So,    2^(32-x)*4=2^x

x=17

128KB

Related questions

0 votes
0 votes
2 answers
1
Unique_999 asked Aug 17, 2023
320 views
Can Any explain the relationship between The “ Word Size “ and “ Logical Address Space “
1 votes
1 votes
2 answers
3
Aks9639 asked Sep 10, 2018
1,435 views
Consider a system using 2 level paging applicable page table is devided into 2k pages each size 4kB. If PAS is 64 MB which is devided into 16K frames . PTE size is 2B in...
0 votes
0 votes
0 answers
4
SSR17 asked Feb 8
208 views
we have 8 pages (each side 32B) to store in physical memory of 2^32 bits how many bits are required to identify each page , according to me 3 bits are required but that i...