The translation lookaside buffer is a small, fast hardware cache of recent page-to-frame translations; on a hit the translation costs almost nothing, while on a miss the CPU walks the page table in memory. Context switches between processes may flush it unless entries are tagged with address-space IDs.
Effective access time (EAT) = hit ratio x (TLB time + memory time) + miss ratio x (TLB time + page-table access + memory time).
Example with a single-level page table, TLB lookup 20 ns, memory access 100 ns: at 80% hit ratio EAT = 0.8 x 120 + 0.2 x 220 = 140 ns; at 98% hit ratio EAT = 0.98 x 120 + 0.02 x 220 = 122 ns.
Loading…