Introduction
In classical computer science theory, the External Memory (EM) model is the standard for measuring an algorithm's efficiency based on block transfers between a small, fast cache and a large, slow memory. However, this model overlooks a critical component of modern computing: Virtual Address Translation (VAT). Every memory access requires translating a virtual address into a physical one, typically via a "translation tree" or page table walk. This process introduces a "hidden tax" that can cause runtimes to grow logarithmically with input size—a phenomenon the standard EM-model fails to predict.
This paper investigates whether cache-oblivious algorithms—designed to be efficient across any memory hierarchy without knowing its specific parameters—maintain their optimality when accounting for these translation costs.
The VAT-Model and Translation Trees
Unlike the EM-model, which only charges for data block transfers, the VAT-model accounts for every page fault encountered during the translation tree walk. A single memory access can cause up to $d$ cache faults, where $d$ is the depth of the translation tree.
The authors prove their main theorem by showing how a VAT-machine can "simulate" an EM-algorithm. By partitioning the cache—dedicating roughly 1/4 to data and 3/4 to the internal nodes of the translation tree—they demonstrate that the translation costs can be kept under control.
Experimental Context
The theoretical predictions of the VAT-model are supported by experimental data. A 2013 study by Jurkiewicz and Mehlhorn benchmarked fundamental algorithms, revealing how the "translation tax" manifests in practice.
Operations like Permute and Random Access exhibit high latency and significant VAT overhead. In contrast, Sequential Access remains efficient because it amortizes the translation cost over many consecutive accesses. The VAT-model's ability to predict these variations validates its utility over traditional models.
Key Insights: The Robustness of Cache-Obliviousness
The core finding is that cache-oblivious algorithms are remarkably robust. Their inherent property of "locality at all scales" allows them to navigate translation trees efficiently without requiring explicit redesign for virtual memory.
- The Hidden Logarithm: Memory access cost is not constant; it is logarithmic relative to the largest address used, as larger memory spaces necessitate deeper translation trees.
- The 4x Factor: The authors demonstrate that the VAT-cost is at most a constant factor (specifically $4 \times \text{tree depth}$) larger than the EM-cost.
- Stricter "Tallness": To maintain efficiency, the cache must satisfy a more stringent "tall cache" assumption ($M \ge 4g(dB)$), ensuring it can hold translation paths for all active data blocks.
Main Results and Limitations
The paper's central result, Theorem 3, states that any cache-oblivious algorithm efficient in the EM-model is also efficient in the VAT-model, provided the stricter tall cache assumption holds. This is applied to Funnel Sort, proving it remains essentially optimal even when every address translation is paid for.
However, some limitations remain:
- Hardware Dependency: The proof relies on specific cache "tallness." Guarantees may weaken on hardware with flat or small caches relative to page sizes.
- Hierarchy Complexity: While the paper focuses on a two-level hierarchy, real-world systems involve multiple cache levels (L1, L2, L3) and TLBs.
- Replacement Policies: The model assumes optimal replacement, though LRU replacement is noted to only add a constant factor of 2 to the cost.
Summary updated