Menu

[Solved]4 30 Points Virtual Memory Uses Page Table Track Mapping Virtual Addresses Physical Addres Q37284772

4.[30 points] Virtual memory uses a page table to track the mapping of virtual addresses to physical addresses. A stream of v

4.[30 points] Virtual memory uses a page table to track the mapping of virtual addresses to physical addresses. A stream of virtual addresses as seen on a system is as following 4969, 3227, 14916 Assume 4 KiB pages, a 4-entry fully associative TLB, true LRU replacement, and the most recently used physical pages are 4, 6, and 12. If pages must be brought in from disk, increment the next largest page number. The initial TLB and page table are below: Valid Physical Page or in Disk Disk Disk Physical Page Number Valid Tag Disk 4 Disk Disk 3 6 0 0 Figure 1: Initial TLB 12 Figure 2: Initil Page Table (a) Given the address stream above, compute the virtual page number of each reference, and show how the TLB and page table are updated. Also list for each reference if it is a hit in the TLB, or a page fault. (b) Repeat (a), but this time use 16 KiB pages instead of 4 KiB pages. What would be some of the advantages of having a larger page size? What are some of the disadvantages? Show transcribed image text 4.[30 points] Virtual memory uses a page table to track the mapping of virtual addresses to physical addresses. A stream of virtual addresses as seen on a system is as following 4969, 3227, 14916 Assume 4 KiB pages, a 4-entry fully associative TLB, true LRU replacement, and the most recently used physical pages are 4, 6, and 12. If pages must be brought in from disk, increment the next largest page number. The initial TLB and page table are below: Valid Physical Page or in Disk Disk Disk Physical Page Number Valid Tag Disk 4 Disk Disk 3 6 0 0 Figure 1: Initial TLB 12 Figure 2: Initil Page Table (a) Given the address stream above, compute the virtual page number of each reference, and show how the TLB and page table are updated. Also list for each reference if it is a hit in the TLB, or a page fault. (b) Repeat (a), but this time use 16 KiB pages instead of 4 KiB pages. What would be some of the advantages of having a larger page size? What are some of the disadvantages?

Expert Answer


Answer to 4.[30 points] Virtual memory uses a page table to track the mapping of virtual addresses to physical addresses. A stream… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *