Direct-Access-Enabled GPU Memory Offloading with Optimal Efficiency for LLM Inference
Abstract
LLM inference is constrained by GPU memory capacity and bandwidth. Tiered memory architectures mitigate this by allowing the GPU to offload memory to the remote tier. However, existing memory offloading frameworks rely on prefetching data into local GPU HBM. This approach underutilizes system resources by introducing HBM contention, squandering memory capacity, and creating pipeline bubbles. We show that enabling direct GPU access to remote memory significantly outperforms prefetching, achieving optimal aggregate system bandwidth. We propose SplitKernel, an end-to-end direct-access memory offloading framework that uses the Tensor Memory Accelerator (TMA) to asynchronously fetch offloaded weights and KV caches directly from remote memory into GPU shared memory (SMEM). To maximize remote access performance, SplitKernel introduces a greedy algorithm to determine optimal per-operation offloading ratios, alongside active congestion control and TMA multicast to eliminate interconnect bottlenecks and read amplification. Evaluations across diverse architectures show that SplitKernel achieves near-optimal bandwidth aggregation, with up to 7.7× performance gains on NVLink-C2C and 2.3× on PCIe systems compared to state-of-the-art memory offloading baselines.