The simple version
Instead of the parcel stopping at your neighbour's house, the courier now drives straight to your door. But if the road to your door is closed, the courier quietly goes via the neighbour again and still says "delivered". You have to check which road was used.
What GDS does
GPUDirect Storage lets a storage device or NIC DMA data straight into GPU memory, skipping the CPU bounce buffer. Applications use the cuFile API (for example cuFileDriverOpen, cuFileHandleRegister, cuFileRead). Underneath, the direct path is provided by the nvidia_fs kernel driver or, on supported newer kernels, Linux PCI P2PDMA.
Compatibility mode
If the direct path isn't available (driver not loaded, unsupported filesystem or platform setting), cuFile can fall back to compatibility mode: ordinary POSIX I/O through a host bounce buffer. The calls still succeed, so an application or benchmark may look like it's using GDS while getting bounce-buffer performance. Whether fallback is allowed is controlled in cufile.json.
gdscheck -p reports "Found ACS enabled for switch …" and the IOMMU state, and the docs advise ACS disabled and IOMMU off or in pass-through for P2P.Verifying GDS
$ /usr/local/cuda/gds/tools/gdscheck -p # driver configuration: NVMe : Supported?
$ lsmod | grep nvidia_fs
$ /usr/local/cuda/gds/tools/gdsio -f /mnt/nvme/test -d 0 -w 4 -s 10G -i 1M -x 0 -I 0
$ cat /proc/driver/nvidia-fs/stats # per-GPU counters from the nvidia-fs driver
Compare gdsio -x 0 with -x 2. If they're the same, the "direct" path probably isn't direct. The nvidia-fs stats should show reads increasing during an -x 0 run when the nvidia-fs path is in use.
Tools
gdscheck -pPlatform and driver support check (GDS tools).
gdsio -x 0|1|2 -I 0|1GDS I/O benchmark: GPU direct, CPU only, CPU→GPU.
lsmod | grep nvidia_fsIs the nvidia-fs kernel driver loaded?
cat /proc/driver/nvidia-fs/statsnvidia-fs driver statistics.
Quiz
Lab
Lab 5.1 · GDS in compatibility mode
An engineer benchmarked GPUDirect Storage with gdsio -x 0 (GPUD) on /scratch from GPU 0. The output says XferType: GPUD, but the throughput matches the CPU bounce-buffer path.
Try it now in the simulator (opens with the command ready; press Enter):
$ gdscheck -p$ lsmod | grep nvidia_fs