AI Infra Interviews logo
← Networking, Interconnects & Storage / 04
easyNVIDIACrusoe

What is RDMA, and when does it help a training cluster more than TCP?

Trace registered-memory access and GPU staging, then compare RDMA with sockets using measured CPU and application performance.

Updated Oct 2026 · Learn how AI infrastructure works through explanations, worked examples and diagrams, then practise applying it to interview questions.

TL;DR: RDMA lets a network adapter access registered memory through supported operations with less host involvement in the data path. GPUDirect RDMA can extend that access to GPU memory, avoiding host staging. TCP can support training too; the choice depends on measured latency, CPU cost, topology and operational requirements.

How to approach it

Describe the memory path before quoting performance. Separate registration and setup from repeated transfers. Distinguish host-memory RDMA from direct GPU-memory access, and end with a matched measurement rather than a universal TCP throughput-per-core claim.

A strong answer

RDMA stands for remote direct memory access: a network adapter moves data straight into or out of registered memory on another machine, with the CPUs mostly out of the data path. A 400 Gb/s label tells you a nominal link rate, not how much training traffic reaches GPU memory. The payload might pass through host staging, share a PCIe path, or wait for another rank. RDMA reduces particular sources of overhead; it does not remove all of them.

Which buffer does the NIC access?Host-staged GPU transferGPU → host staging → NICHost buffer is on the payload path.Supported GPUDirect RDMA pathGPU buffer ↔ NIC ↔ networkReuse only after completion.Direct access still needs control.Check support and measured CPU cost.

A registered memory region gives the adapter an authorized mapping for the relevant buffer. Registration and lifetime management involve the OS and driver; established transfers can use a path with less kernel involvement. Reuse registration where appropriate, but never keep a stale mapping after the allocation is released or repurposed.

Applications submit work requests through queues. In a common reliable-connected verbs design, a queue pair has send and receive work queues, and completion queues report completed work. A two-sided send requires matching receive resources. A one-sided read or write accesses an authorized remote region without the remote application posting a receive for each payload. Setup, permissions, synchronization and notification still require a protocol between participants.

Kernel bypass and avoiding copies are related but distinct. Kernel bypass reduces operating-system work during repeated transfers; avoiding copies removes movement between intermediate buffers. TCP implementations can use batching, offloads and copy-avoidance techniques, so there is no universal five-gigabit-per-core ceiling or fixed fifty-core requirement for a 400 Gb/s link.

Here is a synthetic CPU-budget comparison, not a benchmark:

400 Gb/s / 8 = 50 GB/s nominal, before overhead
at 40 GB/s application payload and measured cost 2 CPU cycles/byte:
CPU demand = 80 billion cycles/s
at an assumed available 3 billion cycles/s per core: about 26.7 core-equivalents
if measured cost is 0.2 cycles/byte instead: about 2.67 core-equivalents
sanity: the measured cycles/byte changes the answer tenfold.

Core-equivalents are an accounting estimate, not a promise of perfect scaling. NUMA placement, polling, contention and CPU frequency affect the actual result. Measure application payload and CPU time together rather than inferring CPU cost from the link label.

Host-memory RDMA does not by itself eliminate GPU staging. NVIDIA's GPUDirect RDMA documentation describes direct device-memory access and its platform and memory-ordering requirements. Support depends on the driver, memory registration mechanism and PCIe topology. A direct path can avoid host-buffer traffic, but it does not guarantee exactly twice the bandwidth: different links may overlap or become the next bottleneck.

Completion and visibility matter as much as speed. Do not assume that a concurrently running GPU consumer can safely read data merely because a remote write was issued. Use the supported synchronization and library contract, and keep buffers alive until the relevant work completes. Correctness tests should exercise reuse and overlapping transfers, not only a single isolated copy.

Compare a matched host-memory transport test, a supported GPU-memory test, representative collectives and the full training step. A good two-node result does not certify every rail, rank, switch path or congested workload. GPUDirect RDMA and GPUDirect Storage links the memory paths to deployment concerns.

Use RDMA where its measured savings justify the supported stack and operations burden. Keep ordinary sockets when they meet the workload's latency and CPU budgets. Reverse a direct-path preference if the topology is unsupported or the end-to-end workload does not improve; preserve correctness and supportability first.

What interviewers probe next

  • "Does one-sided mean no remote CPU ever?" No; setup and application coordination remain, even if each payload avoids remote CPU handling.
  • "Is all RDMA InfiniBand?" No. RDMA can use other transports, including RoCE; fabric configuration still matters.
  • "Does a TCP test tell me nothing?" It measures that TCP path. It just does not establish RDMA or GPU-buffer performance.

Common mistakes

  • Assuming hardware capability proves the selected path is active.
  • Treating reduced host staging as a universal 2× gain.
  • Reusing a buffer before transfer completion and visibility are established.

Key takeaways

  • Registration, access permission and buffer lifetime enable direct memory access safely.
  • 400 Gb/s is 50 GB/s nominal; useful payload and CPU cost require measurement.
  • Choose the path using complete-workload evidence, not a fixed TCP-versus-RDMA slogan.
You can read the first 10 answers per topic without an account. Signing in increases that to 20, includes lessons marked Plus, and saves your progress so you can return to topics you want to review.no card · Google sign-in · nothing to cancel
HOW DID IT GO?
0
READING SIGNED OUT

Signing in doubles your free answers, from 10 to 20 per topic, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
FEDITOR'S NOTE

Follow the payload from memory registration to completion. Distinguish host-memory RDMA from GPU access, and compare CPU cost at the same useful transfer rate.

DISCUSSION · 0

No comments yet — be the first to share your approach.