• reopened by
12,978 views
3 3 votes
Consider a machine with 64 MB physical memory and 34 bit virtual address space.If the page size is 4 KB ,the approximate size of conventional and inverted page table will be??

2 Answers

6 6 votes

for Conventional Page table ->                                      

no. of pages = virtual Memory size / page size               

no. of pages = 2$^{34}$  B /   2$^{12}$  B                                   ( assuming Memory is Byte Addressable)

                    =  2$^{22}$  

Page table size  = no. of pages * PTE size 

                         =  2$^{22}$  *  2 B => 8 MB                    ( becoz frame no. bits = 14 bits ~ 2 Bytes)

for Inverted  Page table ->   

no. of frames = Physical memory size / page size 

                      =   2$^{26}$  B /   2$^{12}$  B   

                      =  2$^{14}$ 

Page table size = no. of  frames * PTE size

                            = 2$^{14}$  *  3 B                                   ( becoz page no bits = 22 bits ~ 3 Bytes)

                           = 48 KB

0 0 votes

for conventional table 
no of page table enteries =232  / 4KB
                                         =220 
                      frame bits =14 bits taking approximate as 16 bits means 2 bytes so 220 *2= 2MB

for inverted page table 
we have enteries as no of frame so no frame = PAS/ page size 
                                                                   =226 /4KB
                                                                    =214 *(PTE)

but for calculating inverted page table size there should be size page table entry size(PTE) as in  conventinal page table we know that each entry contains the corresponding frame no !! 
 

                                                 

Position:
Show:

Related questions

2 2 votes
1 1 answer
157
157 views
GO Classes asked Aug 14
157 views
A machine has:$64$-bit virtual addresses $8$ KB pages $4$ GB physical memory $512$ TLB entries An inverted page table with one entry per physical frame Each inverted page...
2 2 votes
2 2 answers
157
157 views
GO Classes asked Aug 11
157 views
The size of an inverted page table grows with the size of the virtual address space that it is supporting.True False
2 2 votes
1 1 answer
129
129 views
GO Classes asked Aug 10
129 views
Consider a three-level page table on a system where:Page size $=256$ bytesPage-table entry size $=2$ bytesFirst-level page tables contain $16$ entriesSecond-level page ta...
0 0 votes
1 1 answer
109
109 views
GO Classes asked Aug 10
109 views
Consider a virtual memory system that uses 2-level paging.The page size is: $256=2^8$ bytesEach individual page table fits exactly into one memory frame, and the size of ...