NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Scalable and Efficient Virtual Memory Sharing in Heterogeneous SoCs with TLB Prefetching and MMU-Aware DMA Engine

Andreas Kurth, Pirmin Vogel, Andrea Marongiu, Luca Benini · DOI

Abstract

Shared Virtual Memory (SVM) is a critical feature for modern Heterogeneous Systems-on-Chip (HeSoCs), enabling seamless memory sharing between general-purpose CPUs and many-core accelerators. However, the overhead of address translation and the scalability of hardware IOMMUs often limit performance. This paper presents a hybrid hardware-software approach to SVM that utilizes compiler-generated prefetching helper threads (PHTs) and a lightweight, MMU-aware DMA engine (vDMA). By offloading page table walking to software and optimizing DMA burst handling through a metadata-based retirement buffer, the proposed system achieves up to a 4x performance improvement in irregular workloads while significantly reducing hardware memory overhead.

Introduction

In modern HeSoCs, general-purpose host CPUs operate alongside specialized many-core accelerators. SVM simplifies development by providing a unified address space across these components. However, this convenience comes with a "translation tax": every memory access requires a virtual-to-physical address translation via a Translation Lookaside Buffer (TLB). TLB misses necessitate slow page table walks in main memory.

Existing hardware IOMMU solutions face two primary challenges:

  1. Scalability: Fixed-function hardware page table walkers become bottlenecks when dozens of parallel cores experience simultaneous TLB misses.
  2. DMA Inefficiency: Standard DMA engines require large data buffers to prevent stalls during TLB misses, leading to significant area overhead.
Overview of the HeSoC architecture featuring a Host Processor and a Programmable Many-Core Accelerator connected via a hybrid IOMMU.

Proposed Methodology

The authors introduce a three-pronged hybrid solution to address these bottlenecks:

Prefetching Helper Threads (PHTs)

To minimize TLB misses, the compiler automatically generates PHTs from the original worker thread (WT) code. These threads run on spare accelerator cores and focus exclusively on calculating future memory addresses to "warm up" the TLB proactively. Unlike hardware prefetchers, PHTs possess semantic knowledge of data structures, enabling accurate prefetching for irregular patterns.

Interaction between Worker Threads (WTs) and Prefetching Helper Threads (PHTs) using the L1 scratchpad memory for run-time information exchange.

Parallel Miss Handling Helper Threads (MHTs)

When misses occur, they are handled by software-based MHTs. This approach allows the system to scale resources dynamically: more cores can be assigned to miss handling during memory-intensive phases. MHTs share state to prevent redundant page table walks.

MMU-Aware DMA Engine (vDMA)

The "vDMA" incorporates a "retirement buffer" that stores only the metadata (address, ID, length) of in-flight bursts rather than the data itself. If a burst triggers a TLB miss, the vDMA tracks the failure, handles the translation, and reissues only the affected burst. This allows the engine to continue processing unrelated transfers without stalling.

Evaluation

The architecture was implemented on a Xilinx Zynq-7045 SoC FPGA. Evaluation focused on two benchmarks:

  • Pointer Chasing (PC): Represents irregular, data-dependent access patterns (e.g., graph processing).
  • Stream Processing (SP): Represents regular, strided access patterns (e.g., signal processing, neural networks).

Key Results and Insights

  • Performance: The system outperformed state-of-the-art solutions by 4x for Pointer Chasing and 60% for Stream Processing. Performance remained within 25% of a theoretical "ideal" zero-latency IOMMU.
  • Hardware Efficiency: The vDMA retirement buffer requires only 64 Bytes to manage the same number of misses that would necessitate 16 KB in conventional designs—a 256x reduction in memory overhead.
  • Software Flexibility: Moving page table walking to software (MHTs) provides a scalable alternative to rigid hardware walkers, allowing the system to adapt to varying workload demands.

Conclusion

This work demonstrates that a hybrid approach—combining compiler-informed prefetching with lightweight hardware modifications—can effectively mitigate the SVM overhead in HeSoCs. Future research will explore speculative prefetching for unpredictable access patterns and further optimizations to eliminate DMA stalls entirely during address translation.

Summary updated

BibTeX
@inproceedings{kurth2018scalable,
  author = {Andreas Kurth and Pirmin Vogel and Andrea Marongiu and Luca Benini},
  title = {{Scalable and Efficient Virtual Memory Sharing in Heterogeneous SoCs with TLB Prefetching and MMU-Aware DMA Engine}},
  booktitle = {ICCD},
  year = {2018},
  doi = {10.1109/iccd.2018.00052},
}
Figure