Skip to main navigation Skip to search Skip to main content

Paging and the Address-Translation Problem

  • Michael A. Bender
  • , Abhishek Bhattacharjee
  • , Alex Conway
  • , Martín Farach-Colton
  • , Rob Johnson
  • , Sudarsun Kannan
  • , William Kuszmaul
  • , Nirjhar Mukherjee
  • , Don Porter
  • , Guido Tagliavini
  • , Janet Vorobyeva
  • , Evan West
  • Yale University
  • Cornell University
  • New York University
  • Dell
  • Rutgers - The State University of New Jersey, New Brunswick
  • Carnegie Mellon University
  • University of North Carolina at Chapel Hill
  • Alphabet Inc.
  • University of California at San Diego
  • Stony Brook University

Research output: Contribution to journalArticlepeer-review

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.

Original languageEnglish
Article number43
JournalACM Transactions on Algorithms
Volume21
Issue number4
DOIs
StatePublished - Sep 8 2025

Keywords

  • address translation
  • hashing
  • iceberg hashing
  • paging
  • TLB
  • virtual memory

Fingerprint

Dive into the research topics of 'Paging and the Address-Translation Problem'. Together they form a unique fingerprint.

Cite this