Near-Memory Address Translation

Javier Picorel, Djordje Jevdjic, Babak Falsafi

TL;DR

DIPTA (Distributed Inverted Page Table) is a novel near-memory address translation mechanism that eliminates the performance overhead of virtual memory for processing-in-memory architectures. By restricting unnecessary mapping flexibility and using clever way prediction, it allows address translation and data fetching to happen in parallel, delivering speedups of up to 3.8x.

The Virtual Memory Bottleneck in Near-Memory Processing

Near-Memory Processing (NMP) places logic units, known as Memory Processing Units (MPUs), directly inside or adjacent to DRAM chips. This proximity allows systems to exploit massive internal bandwidth and significantly reduce the energy costs associated with data movement. However, these architectures face a critical "showstopper": Virtual Memory.

In conventional CPU-centric systems, the processor uses a Translation Lookaside Buffer (TLB) to quickly map virtual addresses to physical ones. When a TLB miss occurs, the system must perform a "page walk," traversing complex table structures in memory. For MPUs, this process is devastating. Modern datasets are so large that they far exceed the reach of standard TLBs.

TLB miss rates for 4KB and 2MB pages across varying entry counts.

As shown in the figure above, even with a high number of TLB entries, miss rates remain significant, particularly for standard 4KB pages. In a multi-chip memory system, a single page walk might require multiple network hops across chips, leading to latencies exceeding 500ns. This overhead can consume up to 70% of execution time, effectively nullifying the performance gains promised by NMP.

Introducing DIPTA: Distributed Inverted Page Table

To solve this, the authors propose DIPTA (Distributed Inverted Page Table). Their approach is built on the observation that the historical requirement for full associativity—where any virtual page can map to any physical page frame—is no longer necessary for modern, memory-resident server workloads.

HMC-based memory chip architecture and multi-chip network topologies (Star, Daisy chain, Mesh).

DIPTA integrates directly into the vault logic of architectures like the Hybrid Memory Cube (HMC), as illustrated in the figure above. Key components include:

  • Limited Associativity: DIPTA restricts virtual-to-physical mapping to be set-associative (e.g., 4-way). This ensures a virtual address only needs to be checked against a few specific physical locations.
  • Parallel Translation and Fetch: Because the search space is limited, the MPU can issue the data fetch and the translation request simultaneously, removing translation from the critical path.
  • Way Prediction: To avoid wasting bandwidth by fetching all "ways" in a set, DIPTA uses a lightweight address-based way predictor. If the predictor hits, the MPU fetches only the correct data block.
  • Implementation Flavors: The system can be implemented using a small SRAM cache within the memory vault or by embedding page table entries directly within DRAM rows (DRAM-embedded), which incurs zero SRAM area overhead.

Key Insights and Technical Innovations

The researchers proved that for modern servers, moving from fully associative mapping to 4-way set-associative mapping has virtually zero impact on page fault rates. This is because modern operating systems naturally cluster memory segments. By using an inverted page table (one entry per physical frame) and distributing it across memory vaults, translation information is always co-located with the data it describes.

To embed metadata in DRAM without breaking the standard 4KB OS page size, the authors proposed a "shifted" layout: 63 pages are stored across 64 DRAM rows, leaving the first 64 bytes of every row free for translation metadata. Furthermore, they demonstrated that a tiny 256B predictor can achieve over 90% accuracy for most workloads, ensuring that parallel fetches rarely waste bandwidth.

Evaluation and Results

The researchers evaluated DIPTA using a mix of real-world server workloads (Cassandra, Memcached, MySQL, Neo4j) and specialized data-structure kernels (Hash Tables, Skip Lists) notorious for poor TLB behavior. Using the Flexus full-system simulator, they modeled an ARM Cortex A7-like MPU integrated into an HMC architecture.

  • Massive Speedups: DIPTA achieves speedups of up to 3.81x over conventional translation using 4KB pages and 2.13x over 1GB pages.
  • Overhead Elimination: DIPTA effectively makes address translation perform as well as an "ideal" zero-latency TLB.
  • High Accuracy: The way predictor achieves 96%–99% accuracy on standard server workloads.
  • Scalability: Unlike traditional TLBs, DIPTA’s distributed nature allows it to scale seamlessly as memory capacity and the number of memory chips grow.

Limitations and Future Work

While DIPTA offers a significant leap forward, some challenges remain. Like all inverted page tables, it must handle "synonyms" (multiple virtual addresses mapping to the same physical address). The authors suggest OS-level workarounds or small hardware structures to manage this. Additionally, while DIPTA is mostly transparent, the OS must be "associativity-aware" during page allocation to minimize conflicts. Future work may also explore how performance changes in systems relying heavily on disk swapping, though such scenarios are increasingly rare in high-performance data centers.

Summary updated

BibTeX
@inproceedings{picorel2017near,
  author = {Javier Picorel and Djordje Jevdjic and Babak Falsafi},
  title = {{Near-Memory Address Translation}},
  booktitle = {PACT},
  year = {2017},
  doi = {10.1109/pact.2017.56},
}
Figure