Translation Lookaside Buffers and Page Reach
Estimate the address range covered by cached translations and see how a sparse stride can consume one entry per access.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
The TLB caches page mappings
A translation lookaside buffer keeps recent mappings and relevant permissions. If a simple TLB has 64 usable entries for 4 KiB pages, its nominal reach is 256 KiB. A sequential walk through many words within each page reuses a translation. Touching one word on each of 100 pages needs 100 distinct translations even if the data bytes touched are few.
Reach depends on address selection and page size
Associativity and multiple page sizes can change how many mappings effectively coexist. Larger pages can extend reach and reduce walking overhead, but alignment, fragmentation and mapping policy affect where they help. A data-cache hit and a TLB hit answer different questions about the same access. Multilevel page tables explain the work on a walk. Cache miss analysis uses a related but separate line-level working set.[1]