








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









4/7/
CS 241 - System Programming,
Klara Nahrstedt
z^
z^
z^
offset
Virtual address
... PPage#
PPage#
PPage#
PPage #
offset
VPage #
TLB Hit
Miss
Realpagetable
VPage# VPage# VPage#
Physical address
-^ MMU detects miss and does an ordinary pagetable lookup. –^ It then evicts one page out of TLB and replaces itwith the new entry, so that next time that page isfound in TLB.
Page Table^0101101
Virtual Memory Address (P,D) Physical Address (F,D)
Associative Lookup
First
Table organized byLRU
Page Table^0101101
Virtual Memory Address (P,D) Physical Address (F,D)
Associative Lookup
First
Table organized byLRU
-^ Associative registers –^ Look-aside memory –^ Content-addressable memory
-^ Percentage of time page translation found inassociative memory
z^
On a miss in TLB, VM software^ –^
Write back if there is no free entry
-^
Check if the page containing the PTE is in memory
-^
If no, perform page fault handling
-^
Load the PTE into the TLB
-^
Restart the faulting instruction z^
On a hit in TLB, the hardware checks valid bit^ –^
If valid, pointer to page frame in memory
-^
If invalid, the hardware generates a page fault^ z^
Perform page fault handling z Restart the faulting instruction
z^
Example: SPARC, MIPS, Alpha, HP-PA, IA-64,PowerPC
-^ Eat
m^
+^ ε
)α +
m^
+^ ε
α)
-^ Eat
m^
+^ ε
4/7/
CS 241 - System Programming,
Klara Nahrstedt
z^
z^