arXiv:2610.12815cs.LGOct 2026

Manuscript Offprint

arXiv:2610.12815

Deploying RDMA for Large-Scale Inference and Training Workloads

Yibo Huang, Yi Cui, Yukai Huang, Huaping Zhou, Jiancong Tong, Zhaoyu Wu, Gen Miao, Haoran Wei, Boyan Ding, Zhuo Jiang, Jianxi Ye, Yibo Zhu, Chuanxiong Guo, Yang Xu, Jie Wu

Abstract

RDMA can reduce communication overhead in distributed machine learning systems, but realizing these benefits in production requires more than replacing TCP. Variable-size messages, many concurrent connections, bursty incasts, and service failures place demands on software that hardware offload alone does not address. This paper reports our experience deploying ByteExpress, a software communication layer over hardware RDMA, in ByteDance's parameter-server-based inference and training systems. We describe three lessons from the deployment: efficient RDMA requires buffer management that spans the application and transport; scalable communication requires coordinated management of connections, receive capacity, and outstanding data; and service availability requires recovery above the transport layer. Our design combines an RDMA-aware allocator, zero-copy message transfers, QP multiplexing, receive-credit flow control, a software send window, and RPC-assisted recovery. In a production inference workload, the system reduces mean and 99th-percentile model parameter fetch latency by 35.7% and 43.7%, respectively, and total CPU usage by 10.69% relative to the widely deployed TCP stack. In the training workload, ByteExpress reduces P99 model parameter push latency by up to 74.0% relative to TCP, with no PFC pauses observed during the reported interval.

1 Introduction

Distributed inference and training underpin recommendation, search, and advertising services at ByteDance, including Toutiao and TikTok. In the parameter-server architecture used by these services, workers fetch model parameters from multiple servers; trainers also push updates back to those servers. These exchanges place communication on the critical path of both user-facing inference requests and iterative training. By January 2022, ByteDance's inference and training systems spanned hundreds of clusters and tens of thousands of computing nodes.

Faster computation increases the pressure on this communication path. GPU-based workers can generate substantial network demand [4, 21, 38], while processing data through the kernel network stack consumes CPU cycles and introduces copying and scheduling overhead. RDMA offers hardware transport offload and direct access to registered memory. ByteDance had already deployed RDMA over Converged Ethernet (RoCE) in its data centers [21, 43]. The remaining challenge was to integrate that infrastructure into inference and training services without sacrificing scalability or availability.

This paper reports that integration experience. We present ByteExpress (BE), a software communication layer built on hardware RDMA NICs (RNICs). Applications continue to use Archon, our existing RPC framework. Archon passes messages to BE through a socket-like interface, and BE issues verbs to the RNIC using Reliable Connection (RC) transport. The RNIC provides transport offload; BE manages buffers, schedules transfers, and bounds outstanding work; Archon handles request-level recovery. This division of responsibility is central to the design.

The workload makes the integration challenging in three ways. First, message sizes and buffer lifetimes vary with the model and request, making fixed receive buffers awkward to expose directly to applications. Second, fan-out requests and fan-in responses create many logical connections and bursts of concurrent transfers. Third, the completion of an inference request or training iteration can depend on its slowest subrequest. Hardware transport reliability alone cannot recover from every failed node, stalled connection, or unavailable service replica.

Our experience yields three main lessons.

• Zero-copy communication is an interface and memory-management problem. We build bemalloc on the existing rpmalloc allocator to make dynamically allocated application buffers RDMA-capable. The resulting ownership model lets the communication layer hand received buffers to application threads without copying. Batched work requests and completion-based receive notification then reduce engine overhead ( §5§5).

• Scaling requires controlling distinct resources at distinct layers. QP multiplexing reduces connection-state pressure, and thread domains avoid contention in shared driver structures. Receive credits protect posted receive capacity, whereas a separate per-engine send window bounds outstanding bytes during incasts. These mechanisms complement RNIC congestion control and fabric flow control; they address different bottlenecks ( §6§6).

• Reliable transport is only one part of service availability. We retain RPC-level timeouts, retries, replica selection, and TCP fallback, and combine them with connection monitoring and replicated deployment. This allows recovery decisions to use service context that is unavailable to the RNIC ( §7§7).

Figure

Parameter Servers

Figure 1: Parameter-server architecture: rankers fetch sharded model parameters for inference; trainers also push parameter updates.

The contribution is the cross-layer co-design across these mechanisms and the operational lessons from deploying them. At the time of this study, the RDMA-based ML systems had supported production recommendation services for over two years. For a production recommendation inference workload, RDMA reduced average PS fetch latency by 35.7%, P99 latency by 43.7%, and total CPU usage by 10.69% relative to the widely deployed TCP. In the training workload, RDMA with the software send window reduced P99 push latency by 74.0% relative to TCP and eliminated observed PFC pauses during the reported measurement interval ( §8\S8 ).

References (40)