You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spark-comm: cmd_ring words_arrive_in_order_exactly_once_in_both_directions flakes under CPU load (wrong word, then peer timeout) #251
rdma_pair::cmd_ring::tests::words_arrive_in_order_exactly_once_in_both_directions is flaky under load.
On plain main (8bfe8507a) it fails inside a full cargo test --workspace --release (single gb10 target, reiner). Run on its own 10× in a row, it passes 10/10.
panicked at crates/spark-comm/src/nccl_backend/rdma_pair/cmd_ring_tests.rs:194:25:
assertion `left == right` failed: rank 0 word 12288
left: 2394824204
right: 1831632351
panicked at .../cmd_ring_tests.rs:183:37:
RDMA pair command ring: the peer is not reading: timed out after 60.00003056s
The same symptom showed up earlier at word 16668, inside a SparkQwen image build. A wrong word followed by the peer stalling means the reader observed a slot before its payload was complete. That points to an ordering/visibility race in the in-process ring the test drives (a missing Release/Acquire pair between the payload write and the sequence/flag publish), which only shows up when the CPU is contended. It could also be an assumption in the test harness itself.
To reproduce: run the full workspace tests, or run the test under stress-ng --cpu $(nproc). Receipts: reiner ~/code/night1027/out/repro2-main/{all,cmdring-*}.log. Tracking: #220. (From #174.)
Activity