Memory Hierarchy
With 64 TLB entries and a 4 KB page size, how much memory can be accessed without TLB misses (the TLB reach)?
- A64 KB
- B256 KB
- C4 MB
Show answer and explanation
Answer: B. 256 KB
Each TLB entry holds the translation for one page, so TLB reach = entries × page size = 64 × 4 KB = 256 KB. Programs that frequently touch a wider range suffer more TLB misses. With 2 MB huge pages, the same 64 entries reach 64 × 2 MB = 128 MB. 64 KB results from mistaking the page size for 1 KB, and 4 MB from a miscalculation.
- A. 64 KB results from assuming a 1 KB page.
- B. Correct. 64 entries × 4 KB = 256 KB.
- C. 4 MB is a miscalculation.