Xinyuanyi

NVMe-oF vs. RDMA: A Latency Analysis for Inference Storage

NVMe-oFRDMA时延对比

Core Finding: NVMe-oF’s Latency Advantage Comes from Protocol Layering, Not a Single Technology

For large-model inference scenarios, NVMe-oF (NVMe over Fabric) and RDMA are not competing technologies at the same level—they work in a layered, complementary relationship. RDMA is one optional transport-layer implementation for NVMe-oF. Based on Xinyuanyi’s measurements on the AMD MI308X platform, an RDMA-based NVMe-oF all-flash array achieved TTFT reductions of 26–32% and throughput gains of 29–40% in KV Cache tiered acceleration [measured, report R2]. The latency advantage comes from the combination of three factors—NVMe command semantics, RDMA zero-copy transport, and all-flash media—not from any single technology. Understanding this layering is a prerequisite for evaluating the latency performance of inference storage solutions.

1. Protocol Layering: The Respective Latency Contributions of RDMA and NVMe-oF

To clarify the latency comparison, we first need to establish where each protocol sits in the stack. As defined in IETF RFC 5040, RDMA (Remote Direct Memory Access) provides data-transfer semantics that bypass the operating system kernel—the receiving NIC writes data directly into pre-registered application memory buffers, avoiding CPU copies and context switches. This mechanism means RDMA’s latency advantage comes primarily from a shortened path: data travels from NIC to application memory without passing through the kernel protocol stack.

NVMe-oF, by contrast, sits at a higher protocol layer. Per SNIA (Storage Networking Industry Association) terminology, NVMe-oF is a mapping specification that extends the NVMe command set across network transports, allowing remote NVMe devices to be accessed with semantics close to locally attached PCIe devices. NVMe-oF’s latency characteristics depend on its transport binding: when bound to RDMA (i.e., NVMe/RDMA), both commands and data follow the zero-copy path; when bound to TCP (i.e., NVMe/TCP), processing falls back to the kernel protocol stack.

As specified in IETF RFC 9293, TCP provides reliable, byte-stream-oriented transport whose congestion control and retransmission mechanisms inherently introduce additional processing latency. Therefore, when discussing “NVMe-oF vs. RDMA latency” in inference storage contexts, the real comparison is between NVMe/RDMA and NVMe/TCP paths—the former is a transport-layer optimization of the latter, not a replacement.

2. Measured Perspective: Latency Budget Distribution and Optimization Headroom in the Inference Path

With the protocol layering established, the practical question becomes: to what extent can storage-side latency optimization improve end-to-end inference performance? Xinyuanyi FX100 measurement data provides a quantitative reference. Under a 480B-parameter workload with TP8 and three concurrency levels during long-context cold-restore, FX100 reduced TTFT p50 from 10.17–35.73s to 7.53–26.35s, a reduction of 26–32% [measured, report R2]. This improvement does not come from the media’s raw latency limits but from restructuring the cold-restore path—when KV Cache must be reloaded from storage, the conventional path contains significant idle gaps.

