# TLB

Week 7 · Memory · Operating Systems
The page also has an interactive playground: https://alfonsocampodonico.com/classes/operating-systems/tlb?lang=en
Code: https://github.com/AlfonsoCampodonico/os-playground/tree/main/src/sim (`gh repo clone AlfonsoCampodonico/os-playground`)

> An access trace, a small TLB and a replacement policy: count hits and misses.

Translating every address costs extra memory accesses. The TLB caches recent translations: if the translation is there it is a hit; if not, the page table has to be walked.

**OSTEP:** chapter 19.

The playground above keeps its whole setup in the URL, so a link to this page reproduces the exact example. Change the inputs, step through it, and share the link.
