Question

1. Answer the questions based on the memory below: Page table register Virtual address 31 30 29 28 27........................

Need help with only Question E, how do I calculate the page table size? (2.3mb should be the answer).

0 0
Add a comment Improve this question Transcribed image text
Answer #1

E) Given that virtual page number is represented with 20 bits, And in paging there is an entry for each page in the page table.

Therefore the number of entries in the page table = 220 entries (because 20 bits for virtual page number).

And in the page table each entry contains 1 bit for valid and 18 bit for physical page number.

Therefore the size of each entry = 1 bit (valid) + 18 bits (physical page number) = 19 bits. (each entry).

Therefore total size of page table = number of entries * size of each entry = 220 entries * 19 bits

\Rightarrow220 * 19 bits = 19922944 bits = 19922944 bits / 8bits = 2490368 bytes (because 1 byte = 8 bits).

\Rightarrow 2490368 bytes = 2490368 bytes / 1024 bytes = 2432 K bytes (because 1 Kilo byte = 1024 bytes).

\Rightarrow  2432 K bytes =  2432 K bytes / 1024 K bytes = 2.375 M bytes ((because 1 Mega byte = 1024 K bytes).

Therefore the size of the page table = 2.375 Mb.

Add a comment
Know the answer?
Add Answer to:
Need help with only Question E, how do I calculate the page table size? (2.3mb should...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT