Question
computer architecture
Virtual memory 4 physice memar Assume a 64 bit machine with 40 bit addresses, and 16GB of actual memory. Memory blocks are 4K
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Virtual Address size = 40 bit

Now Physical memory size is 16GB = 234 bytes

Therefore physical memory size = 34 bits

Page Size / block size = 4K = 212 bytes

1) As Block size is 212 bytes so, OFFSET is of 12 bits

INDEX = 40-12 = 28 bits

2) The Page table entry generally contains the following fields:-

a) Frame number:

As the offset is 12 bits and physical address is of 34 bits so, frame number will be = 34 - 12 = 22 bits

b) Present/Absent (1 bit)

c) Protection (1 bit)

d) Referencing (1 bit)

e) Caching (1 bit)

f) Dirty (1 bit)

Therefore total bits in a page table entry = 27 bits = 4 bytes (in the whole number of bytes)

3) Number of pages needed = 2INDEX = 228 pages

Therefore the size of page table = 228 * page table entry size = 228 * 22 bytes = 230 bytes = 1 GB

It is stil lresonable size for a 16 GB memory as 1GB can be easily allocated in 16 GB of memory. Still we can use multi-level paging for better utilization.

Add a comment
Know the answer?
Add Answer to:
computer architecture Virtual memory 4 physice memar Assume a 64 bit machine with 40 bit addresses,...
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