This observation aligns with the memory-access bottleneck inherent to attention computation. As analyzed in the FlashAttention paper (NeurIPS '22, arXiv), attention computation is limited by HBM bandwidth rather than compute capacity—memory-access efficiency determines compute efficiency. KV Cache reads during inference are likewise memory-access-intensive operations, making storage path latency and bandwidth direct end-to-end bottlenecks. In a comparison against a no-external-memory recomputation baseline, Xinyuanyi measured speedups of 8.6–20× (recompute baseline TTFT p50 of 149.5s vs. FX100’s 11.85s; throughput of 4.1 vs. 74.9 tok/s) [measured, report R2], indicating that storage path optimization headroom far exceeds what the media itself offers.

It should be emphasized that NVMe-oF’s latency advantage has clear applicability boundaries. Per NVIDIA’s official GPUDirect Storage documentation, GPU-direct storage data-path optimizations (bypassing the CPU bounce buffer) require coordinated software–hardware support, and the benefits grow with larger data volumes and longer paths. For short, high-frequency metadata operations, protocol overhead occupies a larger share, narrowing NVMe-oF’s relative advantage. Storage solution evaluations should therefore be based on the actual workload’s I/O characteristics (block size, read/write ratio, concurrency depth) rather than a single benchmark.

3. Selection Criteria: Three Constraints Beyond Latency Metrics

Based on the above analysis, inference storage selection should not compare peak latency numbers alone but should examine three additional constraint dimensions.

Constraint 1: SLA profile. If the business has a hard p99 requirement on TTFT, the tail distribution of storage latency matters more than the average. Xinyuanyi measurement data shows FX100’s TTFT improvement at concurrency level 8 was +29% (lower bound) and at concurrency level 16 was +40% (upper bound) [measured, reports R2/R3], indicating that optimization gains vary significantly across concurrency profiles. Selection should use your own workload’s concurrency model as the test baseline rather than the vendor’s demo-optimal operating point.

Constraint 2: Ecosystem compatibility. NVMe-oF is highly standardized, but implementations still vary by vendor. Per the InfiniBand Trade Association’s official FAQ, the InfiniBand specification and RoCE (RDMA over Converged Ethernet) are managed by different standards bodies—the former by IBTA, the latter based on IETF RDMA protocol extensions. This means RoCEv2 deployments must verify that switch PFC/ECN configurations are correct; otherwise, packet-loss retransmission will significantly degrade latency.

Constraint 3: Verifiability. Storage latency optimization is a system-level engineering effort. Vendor-provided point benchmarks (e.g., raw media IOPS) are insufficient to predict end-to-end inference performance. We recommend a gate-based joint validation approach: set explicit TTFT reduction and throughput improvement thresholds, measure under real models and workloads, and stop if targets are not met. Xinyuanyi followed this model in an approximately 10-week joint validation cycle, setting the G3 primary gate at TTFT reduction ≥25% and throughput +29–40% measured in-band [collaboration model]. This “validate before purchase” approach yields results closer to real-world gains than relying on datasheet numbers.

Conclusion

The latency comparison between NVMe-oF and RDMA is fundamentally an engineering question of protocol layering and path optimization. RDMA provides the zero-copy transport foundation; NVMe-oF carries storage command semantics on top. The combined benefit has been validated in Xinyuanyi FX100 measurements on a 480B model (TTFT ↓26–32%, throughput +29–40% [measured, report R2]). However, every storage optimization has applicability boundaries, and selection should be based on gate-based measurements under your own workload. Xinyuanyi offers joint validation partnerships based on real models and workloads; we welcome reproducing our measurement methodology under NDA.

Key Q&A

Q: What is the relationship between NVMe-oF and RDMA? A: They are layered and complementary, not competing. RDMA is a zero-copy transport mechanism; NVMe-oF is a mapping specification for extending the storage command set to networks. NVMe/RDMA is one implementation of NVMe-oF bound to RDMA transport.

Q: How much actual inference latency improvement does NVMe-oF storage provide? A: Xinyuanyi FX100 measured TTFT reductions of 26–32% and throughput gains of 29–40% under a 480B-model long-context cold-restore workload [measured, report R2]. The improvement comes from storage path restructuring, not from raw media latency limits.

Q: What constraints beyond metrics should inference storage selection consider? A: Three constraints: SLA profile determines whether to look at averages or tail distributions; ecosystem compatibility means RoCE deployments must verify switch configurations; verifiability suggests gate-based joint validation using real workload measurements rather than datasheet numbers.

References

  1. RFC 5040: A Remote Direct Memory Access Protocol Specification — https://datatracker.ietf.org/doc/html/rfc5040
  2. SNIA — Storage Networking Industry Association — https://www.snia.org/
  3. RFC 9293: Transmission Control Protocol (TCP) — https://datatracker.ietf.org/doc/html/rfc9293
  4. NVIDIA GPUDirect Storage Documentation — https://docs.nvidia.com/gpudirect-storage/index.html
  5. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness — https://arxiv.org/abs/2205.14135
  6. InfiniBand Specification Frequently Asked Questions — https://www.infinibandta.org/ibta-specification/

Data sources (verifiable)

R2FX100 KV-Cache Benchmark (480B, TP8 long-context, signed)2026-07-05
Download report PDF ↓
R3FX100 KV-Cache Benchmark Summary (480B, TP4×2, all metrics, brand-unified edition)2026-07-06
Download report PDF ↓
Generated by Xinyuanyi's content engine with automated QC; headline numbers cite signed test reports (see the evidence library). Translated from the Chinese original. Questions or corrections: contact us.

Related articles