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

  1. What a walk costs
  2. A cache of translations
  3. The average cost
  4. A miss is not a fault
  5. Changing processes
  6. A stale entry

15 minutes · 5 scenes · 0 predict checks · 12 quiz questions

The full lesson is available with Premium.