924 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

380
views
2 answers
0 votes
Unique_999 asked Aug 17, 2023
380 views
Can Any explain the relationship between The “ Word Size “ and “ Logical Address Space “
657
views
1 answers
0 votes
Lovejeet Singh asked Oct 17, 2018
657 views
Why do we need multilevel paging?According to me the reason is that page table needs contiguous memory allocation.So if page table size is too large, we may ... we store all levels page table in memory or only the outer level page table?
1.5k
views
2 answers
1 votes
Aks9639 asked Sep 10, 2018
1,523 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 ... the levels calculate the length of PA, LA and # of entry at second level?
334
views
1 answers
0 votes
SSR17 asked Feb 8
334 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 is wrong plz explain why