[Paper Review] EMOGI: Efficient Memory-access for Out-of-memory Graph-traversal In GPUs
EMOGI proposes a direct cache-line-sized memory access mechanism for GPU-based graph traversal on out-of-GPU-memory graphs, avoiding UVM's page fault overhead by coalescing and aligning external memory requests. It achieves 2.60× speedup over optimized UVM implementations by maximizing PCIe bandwidth utilization and minimizing I/O amplification.
Modern analytics and recommendation systems are increasingly based on graph data that capture the relations between entities being analyzed. Practical graphs come in huge sizes, offer massive parallelism, and are stored in sparse-matrix formats such as CSR. To exploit the massive parallelism, developers are increasingly interested in using GPUs for graph traversal. However, due to their sizes, graphs often do not fit into the GPU memory. Prior works have either used input data pre-processing/partitioning or UVM to migrate chunks of data from the host memory to the GPU memory. However, the large, multi-dimensional, and sparse nature of graph data presents a major challenge to these schemes and results in significant amplification of data movement and reduced effective data throughput. In this work, we propose EMOGI, an alternative approach to traverse graphs that do not fit in GPU memory using direct cacheline-sized access to data stored in host memory. This paper addresses the open question of whether a sufficiently large number of overlapping cacheline-sized accesses can be sustained to 1) tolerate the long latency to host memory, 2) fully utilize the available bandwidth, and 3) achieve favorable execution performance. We analyze the data access patterns of several graph traversal applications in GPU over PCIe using an FPGA to understand the cause of poor external bandwidth utilization. By carefully coalescing and aligning external memory requests, we show that we can minimize the number of PCIe transactions and nearly fully utilize the PCIe bandwidth even with direct cache-line accesses to the host memory. EMOGI achieves 2.92$ imes$ speedup on average compared to the optimized UVM implementations in various graph traversal applications. We also show that EMOGI scales better than a UVM-based solution when the system uses higher bandwidth interconnects such as PCIe 4.0.
Motivation & Objective
- Address the performance bottleneck in GPU-based graph traversal when graphs exceed GPU memory capacity.
- Investigate why Unified Virtual Memory (UVM) underperforms for irregular, sparse graph workloads due to I/O read amplification and poor bandwidth utilization.
- Explore whether fine-grained, cache-line-sized memory accesses to host memory can sustain high bandwidth and tolerate long latency.
- Design a system that minimizes PCIe transactions and maximizes effective memory throughput without relying on UVM or pre-processing.
- Demonstrate that direct memory access can outperform UVM-based approaches and scale better with higher-bandwidth interconnects like PCIe 4.0.
Proposed method
- Analyze GPU memory access patterns over PCIe using an FPGA to identify inefficiencies in UVM-based graph traversal.
- Implement direct cache-line-sized accesses to host memory instead of relying on UVM’s page-level migration.
- Coalesce and align memory requests to reduce the number of PCIe transactions and improve data transfer efficiency.
- Optimize memory access patterns to minimize latency and maximize utilization of available PCIe bandwidth.
- Integrate the optimized access pattern into key graph traversal kernels (e.g., BFS, SSSP) without explicit memory management or graph pre-processing.
- Evaluate performance across multiple graph workloads and interconnects, comparing against optimized UVM and prior state-of-the-art approaches.
Experimental results
Research questions
- RQ1Can direct cache-line-sized memory accesses to host memory sustain high bandwidth and tolerate long latency in GPU graph traversal?
- RQ2Why does UVM exhibit poor external memory bandwidth utilization for irregular, sparse graph workloads despite its transparent memory management?
- RQ3To what extent can coalescing and aligning memory requests reduce PCIe transaction count and improve effective throughput?
- RQ4How does EMOGI’s performance scale with increasing interconnect bandwidth, such as PCIe 4.0, compared to UVM-based solutions?
- RQ5Can EMOGI outperform UVM-based systems without requiring pre-processing, reordering, or hardware modifications?
Key findings
- EMOGI achieves an average 2.60× speedup over optimized UVM implementations across various graph traversal workloads.
- The performance improvement stems from eliminating I/O read amplification by fetching only required bytes via fine-grained access instead of entire 4KB pages.
- EMOGI nearly fully utilizes PCIe bandwidth by minimizing the number of transactions through request coalescing and alignment.
- EMOGI scales almost linearly with improved interconnect bandwidth, such as PCIe 4.0, due to reduced dependency on page fault handling overhead.
- The approach is orthogonal to existing UVM optimizations—EMOGI can be combined with techniques like prefetching, memory hints, or graph reordering for further gains.
- The method is deployable as a library to provide transparent performance improvements without requiring application-level changes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.