TL;DR
GIDS (GPU Initiated Direct Storage Access) is a novel dataloader that allows GPUs to fetch graph feature data directly from SSDs, bypassing the traditional CPU-centric bottlenecks. By combining direct storage access with a dynamic request accumulator and a look-ahead "window" cache, GIDS achieves up to a 582x speedup in training pipelines for terabyte-scale graphs compared to state-of-the-art frameworks.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) are powerful but notoriously difficult to scale. The primary bottleneck isn't the actual "learning" (model training) on the GPU; it’s the data preparation—specifically, sampling subgraphs and aggregating node features.
Standard frameworks like DGL or PyG typically use a hybrid approach: the CPU handles sampling and aggregation, then ships the data to the GPU. However, as graphs grow to billions of nodes and edges (terabyte-scale), two major problems emerge:
- The Throughput Gap: CPUs simply cannot generate data requests fast enough to keep a modern GPU busy. As shown in the paper's profiling (Figure 3), a GPU can consume features nearly 7x faster than a multi-threaded CPU can provide them.
- The Memory Wall: When a graph is too large for CPU RAM, frameworks fall back on "memory-mapped files" (mmap). This triggers OS page faults, which introduce massive software overhead and leave the GPU idling for long periods.
Methods
The authors propose GIDS, a system designed to treat the SSD as an extension of memory that the GPU can talk to directly.
1. GPU-Initiated Direct Storage (BaM)
GIDS builds on the BaM (Bulk and Micro-benchmark) research infrastructure, which allows GPU threads to initiate NVMe storage requests. This eliminates the need for CPU intervention and OS page-fault handling during feature fetching.
2. Dynamic Storage Access Accumulator
SSD hardware requires a high number of concurrent requests to reach peak bandwidth. GIDS introduces an accumulator that exploits the fact that GNN sampling is independent of the training of previous batches. It "runs ahead," merging multiple sampling iterations to ensure there are always enough concurrent storage requests to saturate the SSD's throughput.
3. Window Buffering (Look-ahead Caching)
Standard caches use policies like LRU (Least Recently Used). GIDS takes a smarter approach: because the sampling process happens before the feature aggregation, the system knows exactly which nodes will be needed in the near future. The Window Buffer looks ahead at upcoming mini-batches and prevents the GPU cache from evicting nodes that are about to be reused, significantly boosting the cache hit rate.
4. Constant CPU Buffer
GIDS uses a hybrid strategy. It pins the small, frequently accessed graph structure in CPU memory (using Unified Virtual Addressing) while keeping the massive feature vectors on the SSD. It also reserves a small portion of CPU RAM to act as a "constant buffer" for the most popular ("hot") nodes, identified via PageRank scores.
Datasets
The researchers evaluated GIDS using four massive real-world datasets:
- IGB-Full & IGBH-Full: Billion-scale graphs (up to 2.7 TB) that exceed typical CPU memory capacities.
- ogbn-papers100M & MAG240M: Standard large-scale benchmarks used to show that GIDS remains efficient even when data could fit in RAM.
Key Insights and Ideas
- Parallelism as Latency Hiding: The core "aha" moment is that you don't need storage to be as fast as RAM; you just need enough parallel requests to hide the storage latency. The GPU's thousands of threads are perfect for this.
- Decoupling Sampling from Training: By realizing that sampling for batch $N+1$ doesn't depend on the training results of batch $N$, the authors were able to implement the "look-ahead" window buffer, turning a random access problem into a predictable one.
- GPU Sampling is Superior: Even though sampling is a sequential-looking process, the GPU's ability to handle fine-grained irregular accesses makes it significantly faster than the CPU for this task (Figure 7).
Key Results
- Massive Speedups: Compared to the standard DGL mmap dataloader, GIDS achieved a 582x speedup on the IGB-Full dataset using Samsung 980pro SSDs.
- Outperforming Specialized Baselines: GIDS was up to 10.6x faster than Ginex (a recent SSD-optimized GNN framework) and 3.1x faster than a naive BaM implementation, proving that the GIDS-specific optimizations (accumulator and window buffer) are critical.
- Effective Bandwidth: By using the Constant CPU Buffer for hot nodes, GIDS could effectively "magnify" the bandwidth of a single SSD to match the performance of four SSDs.
Limitations and Future Work
- Preprocessing Costs: While GIDS avoids expensive graph partitioning (like Metis), identifying "hot" nodes via PageRank still requires a preprocessing step, though the authors argue this is much faster than traditional partitioning.
- Hardware Requirements: The system relies on NVMe SSDs and modern NVIDIA GPUs. Performance on older hardware or different storage types (like networked storage) is not explored.
- Future Directions: The authors suggest extending this to multi-GPU systems and exploring more complex, non-uniform sampling techniques.
Summary updated