P3L2 Flashcards
Principles of Memory Management Systems
- ) Use intelligently sized containers
- ) Nota ll memory is needed at once
- ) Optimized for performance
Memory Management Goals
Allocate and Arbitrate
Allocate
map pages from virt mem into page frames from physical
Arbitrate
page tables
MMU
- translate virtual to physical accesses
- report faults
What causes faults
illegal access
permission
not present in mm
HW Support Registers
Pointers to page table
base and limit size, number of segments
Cache - TLB
Translation Lookaside Buffer
VPN
Virtual Page Number
PFN
Page Frame Number
Page tables are per
process
Page Table Flags
- Present (valid/invalid)
- Dirty
- Accessed
- R/W (permission bit)
- U/S (permission bit - user / supervisor)
Page Fault when
H/W determines a physical mem access cannot be performed
Page Fault Handler
determines action based on error code and faulting addr
Hierarchical Page Tables
Outer page table == Page Table Directory
Internal page table == only for valid virtual memory regions