2.5 Components of an accelerated cluster
Compute, networking, management and storage, and how training uses storage.
Key points
I/O (input/output) here means reading and writing data to storage. Training passes over the same dataset many times. Each pass is an epoch. NVIDIA says the key I/O operation in DL training is re-read. That is why caching the data after the first read helps so much.
What NVIDIA says (2)
“The key I/O operation in DL training is re-read.”
“It is not just that data is read, but it must be reused again and again due to the iterative nature of DL training.”
DMA (direct memory access) lets a device move data without the CPU copying each byte. A bounce buffer is an extra copy in CPU memory on the way to the GPU. GDS enables a direct DMA path between GPU memory and storage that avoids that bounce buffer. NVIDIA says this can relieve bandwidth bottlenecks and lower latency and CPU load.
What NVIDIA says (2)
“GPUDirect® Storage (GDS) enables a direct data path for direct memory access (DMA) transfers between GPU memory and storage, which avoids a bounce buffer through the CPU.”
“Using this direct path can relieve system bandwidth bottlenecks and decrease the latency and utilization load on the CPU.”
A checkpoint is a saved copy of the model's state during training. If a node fails, the job restarts from the last checkpoint instead of from the beginning. NVIDIA says writing checkpoints is necessary for fault tolerance as models grow, and that write performance can also be important.
What NVIDIA says (2)
“As DL models grow in size and time-to-train, writing checkpoints is necessary for fault tolerance.”
“Write performance can also be important.”
An accelerated cluster is more than its GPU servers. NVIDIA defines the DGX SuperPOD architecture as a combination of DGX systems, InfiniBand and Ethernet networking, management nodes, and storage. Each part has to keep up with the others or the GPUs sit idle.
What NVIDIA says (1)
“The DGX SuperPOD architecture is a combination of DGX systems, InfiniBand and Ethernet networking, management nodes, and storage.”
GPUDirect Storage moves data straight between storage (or a NIC) and GPU memory. Under a PCIe switch, that path should stay inside the switch. NVIDIA's GDS best practices say ACS forces peer-to-peer PCIe transactions up through the root complex, which stops GDS from bypassing the CPU. IOMMU has a similar effect by routing traffic through CPU root ports. The guide notes 'gdscheck -p' lists PCI switches with ACS enabled.
What NVIDIA says (2)
“ACS forces P2P PCIe transactions to go up through the PCIe Root Complex, which does not enable GDS to bypass the CPU on paths between a network adapter or NVMe and the GPU in systems that include a PCIe switch.”
“When the IOMMU setting is enabled, PCIe traffic will be routed through the CPU root ports.”
Crossing CPU sockets adds latency and limits bandwidth for direct transfers. NVIDIA's GDS best practices say to ensure at least one NIC is in the same CPU socket as the GPU, and to avoid NIC assignments that require PCIe traffic to cross CPU root ports or sockets.
What NVIDIA says (2)
“For the P2P DMA to function efficiently on NVIDIA DGX™ based platforms, ensure at least one NIC is in the same CPU socket as the GPU.”
“Avoid configurations where the NICs are assigned across the CPU sockets that require PCIe traffic to cross the CPU root ports or go across CPU sockets that use QPI.”
cuFile is the API applications use for GPUDirect Storage, and /etc/cufile.json holds its settings. NVIDIA's GDS configuration guide says allow_compat_mode, when true, enables compatibility mode, letting cuFile fall back to POSIX read/write. It suggests compat mode for systems or mounts not yet set up with GDS.
What NVIDIA says (2)
“Note Consider compat_mode for systems or mounts that are not yet set up with GDS support.”
“properties:allow_compat_mode true If true, enables the compatibility mode, which allows cuFile to issue POSIX read/write.”
Shared storage gives every node the same view of the data. NVIDIA says it must be optimized for small, random I/O and provide high peak node and aggregate filesystem performance. It should handle multi-threaded reads and writes from one system, but most deep learning workloads are read-dominant.
What NVIDIA says (2)
“It must be optimized for small, random I/O patterns, and provide high peak node performance and high aggregate filesystem performance to meet the variety of workloads an organization may encounter.”
“High-speed storage should support both efficient multi-threaded reads and writes from a single system, but most DL workloads will be read-dominant.”
The DGX SuperPOD is an integrated hardware and software solution. The reference architecture says NVIDIA Base Command powers every DGX SuperPOD, and includes enterprise-grade orchestration and cluster management, libraries that accelerate compute, storage and network infrastructure, and an OS optimized for AI workloads.
What NVIDIA says (2)
“DGX SuperPOD architecture overview NVIDIA Base Command # NVIDIA Base Command powers every DGX SuperPOD, enabling organizations to leverage the best of NVIDIA software innovation.”
“Enterprises can unleash the full potential of their investment with a proven platform that includes enterprise-grade orchestration and cluster management, libraries that accelerate compute, storage and network infrastructure, and an OS optimized for AI workloads.”
Each DGX system connects to several separate networks. The reference architectures say the compute fabric ports in the middle use two-port transceivers to access all eight GPUs, each pair of in-band management and storage ports gives parallel pathways for more performance, and the OOB port is for BMC access. The LAN port next to the BMC port is not used in DGX SuperPOD configurations.
What NVIDIA says (3)
“The compute fabric ports in the middle use a two-port transceiver to access all eight GPUs.”
“Each pair of in-band management and storage ports provide parallel pathways into the DGX H100 system for increased performance.”
“The OOB port is used for BMC access. (The LAN port next to the BMC port is not used in DGX SuperPOD configurations.)”
Key terms
- DGX SuperPOD: NVIDIA's reference design for an AI cluster made of DGX systems, InfiniBand and Ethernet networking, management nodes and storage.
- GPUDirect Storage: A direct path that moves data between storage and GPU memory without a copy through CPU memory.
- Checkpoint: A saved copy of training state so a job can resume after a failure.
- NVLink: NVIDIA's direct GPU-to-GPU interconnect inside a server.
- PCI Express: The standard interconnect inside a server that links the CPU to GPUs, network adapters and storage.
- Bandwidth: How much data a link or memory can move per second, for example in GB/s.
Try it
Sample question
What is the key storage I/O pattern in deep learning (DL) training, according to the DGX SuperPOD reference architecture?
Show the answer
Answer: Re-read: the same data is read again and again because training is iterative.
I/O (input/output) here means reading and writing data to storage. Training passes over the same dataset many times. Each pass is an epoch. NVIDIA says the key I/O operation in DL training is re-read. That is why caching the data after the first read helps so much.
What NVIDIA says (2)
“The key I/O operation in DL training is re-read.”
“It is not just that data is read, but it must be reused again and again due to the iterative nature of DL training.”