NVMe storage server beside GPU nodes

GPUDirect Storage Explained: When It Helps and What You Need

Adding GPUs does not speed up a job that is waiting for data. In many clusters, storage traffic passes through system memory and the CPU before it reaches the accelerator. GPUDirect Storage is designed to shorten that path. This guide explains where it helps, what it needs, and how to check whether it is your problem at all.

Engineer checking storage cabling
GPUDirect Storage Explained: When It Helps and What You Need

What GPUDirect Storage does

Normally, data read from a drive goes to a buffer in system memory, then is copied to the GPU. GPUDirect Storage lets a storage device, local or remote, transfer directly into GPU memory. NVIDIA’s overview guide describes the design and the cuFile interface applications use.

What it can improve

  • Higher throughput when the bounce buffer is the limit
  • Lower CPU use for data loading
  • Less pressure on system memory bandwidth
  • Faster checkpoint reads and writes in suitable designs

It does not fix slow disks, undersized networks, tiny files or expensive preprocessing.

First, find the bottleneck

  1. Watch GPU utilisation during a normal epoch. Dips show waiting.
  2. Run the same job with synthetic data. If speed jumps, data is the limit.
  3. Measure storage throughput and latency separately.
  4. Check CPU usage in the data loader.
  5. Look at file sizes. Millions of small images are usually a format problem.
GPU cluster data hall
GPUDirect Storage Explained: When It Helps and What You Need

What you need

Layer Requirement to verify
GPU Supported data center or professional model
Platform PCIe layout that lets storage and GPU communicate well
Network RDMA capable adapter for remote storage
File system Version listed as supported
Driver and kernel Compatible combination
Application Uses cuFile directly or through a library

If any layer is missing, the software can fall back to the traditional path, so a working job is not proof that the direct path is active. Use the vendor’s check tool and statistics.

Topology matters

A drive attached to one CPU socket and a GPU attached to the other will cross the inter-socket link, which can cancel the benefit. Review how adapters, switches and drives are placed before buying. Our explanation of NVLink vs PCIe helps read the diagrams, and InfiniBand vs RoCEv2 covers the network side.

Alternatives to try first

  • Pack small files into larger shards
  • Cache hot data on local NVMe
  • Move decoding to the GPU
  • Increase data loader workers, carefully
  • Fix the network before the file system

These are often cheaper and quicker.

How to test fairly

  1. Use a realistic file set, with your own sizes.
  2. Run with the direct path on and off.
  3. Record throughput, CPU load and GPU utilisation.
  4. Repeat with several GPUs at once.
  5. Add a failure test: disconnect a path and observe behaviour.

When it is worth it

Large training runs with frequent reads, big checkpoints, data analytics on GPUs and video or simulation work are the usual candidates. A small inference server that loads a model once a day is not.

Worked example: is storage really the limit?

Suppose a training job on eight GPUs processes 4,000 images a second in total, and each image file averages 120 KB. The data rate is 4,000 × 120 KB, about 480 MB a second. One modern NVMe drive can normally supply that. If the GPUs still wait, the cause is more likely file opens, decoding or the number of workers.

Now take a different job: samples of 4 MB, 2,000 a second. That is 8 GB a second, sustained. Here the path, the network and the CPU copies matter, and a direct path becomes worth testing. Doing this multiplication first prevents expensive guesses.

Reading the symptoms

Symptom Likely area First check
GPU use falls in regular waves Loader cannot keep up Synthetic data test
One CPU core is full Single-threaded decoding Worker settings
High latency, low throughput Small files or metadata Pack into shards
Good locally, poor over the network Network or file system Network-only test
First epoch slow, later ones fast Cache effect Test with cold cache
Checkpoints stall training Write path Asynchronous or staged writes

A sensible rollout

  1. Record a baseline with software versions.
  2. Confirm that every layer is on the vendor’s support list.
  3. Enable it on one node and run the check tool.
  4. Compare the same job with the path on and off.
  5. Test failure and recovery, including a full file system.
  6. Document kernel, driver and firmware versions as one set.
  7. Extend to the remaining nodes.

Step six is often ignored. An ordinary kernel update can move you back to the slower path without any visible failure, so add a short throughput check after each maintenance window.

Questions for a storage vendor

  • Which exact versions are supported together?
  • What throughput was measured per node, with which file size?
  • How does it behave when a drive or controller fails?
  • Is the path encrypted, and what does that cost?
  • Can we test with our own data before purchase?

For wider sizing, read high-performance storage for generative AI.

Frequently asked questions

Is GPUDirect Storage the same as GPUDirect RDMA?

No. RDMA covers transfers between a network adapter and GPU memory. Storage adds a path and interface for file data, and may use RDMA for remote systems.

Will it speed up LLM inference?

It can shorten model loading or cache movement in some designs, but steady token generation is usually limited elsewhere.

Does it need a special file system?

It needs a supported one. Check the current list in the vendor documentation.

How do I know it is active?

Use the statistics provided with the software and compare CPU load with the path disabled.

Can I use it with a normal NVMe drive?

Possibly, if the drive, file system, driver and platform combination is supported. A supported list matters more than the drive’s headline speed.

Summary

Measure first, fix the simple things, then add the direct path where data movement is proven to be the limit. The topology drawing is as important as the GPU model.


Last update at December 2025

Leave a Reply

Your email address will not be published. Required fields are marked *