Question

5.1) As described in 5.7, virtual memory uses a page table to track the mapping of virtual addresses to the physical addresses. This exercise shows how this table must be updated as addresses are accessed. The following data constitutes a stream of virtual addresses as seen on a system. Assume 4 KiB pages, a 4- entry fully associative TLB, and true LRU replacement. If pages must be brought in from disk, increment the next larges page number. 4669, 2227, 13916, 34587, 48870, 12608, 49225 Page table Valid Physical Page or in Disk Disk Disk TLB Physical Page Valid Tag Number Disk 11 Disk Disk 1 12

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

5.11.1) Consider a 4-entry fully associative TLB. The number of pages is 4 KiB. TLB (Translation lookaside buffer) is the sub

The page table is as follows: Index Valid Bit 0 Physical Page or In Disk 5 Disk Disk 0 0 2 5 6 8 9 10 11 0 1 0 0 1 1 Diski 4

The virtual page numbers of the addresses are shown in the below table: Virtual address (in binary) Virtual page Number (in dThe value of LRU is provided in the initial TLB table. To get the LRU value, provide lowest value to the tag which is havingWhen address 2227 arrives is, Valid Bit LRU Tag or Virtual Number 11 Physical Number 12 1 2 1 3 1 6 13 1 3 L When address 139When address 48870 arrives is, Valid Bit LRU Tag or Virtual Number Physical Number 14 1 1 0 3 11 5 6 12 3 1 2 4 When address

Therefore, the final TLB table when page size is 4 KiB is shown below: LRU Physical Number 14 Valid Bit | Tag or Virtual Numb5.11.2) Consider a 4-entry fully associative TLB with true LRU replacement. The number of pages is 16 KiB. Consider the folloInitial Page table: Index Valid Bit 2 3 4 0 0 1 Physical Number or In Disk 5 Disk Disk 6 9 11 Disk 4 Disk Disk 3 12 0 8 0 90

The virtual page numbers of the addresses are shown in the below table: Virtual address (in decimal) Virtual address (in binaThe following table gives the hit or page fault list for new entries: Hit Virtual address Hit/Miss/ Page fault 4669 Miss 2227When address 2227 arrives is: Valid Bit LRU- priorities Tag or Virtual Number 11 7 Physical Number 12 4 1 1 2 When address 13

When address 48870 arrives is: LRU- priorities Valid Bit Tag or Virtual Physical Number Number 12 13 1 7 14 i 0 5 3 When addrTherefore, the final TLB table when page size is 16 KiB is shown below: Valid Bit LRU- priorities 2 1 1 1 1 Tag or Virtual NuThe advantages of having larger page size16 KiB on 4 KiB: • • • If the page increase, the number of page faults and the miss

Add a comment
Know the answer?
Add Answer to:
As described in 5.7, virtual memory uses a page table to track the mapping of virtual...
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