843 views

2 Answers

3 votes
3 votes
Let P be page size

PAGE table size=no of page *PTE size={2^32/p}*3B

p=2^32*3B/24*2^20=512 B=P

 

system has 2K support so 2*2^10*2^9=2^20=2 MB=20 bit
edited by
2 votes
2 votes

We have 32 bit virtual address,

to know the number of bits required for identifying page number we need to calculate the number of entries in the page table

Page table entries = Size of Page table / size per entry = 2MB/3bytes = 223 entries

so from that we get the 23 bits for Page number and remaining for offset = 32 - 23 = 9

offset bits are same for physical and virtual address hence,

we have 2k frames and to identify 2k (211) frames we need 11 bits

physcial address = 11 bits + 9(offset) = 20 bits

Related questions

1 votes
1 votes
1 answer
1
Bishes asked Dec 3, 2022
1,035 views
Can anyone diagrammatically explain what is the difference between Page size vs Page table entry size in a page table?
2 votes
2 votes
1 answer
2
3lurryface asked Jan 9, 2019
1,112 views
If there is 2 or more level paging for processes, is it possible to have more than 1 page fault while accessing any single addressable unit(byte or word) ?
2 votes
2 votes
2 answers
3