🏗️
Domain 2 · AI Infrastructure · 40% of the exam

Network IO: DMA, RDMA, GPUDirect and Magnum IO

How data moves between GPUs, NICs and storage without the CPU in the way, and the libraries (NCCL, UCX, NVSHMEM) that use those paths.

Lesson 19 of 29~14 min read4 quiz questions6 key terms
Exam objectives this lesson covers
  • Determine networking requirements for AI workloads.
  • Identify and describe data center networking protocols and key concepts.
  • Explain the purpose and benefits of a DPU in a data center.

A GPU can only compute as fast as data reaches it. In the traditional path, data from the network lands in CPU memory, the CPU copies it, then it is copied again to GPU memory. Every copy costs time and CPU cycles. NVIDIA’s Magnum IO is the umbrella for technologies that remove those hops. The blog covers the network part.

01DMA → RDMA → GPUDirect

  1. DMA (direct memory access): inside one machine, a device such as a NIC or GPU reads and writes memory without the CPU copying every byte. The CPU only sets up the transfer.
  2. RDMA (remote DMA): the same idea across machines. A NIC writes directly into another host’s memory over an RDMA network (InfiniBand, RoCE or iWARP), bypassing the remote CPU and OS. Zero-copy, low latency.
  3. GPUDirect RDMA: the NIC reads and writes GPU memory directly, so GPU memory on host A reaches GPU memory on host B with no stop in CPU memory on either side. Needs an NVIDIA GPU, driver support and an RDMA-capable NIC (ConnectX).
  4. GPUDirect Storage: the same direct path between GPU memory and NVMe or networked storage (see Storage).
Host AHost BGPU memoryCPU + system RAMConnectX NICGPU memoryCPU + system RAMConnectX NICInfiniBand / RoCEGPUDirect RDMA: GPU memory → NIC → network → NIC → GPU memory, CPUs never touch the data
Fig 1. GPUDirect RDMA. Data flows from GPU memory through the NIC, across the fabric, into the remote GPU’s memory, skipping both CPUs.

The blog’s measured effect is large: GPU-to-GPU MPI latency between two nodes fell from about 26.6 µs to 3.4 µs with GPUDirect RDMA and GDRCopy, and an 8-adapter DGX A100 reached about 192 GB/s versus 71 GB/s without it.

GPUDirect RDMAGPUDirect StorageGPUDirect P2P
PathGPU ↔ NIC ↔ remote GPUGPU ↔ NVMe / network storageGPU ↔ GPU in one node (NVLink or PCIe)
Main useLow-latency multi-node trainingFast data loading and checkpointsIntra-node exchange
BypassesCPU and system memoryCPU bounce bufferCPU

02Offloading the packet work: ASAP²

ASAP² (Accelerated Switch and Packet Processing) offloads Ethernet packet processing, such as virtual switching, into hardware. On ConnectX adapters the data plane is offloaded (match/action rules run in silicon). On BlueField DPUs, both the data plane and the control plane can run on the card, freeing the host entirely.

03The communication libraries

LibraryWhat it does
NCCLTopology-aware collectives (AllReduce, AllGather, Broadcast, ReduceScatter) across GPUs and nodes; picks NVLink, PCIe or RDMA automatically; ring and tree algorithms; supports SHARP
UCXOpen-source communication layer that hides transport differences (InfiniBand, RoCE, TCP, NVLink, GPUDirect) behind one API
HPC-XNVIDIA’s packaged MPI + UCX toolkit for HPC, including SHARP support
NVSHMEMLets GPU kernels initiate one-sided communication themselves, hiding latency without returning to the CPU
MPIThe classic HPC message-passing standard, GPU-aware when built with UCX/CUDA
Hardware vs softwareNVLink, NVSwitch, PCIe and RDMA are the roads (hardware plus drivers): they decide how fast one transfer goes. NCCL is the traffic management system (software): it decides how to organise thousands of transfers efficiently across 100+ GPUs.

04Benchmarks to sense the scale

The blog shows NCCL AllReduce bandwidth rising from 48 GB/s on DGX-1 to 85 GB/s on DGX-2 and 192 GB/s on DGX A100, and NCCL’s tree algorithm tested up to 24,000 GPUs. The lesson for the exam: interconnect plus communication software is what lets training scale across nodes.

Moving furniture between two houses. Without RDMA, every item goes through the front door, gets checked by the homeowner (CPU), then carried to the room. With GPUDirect RDMA, a crane lifts it from one bedroom window straight into the other house’s bedroom window.

✦Key terms: flip the cards

What the exam looks for
  • DMA (one host) → RDMA (across hosts) → GPUDirect RDMA (GPU memory across hosts) → GPUDirect Storage (GPU ↔ storage).
  • ConnectX offloads the data plane; BlueField can offload data and control planes.
  • NCCL is software that rides on NVLink/RDMA hardware.
Common traps
  • RDMA needs an RDMA-capable network: InfiniBand, RoCE or iWARP, not plain TCP.
  • GPUDirect RDMA and GPUDirect Storage are different paths (network vs storage).

?Quick quiz

1. Which technology lets a NIC write directly into a remote GPU’s memory?

Why: GPUDirect RDMA moves data between GPU memory and the NIC without CPU copies.

2. What does RDMA bypass on the remote host?

Why: RDMA writes memory without involving the remote CPU or kernel.

3. Which library coordinates AllReduce across 100+ GPUs?

Why: NCCL provides topology-aware collectives.

4. On which device can both the data plane and control plane be offloaded?

Why: BlueField runs control-plane software on its Arm cores plus hardware data-plane offload.

Score: 0 / 4

Original readingAccelerating IO in the Modern Data Center: Network IO, NVIDIA Technical Blog ↗

This lesson explains the reading in plain language and adds the exam context around it. Read the original too: it is short, and seeing the vendor wording helps on exam day.

All lessons →
↑