RDMA
RDMA (remote direct memory access) lets one computer read from or write to the memory of another over a network, without involving either machine’s operating system in moving the data.
In more detail
In conventional networking, data passes through the operating system’s network stack on both machines. It is copied between buffers, and the processor handles each packet. That costs time and processor capacity.
RDMA removes most of that. An application registers a region of its memory with the network adapter. The adapter, which implements the whole transport protocol in hardware, then moves data directly between that memory and the network. Three properties result:
- Kernel bypass. The application talks to the adapter directly.
- Zero copy. Data is not copied between intermediate buffers.
- Low processor involvement. The remote machine’s processor may not be involved at all in a read or write.
Applications use an interface known as verbs, usually through libraries. RDMA runs over several networks: InfiniBand, where it originated, Ethernet through RoCE, and newer transports such as Ultra Ethernet Transport.
Why it matters
RDMA brings latency down to a few microseconds and lets a link be used at full capacity with little processor load. It has long been standard in supercomputing and fast storage.
It is now essential in AI. Accelerators in a cluster exchange huge volumes of data at every training step, and RDMA allows that data to move directly between their memories. It extends the idea of DMA from a single machine to the network.