Inferensys

Glossary

RDMA

Remote Direct Memory Access (RDMA) is a technology enabling direct memory access from one computer's memory to another's without operating system involvement, delivering high-throughput, low-latency networking essential for GPU clusters.
Performance engineer optimizing AI latency on laptop, latency charts visible, technical optimization session.
NETWORKING PROTOCOL

What is RDMA?

Remote Direct Memory Access is a technology enabling direct memory-to-memory data transfer between computers without involving the operating system, CPU, or intermediate data copies.

Remote Direct Memory Access (RDMA) is a networking technology that allows a computer to directly read from or write to the memory of a remote machine, completely bypassing the remote host's operating system and CPU. This kernel bypass eliminates context switches and intermediate data copies in protocol stacks, enabling ultra-low latency measured in single-digit microseconds and high-throughput data transfer with minimal CPU overhead.

RDMA achieves this by offloading the entire transport protocol to a specialized RDMA-capable Network Interface Controller (RNIC). The NIC performs direct memory transfers using zero-copy semantics, placing data directly into application buffers. This is critical for distributed AI training on GPU clusters, where NVIDIA GPUDirect RDMA allows network adapters to write data directly to GPU memory, accelerating collective communication operations like all-reduce across nodes.

Architectural Fundamentals

Core Characteristics of RDMA

Remote Direct Memory Access defines a set of properties that fundamentally alter how data moves between nodes in a high-performance cluster. These characteristics eliminate traditional networking bottlenecks by bypassing the operating system kernel and CPU on the target machine.

01

Kernel Bypass

RDMA enables a network adapter to transfer data directly to and from application memory without involving the host operating system kernel. In a traditional TCP/IP stack, data must traverse the kernel's network stack, incurring context switches and memory copies. With kernel bypass, an RDMA-enabled NIC reads or writes data directly from a pinned application buffer, reducing latency to single-digit microseconds and freeing CPU cycles for computation rather than I/O processing. This is critical for GPU clusters where every microsecond of communication delay stalls expensive accelerators.

< 1 µs
Typical Latency Addition
02

Zero-Copy Data Transfer

Conventional network stacks perform multiple memory copies: from application buffer to kernel socket buffer, then to the NIC's transmit ring. RDMA eliminates these intermediate copies. The NIC's DMA engine reads data directly from the source application buffer and writes it directly into the destination application buffer across the network. This zero-copy mechanism dramatically reduces memory bandwidth consumption and CPU overhead, allowing a single server to saturate 200Gb/s or 400Gb/s links without becoming CPU-bound on data movement tasks.

3-5x
CPU Efficiency Gain
03

One-Sided Operations

RDMA supports RDMA Read and RDMA Write operations that are executed entirely by the initiator's NIC without waking the remote CPU. The initiator specifies a remote memory address, and the remote NIC services the request autonomously using previously exchanged memory registration keys. This one-sided semantic is transformative for distributed computing patterns like shared-memory emulation and parameter server architectures in deep learning, where a training node can push gradients directly into a remote buffer without interrupting the parameter server's CPU.

0%
Remote CPU Utilization
04

Transport Offload

The entire transport protocol processing is offloaded to the RDMA network adapter hardware. Functions such as packet segmentation, reassembly, acknowledgment generation, and retransmission logic execute on the NIC's ASIC rather than in software. This hardware offload guarantees deterministic, line-rate performance regardless of host CPU load. For AI training workloads using NCCL collective communications, this ensures that all-reduce operations complete with predictable, low tail latency even when the host CPUs are saturated with data preprocessing tasks.

400 Gb/s
Line-Rate Throughput
05

Memory Registration and Pinning

Before RDMA operations can occur, application memory regions must be registered with the RNIC. This registration pins the virtual memory pages to physical memory, preventing the OS from swapping them out, and provides the NIC with the virtual-to-physical address mappings. The NIC caches these translations in its internal Memory Translation Table, enabling it to perform address translation at line rate without host intervention. While registration introduces a one-time setup cost, it is essential for the safety and performance of direct memory access.

~1-2 ms
Registration Latency
06

Reliable vs. Unreliable Transports

RDMA fabrics offer multiple transport modes tailored to different workload requirements:

  • Reliable Connection (RC): Provides in-order, lossless delivery with hardware-based retransmission. Ideal for storage protocols and MPI collectives.
  • Unreliable Datagram (UD): Offers connectionless messaging without guaranteed delivery. Used for control plane operations and scalable one-to-many communication.
  • Dynamically Connected (DC): Balances scalability and reliability by dynamically establishing connections, commonly used in large-scale AI clusters to avoid connection state explosion.
RDMA DEEP DIVE

Frequently Asked Questions

Remote Direct Memory Access (RDMA) is a transformative networking technology that eliminates the operating system from the data transfer path, enabling microsecond latency and line-rate throughput essential for distributed GPU training. The following answers address the most critical technical and architectural questions about RDMA in modern AI infrastructure.

Remote Direct Memory Access (RDMA) is a networking technology that allows a computer's network interface controller (NIC) to directly read from or write to the application memory of a remote machine without involving the remote host's operating system, CPU, or kernel. This kernel bypass mechanism eliminates context switches and intermediate data copies. The process works through zero-copy data transfers: the RDMA-capable NIC (RNIC) pulls data directly from user-space buffers, segments it into packets, and transmits it across the fabric. On the receiving side, the RNIC places the payload directly into the target application's pre-registered memory region without waking the CPU. This is orchestrated by Queue Pairs (QPs)—send and receive queues mapped directly to user space—and Work Requests (WRs) posted to these queues. Completion is signaled via Completion Queues (CQs). The result is end-to-end latencies as low as 1-2 microseconds, compared to 15-25 microseconds for traditional kernel-based TCP/IP stacks, making RDMA indispensable for latency-sensitive distributed GPU workloads like NCCL all-reduce operations.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.