Paging and the Address-Translation Problem
Authors:
- Michael A. BenderMBMichael A. Bender
- Abhishek BhattacharjeeABAbhishek Bhattacharjee
- Alex ConwayACAlex Conway
- Martín Farach-ColtonMFMartín Farach-Colton
- Rob JohnsonRJRob Johnson
- Sudarsun KannanSKSudarsun Kannan
- William KuszmaulWKWilliam Kuszmaul
- Nirjhar MukherjeeNMNirjhar Mukherjee
- Don PorterDPDon Porter
- Guido TagliaviniGTGuido Tagliavini
- Janet VorobyevaJVJanet Vorobyeva
- Evan WestEWEvan West
Open Access
- 8 September 2025
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Algorithms
- Vol. 21 (4) , 1-22
Abstract
The classical paging problem, introduced by Sleator and Tarjan in 1985, formalizes the problem of caching pages in RAM in order to minimize IOs. Their online formulation ignores the cost of address translation: Programs refer to data via virtual addresses, and these must be translated into physical locations in RAM. Although the cost of an individual address translation is much smaller than that of an IO, every memory access involves an address translation, whereas IOs can be infrequent. In practice, one can spend money to avoid paging by over-provisioning RAM; in contrast, address translation is effectively unavoidable. Thus address-translation costs can sometimes dominate paging costs, and systems must simultaneously optimize both. To mitigate the cost of address translation, all modern CPUs have translation lookaside buffers (TLBs), which are hardware caches of common address translations. What makes TLBs interesting is that a single TLB entry can potentially encode the address translation for many addresses. This is typically achieved via the use of huge pages, which translate runs of contiguous virtual addresses to runs of contiguous physical addresses. Huge pages reduce TLB misses at the cost of increasing the IOs needed to maintain contiguity in RAM. This tradeoff between TLB misses and IOs suggests that the classical paging problem does not tell the full story. This article introduces the Address-Translation Problem, which formalizes the problem of maintaining a TLB, a page table, and RAM in order to minimize the total cost of both TLB misses and IOs. We present an algorithm that achieves the benefits of huge pages for TLB misses without the downsides of huge pages for IOs.Keywords
Funding Information
- NSF (CCF-2106827, CCF-1725543, CSR-1763680, CCF-1716252, CNS-1938709, CCF-1617618, CCF-1916817, CCF-2106999, CSR-1938180, CCF-1715777, and NRT-HDR 2125295)
- United States Air Force Research Laboratory (FA8750-19-2-1000)
This publication has 34 references indexed in Scilit:
- Preserving Virtual Memory by Mitigating the Address Translation WallIEEE Micro, 2017
- Efficient virtual memory for big memory servers2013
- Cache-Oblivious AlgorithmsACM Transactions on Algorithms, 2012
- On the relative dominance of paging algorithmsTheoretical Computer Science, 2009
- The relative worst-order ratio applied to pagingJournal of Computer and System Sciences, 2007
- Practical, transparent operating system support for superpages2002
- Cache-oblivious algorithms1999
- Thek-server dual and loose competitiveness for pagingAlgorithmica, 1994
- Competitive paging algorithmsJournal of Algorithms, 1991
- Amortized efficiency of list update and paging rulesCommunications of the ACM, 1985