60 likes | 197 Vues
This overview presents key concepts from the CS140 lecture notes on virtual memory, focusing on base and bound examples, virtual address space, and the address translation process in 64-bit x86-64 architecture. It discusses the structure of page tables, including PML4, PML3, PML2, and how the operating system manages user memory through physical and virtual address spaces. Topics also include page frame offsets and accessing user memory, providing a comprehensive understanding of how modern operating systems utilize virtual memory architecture.
E N D
Load-Time Relocation 0 Process 1 Process 6 Process 3 OperatingSystem ∞ CS 140 Lecture Notes: Virtual Memory
Base & Bound Example Virtual AddressSpace 0 62 CALL 140 66 ... 140 ... RETURN SP 1420 2000 CS 140 Lecture Notes: Virtual Memory
x86-64 Address Translation 64-bit Virtual Address 16 9 9 12 9 9 not used PML4 Table Page Directory Pointer Table(PML3) Page Directory(PML2) Page Table 40 12 Page Frame Offset PML4 Base 52-bit Physical Address
Accessing User Memory write(fd, buffer, length) Pages buffer User AddressSpace (Virtual) OS AddressSpace (Physical) CS 140 Lecture Notes: Virtual Memory
OS and User in Same Address Space 0 Code Data Stack OperatingSystem ∞ CS 140 Lecture Notes: Virtual Memory