Abstract
Modern data-intensive applications often exceed the physical memory capacity of GPUs, necessitating the use of Unified Virtual Memory (UVM). However, traditional UVM implementations suffer from significant performance overhead due to CPU and Operating System (OS) involvement in handling page faults. This paper presents GPUVM, a novel system that enables GPUs to manage their own virtual memory by leveraging RDMA-capable network cards to bypass the CPU. GPUVM eliminates the software bottleneck of traditional UVM, achieving up to 4x speedup for latency-bound applications and maintaining high throughput even with small page sizes.
Introduction: The Performance Tax of UVM
The growth of Large Language Models (LLMs) and massive graph analytics has pushed datasets beyond the VRAM limits of modern GPUs. NVIDIA’s Unified Virtual Memory (UVM) addresses this by providing a shared address space, but it introduces a substantial performance "tax." When a page fault occurs, the GPU must interrupt the CPU, which then invokes the OS kernel to update page tables and initiate DMA transfers. This serial process is highly inefficient.
As shown in the latency analysis above, the OS involvement can be up to 7x more expensive than the actual data transfer itself for small page sizes. This overhead creates a massive bottleneck for applications with irregular memory access patterns that trigger frequent faults.
Methods: GPU-Driven Memory Management
GPUVM shifts the responsibility of memory management from the CPU to the GPU. Since current hardware does not allow a GPU to directly initiate PCIe transfers to host memory without OS intervention, GPUVM utilizes Remote Direct Memory Access (RDMA) as a high-speed "side-door."
The architecture consists of three main components:
- RNIC Mediator: An RDMA-capable NIC acts as a bridge, allowing GPU threads to communicate directly with host memory.
- GPU-Side Runtime: A library running on the GPU detects page faults, manages a local page table, and selects "leader" threads to handle requests.
- Streamlined I/O Pipeline: Instead of waiting for the CPU, a GPU leader thread posts a work request directly to the RNIC’s queues, polls for completion, and updates the GPU page table once the data arrives.
To further optimize graph processing, the authors introduced a "Balanced Compressed Sparse Row" (BCSR) representation, which ensures that memory access and page faults are distributed evenly across GPU threads to prevent serialization.
Results and Discussion
GPUVM was evaluated against standard benchmarks and large-scale datasets, including graph analytics (BFS, CC, SSSP) and the Chicago Taxi Trips dataset. Key findings include:
- Throughput Efficiency: GPUVM achieves maximum usable PCIe bandwidth even with 4KB page sizes, whereas UVM requires 512KB pages to reach the same level of utilization. This significantly reduces "I/O amplification."
- Application Speedup: GPUVM outperformed traditional UVM by up to 4x in latency-bound scenarios and showed a 1.89x speedup over state-of-the-art graph frameworks like Subway.
- Oversubscription Stability: GPUVM’s FIFO-based circular buffer management provides predictable performance under high memory pressure, avoiding the exponential slowdowns seen in UVM during eviction cycles.
Conclusion
GPUVM demonstrates that the primary bottleneck in modern GPU memory management is the serial nature of CPU/OS interrupt handling, not the physical interconnect. By moving to a parallel, GPU-driven model facilitated by RDMA, GPUVM provides a scalable and efficient solution for oversubscribed GPU workloads. Future work will focus on optimizing asynchronous write-backs and scaling to multi-GPU clusters.
Summary updated