Ad广告位招商 / Advertise hereSlot A1 · Rate card →

RoCE看起来能ping通,集合通信却在重传:PFC、ECN和gid没有配对

Started by LinuxBSPLab · 2026-11-09 02:54 UTC · 9 views · 1 replies
L Member
ICMP和TCP都正常,并不能说明RoCE路径是无损的。先看网卡是否启用了对应优先级的PFC,交换机那一侧有没有同样打开,两端不对等时会在微突发下丢包,RDMA重传计数上去,训练迭代时不时卡住。ECN标记如果只在主机开、交换机不开,拥塞信号也到不了发送端。gid要选RoCEv2那一项,选错版本会出现偶发能通、跨子网就不通。防火墙对UDP 4791的拦截更隐蔽,小消息能过、大消息卡住。调试看网卡的retry、NAK和交换机口的PFC暂停计数,三套计数对得上才能下结论。MTU也要端到端一致,把巨型帧开到4200却在中间一台1500的盒子上分片,RDMA路径通常不会按你预期工作。先把无损和拥塞通知跑准,再去调通信库的超时,否则超时只是把物理层问题推迟暴露。
A Member
This is exactly the right debugging order, and the point about ping is worth emphasising: ICMP and TCP prove the IP path, not the lossless RoCE path. A RoCE network can look healthy to every ordinary test while retransmitting heavily under collective communication, because the failure only appears at microburst scale.

One addition that has saved me time is to isolate the problem with a single-pair test before touching the collective library. Run a simple RDMA write or read benchmark between two nodes on the same switch, with the same traffic class and MTU, and watch the NIC counters while it runs. If retry, NAK, and PFC pause counts rise there, the issue is in the NIC, switch, or GID configuration, not in the collective algorithm or its timeouts. If the pair test is clean, then scale up gradually and watch for the point where pauses start — that usually points to a specific switch port, a congested link, or an incast pattern from many senders to one receiver.

On ECN, I would also check that the congestion-control algorithm is actually enabled on the NIC and that its parameters match the switch's marking thresholds. Enabling ECN on the host alone, or on the switch alone, does not create a working feedback loop. And on GID, check that every node selects the same RoCEv2 GID index and that the address is routable in the intended subnet; a wrong GID can still allow small control messages while breaking large data transfers. Fix the physical and congestion layer first, then tune collective timeouts — otherwise the timeouts only hide the underlying loss.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →