为大规模推理与训练工作负载部署RDMA
Deploying RDMA for Distributed Inference and Training At Scale
AI总结:
本文介绍了在字节跳动参数服务器式推理与训练系统中部署ByteExpress软件通信层的经验,该层结合多种技术优化RDMA,可显著降低延迟、减少CPU使用率,提升服务可用性。
摘要:
RDMA可降低分布式机器学习系统中的通信开销,但要在生产环境中实现这些好处,仅替换TCP是不够的。可变大小消息、并发连接、突发入向通信以及服务故障带来的挑战,仅靠硬件卸载无法解决。本文报告了我们在字节跳动基于参数服务器的推理与训练系统中部署ByteExpress(一种基于硬件RDMA的软件通信层)的经验。我们从部署中总结出三点经验:高效的RDMA需要应用层与传输层之间的缓冲区管理;可扩展的通信需要对连接、接收容量和未完成数据进行协调管理;服务可用性需要在传输层之上实现恢复。ByteExpress结合了支持RDMA的分配器、零拷贝传输、QP多路复用、接收信用流量控制、软件发送窗口以及RPC辅助恢复功能。在生产推理场景中,与内核TCP相比,ByteExpress将模型参数获取的平均延迟和P99延迟分别降低了35.7%和43.7%,总CPU使用率降低了10.69%;在训练场景中,与TCP相比,ByteExpress将模型参数推送的P99延迟最多降低了74.0%,且运行时未观察到PFC暂停现象。
英文摘要:
RDMA can reduce communication overhead in distributed machine learning systems, but realizing these benefits in production requires more than replacing TCP. Variable-size messages, concurrent connections, bursty incasts, and service failures introduce challenges that hardware offload alone cannot 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 present three lessons from the deployment: efficient RDMA requires buffer management across application and transport layers; scalable communication requires coordinated management of connections, receive capacity, and outstanding data; and service availability requires recovery above the transport layer. ByteExpress combines an RDMA-aware allocator, zero-copy transfers, QP multiplexing, receive-credit flow control, a software send window, and RPC-assisted recovery. In production inference, ByteExpress reduces mean and P99 model parameter fetch latency by 35.7% and 43.7%, respectively, and total CPU usage by 10.69% compared with kernel TCP. In training, ByteExpress reduces P99 model parameter push latency by up to 74.0% compared with TCP, with no PFC pauses observed at runtime.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。