Xem mẫu
Chapter 12 Virtual Memory
Copyright © 2008
Introduction
• Virtual Memory Basics • Demand Paging
• The Virtual Memory Manager • Page Replacement Policies
• Controlling Memory Allocation to a Process • Shared Pages
• Memory-Mapped Files
• Case Studies of Virtual Memory Using Paging • Virtual Memory Using Segmentation
Operating Systems, by Dhananjay Dhamdherehamdhere 12.2 2
Copyright © 2008
Virtual Memory Basics
• MMU translates logical address into physical one • Virtual memory manager is a software component
– Uses demand loading
– Exploits locality of reference to improve performance
Operating Systems, by Dhananjay Dhamdherehamdhere 12.3 3
Copyright © 2008
Virtual Memory Basics (continued)
Operating Systems, by Dhananjay Dhamdherehamdhere 12.4 4
Copyright © 2008
Virtual Memory Using Paging
• MMU performs address translation using page table
Effective memory address of logical address (pi, bi)
= start address of the page frame containing page pi + bi
Operating Systems, by Dhananjay Dhamdherehamdhere 12.5 5
Copyright © 2008
...
- tailieumienphi.vn
nguon tai.lieu . vn