Hardware test report — PR #725 helios: rotate RoCE proxy peer send order by rank
Head under test: da7abad. Changed files: helios/native/roce_proxy.c (+227/−46) and pyproject.toml (+1/−1, pin 1441ce86 → 3c5c7b148, pyproject.toml:47). All work was done on cn7 (aarch64, NVIDIA GB10, 4× ConnectX-7 RoCE ports, single node). Zero GPU-hours consumed.
Key findings
- Phase 0 (the runnable half of the plan) is PASS. Vendored-proxy parity, native RoCE conformance tests (35/35), the aarch64 default-RoCE compile parity gate, and a real release build of
flareall exit 0 against head, and parity is byte-exact against upstream3c5c7b148. - Parity's first failure was an environment artifact, not a PR defect. The prefetched venv carried flashinfer
598c8547(76 commits behind the pin). Acmpof the vendored body against upstream3c5c7b148is identical (exit 0), and parity passes (2 passed) with the pinned tree onPYTHONPATH. Do not report a red parity run here as a proxy bug. - Phase 1 (live multi-verb exercise of the four rotated loops) is BLOCKED, not skipped. The sandbox has the real hardware in sysfs but no
/dev/infiniband,mknod→ EPERM,CapEff 0xeb(nocap_mknod/cap_net_admin/cap_sys_admin):ibv_devicesreturns an empty table,ibv_devinfosays "No IB devices found", andrdma link add rxe0 type rxe→ "Operation not permitted". Neither real CX-7 verbs nor Soft-RoCE can be opened from inside this container. The promised live-verbs exercise and the phase-2 traffic-spread counters were not run and no substitute result is offered as hardware evidence. - The rotation cannot be observed at
world=2. All four loop headers usep = (c->rank + step) % c->worldoverstep = 1..world-1(roce_proxy.c:1461,:1603,:1730,:2116); atworld=2the rotated order equals the pre-PRp != rankorder for every rank. Any 2-rank run — one box or two — is evidence about nothing. Onlyworld ≥ 3can exhibit it, and the claimed benefit targetsworld ≥ 4. - CPU-only enumeration shows the mechanism is real and safe. For
world = 3..6the rotated order is a permutation of the old one (every peer posted exactly once, so a mis-rotation cannot skip a peer and stall a source-keyed flag wait); ranks0andworld-1keep the old order, so atworld=3only rank 1 changes. Peak posting-step fan-in on a single receiver drops from 3→1 (world=4), 4→1 (world=5), 7→1 (world=8). This is arithmetic on posting order — not a hardware measurement. - The PR's +1.05% / +1.50% claim remains unverified by this pass. The only configuration that can test it (4-node GB10, SM121, switched dual-rail 200 GbE CX-7,
world ≥ 4) was not available. flare doctorreports WARN, not the predicted "not applicable". The CX-7 adapters are present; the warning is a netns artifact (onlyeth0/loexist locally, so no local IPv4+prefix can be verified at RoCEv2 GID index 3). The plan's expectation of "adapter absent" was wrong for this box.
Hardware and environment tested
- cn7 (aarch64): 2× dual-port ConnectX-7 →
/sys/class/infiniband/{roceP2p1s0f0, roceP2p1s0f1, rocep1s0f0, rocep1s0f1}, each port 1state=4 ACTIVE,phys_state=5 LinkUp,rate=200 Gb/sec (2X NDR),link_layer=Ethernet,fw_ver 28.50.1002— real CA hardware, notrxe. 1× NVIDIA GB10 (driver 580.178.04, CUDA 13.0). 20 CPUs, 121 GiB, ephemeral container, 16 GiB/work. /work/sourceis a source snapshot, not a git checkout (git log→ "fatal: not a git repository"), so PR hunks were verified by line content plus an upstream clone rather than a local diff.- Toolchain:
uv,/opt/flare-venv(prefetched,UV_PROJECT_ENVIRONMENT), cargo at/opt/cargo(CARGO_NET_OFFLINE=true, crates from a local dir source), gcc,nvidia-smi. - System packages I installed (all apt exit 0):
libibverbs-dev,ibverbs-utils,rdma-core,iproute2,pciutils,net-tools,cmake,nasm,pkg-config,libssl-dev,libclang-dev,clang,zstd,python3-dev. - Cargo prerequisite fix:
CARGO_NET_OFFLINE=false cargo fetch --locked --manifest-path helios/Cargo.toml(not opened) once (thedeepseek-recipegit dep was not in the local db); offline--lockedbuilds work afterwards.
Phase 0 — CPU gates: results
| Step | Command | Result |
|---|---|---|
| 0.1 Vendored-proxy parity | python -m pytest tests/preparation/test_roce_proxy_parity.py (not opened) -q |
PASS with the pinned tree (2 passed in 1.65s, exit 0). Fails (1 failed, 1 passed) against the prefetched venv — see below. Note the module has two tests, not three as the plan stated; "3" was the parametrised create_roce_runtime case count. |
0.2 Full prep suite (CI python-cpu.yml:33 (not opened)) |
CUDA_VISIBLE_DEVICES="" python -m pytest tests/ -q |
PASS modulo 4 unrelated failures: 4 failed, 2612 passed, 481 skipped in 334.20s in a venv synced to the pin. |
| 0.3 Native conformance | cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features roce --lib execution::roce |
PASS: 35 passed; 0 failed; 0 ignored; 1307 filtered out, 1m01s. Regression check only — opens no RDMA device and cannot reach the four loops. |
| 0.4 Compile parity (aarch64 default-RoCE path) | cargo check --locked --manifest-path flare-cli/Cargo.toml (not opened) --tests --features roce,rdma |
PASS: Finished dev profile in 18.60s, exit 0. Plus cargo build --release --locked → exit 0, 1m26s, 30,905,656-byte flare binary. |
| 0.5 Fabric inventory | flare doctor --plain; ibv_devices; ibv_devinfo |
Doctor exit 0, status WARN (see key finding 7). ibv_devices empty; ibv_devinfo "No IB devices found". |
Early failures in 0.4 were missing system packages, never the code: turbojpeg-sys needed cmake, ibverbs-sys (v0.3.2+55.0, vendors rdma-core and builds with cmake) needed libclang for bindgen. After installing them the check is clean.
doctor --plain detail: interconnect "Single GPU", 1 GPU selected (GB10, 000f:01:00.0), 1 PCIe bridge on P2P paths; N/A PCIe TP>1 preflight — requires at least two selected GPUs; WARN ConnectX-7 fabric — Active ConnectX-7 links (roceP2p1s0f0, roceP2p1s0f1, rocep1s0f0, rocep1s0f1): discovery could not verify a local IPv4 address and prefix on a ConnectX-7 device at RoCEv2 GID index 3. Summary line: 1 warning, 1 not applicable. The CX-7 netdevs (enP2p1s0f0np0 et al.) live in the host network namespace while the container sees only eth0/lo, which is exactly why the IPv4 verification fails.
GID table (rocep1s0f0 port 1): idx0/idx1 = link-local fe80::4ebb:47ff:feec:a093 (IB/RoCE v1 and RoCE v2), idx2/idx3 = IPv4-mapped 172.16.3.7 (::ffff:ac10:0307), idx4+ = zero. So the RoCEv2 IPv4 GID index that roce_fabric.rs (not opened) discovery requires is present (roce_fabric.rs:402-427 (not opened)); discovery would have succeeded had the verbs layer been reachable.
0.1 root cause, precisely
The prefetched /opt/flare-venv holds flashinfer_python-0.7.3 built from 598c8547be335bcd833254177ac18ccb2bf4dabc (per direct_url.json (not opened)), not the pyproject.toml:47 pin 3c5c7b14886a7b8904e2963f7d678dbf3a4a755e; 598c8547 is 76 commits behind. Decisive check: cloning local-inference-lab/flashinfer at the pin and running cmp flashinfer/experimental/b12x/comm/roce/_roce_proxy.c (not opened) <(tail -n +10 helios/native/roce_proxy.c) → identical, exit 0. With PYTHONPATH pointed at the pinned tree, parity is 2 passed. The repository is correct; the prefetch was stale. This matters for the merge order (see open questions).
0.2 full-suite detail
Two runs. (a) Prefetched venv: 9 errors during collection, 2 skipped — every one is import-name drift in the old flashinfer build (hash_op, CudaRTLibrary, custom_plan, declaration_key, coalesce_requests) plus missing flare_heliopause; all those names do exist in the 3c5c7b148 tree, so they are stale-pin symptoms again. (b) After a real uv sync --extra prepare --extra test into a scratch venv (UV_PROJECT_ENVIRONMENT=/opt/testsync-venv, sync exit 0, resolved flashinfer-python to the pinned rev, built flare-heliopause from ./heliopause): first run 106 failed, 2510 passed, 481 skipped; after installing zstd (80 test_core_protection failures were FileNotFoundError: 'zstd') and python3-dev (torch-inductor C++ compile needed Python.h (not opened)): 4 failed, 2612 passed, 481 skipped. The 102 that turned green were purely environmental.
The 4 residual failures are unrelated to this PR (it touches one C file and one pin line) and are candidates for follow-up issues:
tests/preparation/test_packaging.py (not opened)::test_server_cli_help_does_not_prepare_model— asserts"\n debug-serve "inpython -m ignition --help, but argparse wraps the command onto its own line (" debug-serve$", help text next line); brittle to wrapping, also fails atCOLUMNS=200.tests/preparation/test_runtime_dynamo.py (not opened)::test_guarded_type_death_invalidates_real_dynamo_cache_entry— weakref to theOwnertype still alive where the test assertsNone(torch 2.14.1 in this env).tests/preparation/test_export_transfer.py (not opened)::test_large_export_frames_progress_with_scarce_descriptors[False]and[True]— the isolated child raisesRuntimeError('Operation not permitted (os error 1)')afterRLIMIT_NOFILEis cut to 128; capability-sensitive in this container.
Phase 1 — live multi-verb exercise: BLOCKED
This was attempted on real hardware first, then via Soft-RoCE, before any substitution:
- Real CX-7 route: 4 local ranks pinned one-per-device over the 4 ACTIVE ports. Impossible —
/dev/infiniband/does not exist in the container andmknodreturns "Operation not permitted" (CapEff 0xeb: nocap_mknod,cap_net_admin,cap_sys_admin,cap_sys_module). Userspaceibv_get_device_listreturns 0, verified independently viactypesonlibibverbs.so.1. - Soft-RoCE route:
rdma link add rxe0 type rxe netdev eth0→error: Operation not permitted. - Neither is fixable from inside: the sandbox cannot be given device passthrough, extra capabilities, or a different netns/PCI configuration.
Therefore the plan's strongest attainable on-hardware check — all four rotated loops executing under real IB verbs at world=4, with --mesh and --ring-open and --skew-rank, using upstream tests/experimental/b12x/comm/validate_roce_ring_native.py (not opened) (documented at docs/roce-ring.md:328-348 (not opened)) — was not run. The specific risks it existed to probe remain unprobed on hardware:
- rotated-post-missed → hang on the receiver's source-keyed flag wait (
pipe_chunk_arrived:1643,credits_arrived), not an error; - relay reordering vs the ring mailbox serial assumption (
ring_service_slotvalidatesserial >= seen, slot(serial-1) % RING_WINDOW, hop distance, flag bounds, and errorsinvalid ring mailbox from origin ...at:1059-1060area) — this is why the--ring-openchain run is mandatory and it was not performed; - data mismatch confined to relayed transfers, if the
relay_via/ ring-relayed filters (:1462-1464,:1604-1606) were disturbed.
Phase 2 (per-device traffic-spread counters via sar -n DEV / /sys/class/net/*/statistics) was not run for the same reason: no transport opened, so no traffic to sample. No direction-of-claim evidence exists from this pass.
Extra CPU-only verification (what was achievable instead)
(A) Posting-order enumeration from the four loop headers (Python over world = 2..8):
world=2: rotated order equals pre-PR order for every rank (rank0[1], rank1[0]) — the rotation is a no-op, confirming the plan's hard constraint.world = 3..6:sorted(rotated) == sorted(old)for every rank and world, i.e. the rotation is a permutation; no peer can be dropped, so it cannot cause a flag-wait stall by omission.- Orders differ from pre-PR for ranks
1..world-2and are identical to pre-PR for rank0and rankworld-1at every world (atworld=3, only rank 1 changes). - Peak fan-in onto a single receiver at one posting step:
world=43→1,world=54→1,world=87→1 (4/5/8 distinct receivers per step after rotation). The described mechanism is real — as arithmetic on posting order, explicitly not a measurement.
(B) Diff composition, independently verified. git diff --stat 1441ce86 3c5c7b148 -- flashinfer/experimental/b12x/comm/roce/ tests/experimental/b12x/comm/ touches only _roce_proxy.c (not opened) | 273 ++++---- = +227/−46, byte-identical to the PR's diffstat for helios/native/roce_proxy.c. So the ~150 non-loop lines are purely upstream re-vendor, no hand edits. Upstream 3c5c7b148 subject: "perf(b12x/comm/roce): rotate peer send order by rank to avoid synchronized incast (#221)".
(C) The changed file is genuinely compiled into the shipped arm64 artifact. helios/build.rs:81-91 (not opened) (cfg(feature="roce")) builds native/roce_proxy_dlopen.c (not opened) with cc/gnu11; roce_proxy_dlopen.c:236 (not opened) does #include "roce_proxy.c"; artifacts helios/target/release/build/flare-helios-*/out/{...-roce_proxy_dlopen.o, libflare_roce_proxy.a} exist and nm shows post_striped, post_striped_paced, post_direct_striped_batched, post_pipe_chunk. On aarch64 RoCE is on by default (flare-cli/Cargo.toml:43-44 (not opened)), which is why this gate is meaningful here; on x86_64 it is not (flare-cli/Cargo.toml:27 (not opened)) and needs --features roce.
(D) Hairpin-pacing deadness re-verified at head. grep -c roce_set_hairpin_peers helios/src/execution/roce.rs (not opened) → 0; its only writer c->hairpin_pacing is inside roce_set_hairpin_peers (roce_proxy.c:874, write at :891), referenced by no .rs/.c/.h/.py in the repo. So passes == 1 and the want_paced filters short-circuit; the author's "mesh path identical to the measured 8b06cdac" claim holds for Shape::Mesh, and the ~150 re-vendored lines cannot change the measured behaviour in this repo. The rotation × pacing combination remains untested by anyone (belongs to #712).
Thermal / safety monitoring (requirement 3)
nvidia-smi sampled throughout: 39 °C / 4 W idle at start; 41 °C, 4.80 W, 0 % util, 208 MHz SM clock after the Rust builds and the 5.5-minute pytest run. No GPU work was ever submitted — the proxy opens no CUDA context, so all gates are CPU-only — and no thermal risk was taken. (Host-wide load average ~2880 was other tenants; my jobs used at most 10-way cargo parallelism.)
Pass / fail assessment
| Gate | Verdict |
|---|---|
| 0.1 vendored-proxy parity vs pin | PASS (byte-identical to 3c5c7b148; parity 2 passed) |
| 0.2 full prep CPU suite | PASS modulo 4 unrelated, environment/UX failures (none RoCE-related) |
0.3 native RoCE conformance (execution::roce) |
PASS 35/35 — regression only, no device opened |
| 0.4 compile parity + arm64 release build | PASS |
| 0.5 fabric inventory | RECORDED — WARN (netns artifact), GID index 3 is IPv4 as expected |
| 1 live multi-verb exercise of the 4 rotated loops | NOT RUN / BLOCKED (no /dev/infiniband, no CAP_NET_ADMIN) |
| 2 traffic-spread counters | NOT RUN (no transport) |
| 3 served A/B of +1.05% / +1.50% | DEFERRED (needs 4-node GB10 CX-7, world ≥ 4) |
Overall: PASS on every gate runnable in this environment; INCONCLUSIVE on the PR's performance claim; the merge gate should not be treated as satisfied by this pass. Phases 0 + the enumeration establish compile/parity/conformance and that the rotation is a safe permutation — correctness, not speedup. Nothing here refutes the PR; nothing here confirms the win either.
What the next hardware run must be
The served A/B requires a multi-host core with world ≥ 4, four same-architecture hosts and a switched CX-7 fabric — exactly the PR's own bench (4-node GB10 SM121, dual-rail 200 GbE CX-7, DeepSeek-V4.1-Flash TP4). Four upgrades are needed for that run to support a 1 % claim:
- n ≥ 5 interleaved passes per arm, not 2–3 sequential ones. The existing 10,618-token row has overlapping per-pass ranges (
main9866.0/9869.4/10053.6 vs branch 9916.1/9833.8/10226.2), so that row is noise; decodeC=4/C=16are negative. - Per-pass ranges and SD, not just means; keep the raw JSONL.
- Incast counters at last — "incast" is in the claim but no NIC/switch counter backs it: per receiver port, PFC pause frames/priority,
rx_discards,rx_out_of_buffer, and switch egress queue drops. - Measure the exact head (
da7abad) or state the equivalence explicitly (the equivalence is verified above forShape::Meshonly).
Additionally, before any of that: a --ring-open (chain/relay) pass at world=4 with --skew-rank, which the PR's mesh-only evidence never touched, and which is the single subtlest risk of reordering relay posts.
Open questions and what could not be found/run
- No live-verbs evidence exists. Whether all four rotated loops complete correctly under real verbs, and whether relay reordering trips the ring-mailbox serial validation, is unproven on hardware — this container cannot carry out the test. This is the biggest gap in this report.
- No traffic-spread measurement. The claim's direction is unverified empirically; only the posting-order arithmetic supports it.
- x86_64 RoCE is explicitly unqualified (
docs/multi-host.md:54-55(not opened): "Not qualified: x86_64 RoCE serving on RDMA hardware; its coverage is functional, over Soft-RoCE"; alsodocs/roce-ring.md:350-354(not opened)). cn5 results would be functional-only and cannot be cited as a qualification step; the qualified configuration remains TP4 on four cabled Sparks. (cn5 was not used at all in this pass — cn7 had the real fabric.) post_creditsrotation (:1730) is control-plane: 4 inline bytes per direct peer on rail 0 lane 0 (12 bytes atworld=4), andcredits_arrivedis order-independent, so it cannot contribute to the measured prefill gain. The PR is honest that it is rotated "for uniformity", but it is one of the four functions #712 rewrites — dropping it narrows the diff and removes one guaranteed merge conflict.- Pin contention. Open #731 re-pins the same
pyproject.toml:47line (to6aff33c4); #712 edits both the same proxy file and the same pin line. Merge #725 first, then #712 rebases with its proxy/pin hunks dropped, then #731 re-pins. If any lands second without rebasing, the parity gate fails and — as this pass demonstrated — the failure will look like a proxy bug rather than a pin collision. Check the pin before debugging the C. - Wording to pin hardware evidence to. "Eliminating synchronized
(world-1):1incast" overstates it: there is no inter-rank step barrier, so ranks skewed by one or more steps can still target the same receiver. The testable claim is "breaks lockstep(world-1):1posting" — a reduction in collision probability, which is exactly what the deferred counters would have to show. - Plan expectations that did not hold on this box: the module has 2 parity tests (not 3), and
flare doctorreports WARN on the CX-7 fabric rather than "not applicable (adapter absent)". - A posting-order probe using a stub
libibverbscompiled againsthelios/native/roce_proxy.cverbatim was drafted and abandoned; it is unnecessary given the enumeration in (A) and could not prove anything about hardware. - No
uv.lockexists in the repo, sopyproject.toml:47is the resolution source and the pin bump is exactly what the parity test validates.