TLB and address-translation cost
See how a TLB can reduce address-translation cost, and why a miss is not necessarily a page fault. Virtual memory depth · Operating systems.
In a simple model, a two-level page table turns one data read into three memory references. A small cache wins most of that back, until a miss walks the table or a page is missing.
What you will learn
- Explain why a TLB exists by counting the memory references of a walk
- Work out the cost of a hit, a miss and a page fault, and their weighted average
- Say when a context switch empties the TLB and when process tags avoid it
Lesson outline
- What a walk costs
- A cache of translations
- The average cost
- A miss is not a fault
- Changing processes
- A stale entry
15 minutes · 5 scenes · 0 predict checks · 12 quiz questions
The full lesson is available with Premium.