Consider virtual addressing of 32 bits. Assume that the page size is 16 MB. YOU
ID: 642070 • Letter: C
Question
Consider virtual addressing of 32 bits. Assume that the page size is 16 MB. YOU have 2 GB of RAM. a. How many entries do you need in the page table? b. How many bits are needed to index the page table? c. Assume that Table 1 lists all the virtual pages that are currently in physical memory. ifa virtual page is not listed in Table 1, it implies any address in that range will result a page fault. Translate the virtual addresses below to the physical address using Table 1 and mention which will be hit and which will cause a miss:Explanation / Answer
a) number of entries in the page table = total RAM/page size
= 2GB/16MB
= 2X1024 MB/16MB
= 128
b) number of bits to index the page table = log 2 128 = 7
c)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.