17 Multilevel Page Table TLB
17 Multilevel Page Table TLB
Memory Management –
Multi-level Page Table and TLB
Professor Qiang Zeng
Spring 2018
Paging Hardware
• Pros:
– Save the physical memory used by page tables
• Cons:
– Two steps of (or more) lookups per memory reference
• 2 levels for 32 bits
• 4 levels for 48 bits (in current 64-bit systems)
Virtual
Address
Page# Offset
Virtual Page
Page Frame Access Physical
Address
Matching Entry Frame Offset
Page Table
Lookup
Frame Frame
Offset Physical
Memory
Physical
Address
Data
Data
Matching
Superpage
Page Table
Lookup SF Offset
Process
Page number Control bits Chain pointer
identifier
• the process • Because • includes • To resolve
that owns there may flags and hash
this page be hash protection collision
frame collision and locking
information
Page Table
Lookup
Process
ID VirtualPage PageFrame Access
= 0 0x0053 0x0003 R/W
Processor 1 TLB
= 1 0x4OFF 0x0012 R/W