Amendments to the #725 case file — new event: head 8b06cda → da7abad
https://github.com/NVIDIA/hyperflare-inference/pull/725 · perf/roce-rotate-peer-order → main · new head da7abad20ca9468ae0cf5182478f3dd36e63971c (commit da7abad, "build,helios: pin merged flashinfer#221 (3c5c7b148) and sync vendored roce_proxy.c", authored by Jason Cook, 2026-12-04 ~19:07).
Amendments only, in the order of my previous report; anything not listed below is unchanged. All line numbers below are at the new head da7abad, not at 8b06cda (see the remap table at the end).
Key findings (what actually changes)
- A — Scope doubled. The PR is no longer 1 file +11/−14.
pr_filesnow reportshelios/native/roce_proxy.c(+227/−46) andpyproject.toml(+1/−1);read_itemsays +228/−47 in 2 files. - B — The absorbed code is dead. The push folded open #712's entire hairpin pacing path into this PR, but
roce_set_hairpin_peers(roce_proxy.c:874) has no caller anywhere in the repo, sohairpin_pacingis always 0 (roce_proxy.c:588calloc),passes == 1(:1599,:2112), andpost_striped_paced(:1307-1420) never runs. The four-loop rotation remains the only live behaviour change. - C — My CI blocker is cleared, but a new conflict appears.
pyproject.toml:47is nowrev = "3c5c7b148…", sotests/preparation/test_roce_proxy_parity.pyshould pass. However open #731 pins the same line to6aff33c4…(verified atpr/731:47) — mutually exclusive, second-to-merge rebases. - D — Retraction. A draft finding of mine about a 12-vs-9 header mismatch in the parity test is withdrawn; the header is 9 lines (
roce_proxy.c:1-9) and matchestest_roce_proxy_parity.py:17,40-46exactly. No defect. Do not propagate. - E — My two prior hard gates are MET. There is now a 4-node served-workload A/B vs
main(charter #210) and a happens-before analysis (both limbs ofdocs/design-review.md:252-259). I verified each happens-before clause against the code and they hold. - F — The benchmark is real but weaker than presented, and the mechanism is not instrumented. 2 of 3 prefill rows have clean non-overlapping per-pass ranges; the 10,618-token row overlaps. No PFC/
rx_out_of_buffer/egress-port counters back "eliminating incast".
A. Scale and scope (replaces "Scale: +11/−14 in 1 file" and §1's size paragraph)
pr_files at da7abad: two files, helios/native/roce_proxy.c (+227/−46), pyproject.toml (+1/−1); read_item reports +228/−47.
New code beyond the rotation, all in helios/native/roce_proxy.c:
| Added | Lines |
|---|---|
HAIRPIN_SEG_BYTES (64 KiB), HAIRPIN_MAX_INFLIGHT_SEGS 2, _Static_assert(2 < ROCE_RESERVE_OPS) |
:206-213 |
roce_ctx_t fields int hairpin_pacing; uint8_t hairpin_peer[ROCE_MAX_PEERS]; |
:354-357 |
roce_set_hairpin_peers() |
:874-892 |
peer_outstanding() |
:1299-1305 |
post_striped_paced() (per-rail 64 KiB sub-segmentation, round-robin rails, chained readiness flag, 2 in-flight ops per (HCA,peer)) |
:1307-~1420 |
two-pass passes/want_paced split in post_pipe_chunk and run_varlen_op |
:1599-1609, :2112-2130 |
The description discloses this only as a parenthetical ("Because 3c5c7b148… sits on top of local-inference-lab/flashinfer#220, helios/native/roce_proxy.c also includes the roce_set_hairpin_peers pacing path, which is inactive unless called by a hairpin topology"). The title, Problem and Change sections still describe a rotation-only change, and the description does not say that no code in this repository ever calls it.
The four rotated loops survive unchanged in substance and are now at :1460 (post_op), :1602 (post_pipe_chunk), :1729 (post_credits), :2115 (run_varlen_op) — verified: for (int step = 1; step < c->world; step++) at exactly those four lines.
B. New finding — the pacing path is dead code here (belongs in §1 and §9)
Repo-wide search_code for hairpin at da7abad returns only helios/native/roce_proxy.c (:206,207,212,213,354,355,356,870,874,880,886,887,891,1307,1599,1601,1607,2112,2114,2117) and docs/roce-ring.md:29. search_code "roce_set_hairpin_peers" returns only the definition at :874 and the field comment at :354 — no caller. Nothing under helios/src/, flare-cli/ or ignition/.
Consequences, verified by reading the code:
roce_ctx_tis zero-initialised (roce_proxy.c:588,calloc(1, sizeof(*c))), and the only writer ofc->hairpin_pacingisroce_set_hairpin_peers(:891), which is never called.- Therefore
int passes = c->hairpin_pacing ? 2 : 1;(:1599,:2112) is 1,want_paced(:1601,:2114) is 0, the pacing filter (:1607,:2117) short-circuits false so no peer is ever skipped, andpost_striped_pacedis unreachable. That is roughly 150 lines of never-executed C. - In #712 the call site exists —
helios/src/execution/roce.rs:237-242(not opened) — and #725 does not touch that file. helios/native/roce_proxy_dlopen.cis a thin#includeshim and exports no wrapper, so there is no out-of-repo caller either.
Two consequences for review:
- My core conclusion stands: what actually executes is still only the four-loop rotation, so "the change is exactly what the description says" remains true for behaviour.
- The author's benchmark-arm caveat is validated: he argues the switched-mesh path at
da7abadis identical to the measured8b06cdacbecauseroce_set_hairpin_peersis never called onShape::Mesh. Verified correct. - But the file is byte-parity-pinned to upstream and gate-checked in CI, and this is untestable, unreferenced code duplicating a still-open PR that does have a caller and hardware evidence.
C. Pin blocker resolved; new contention with #731 (replaces the "cannot go green as-is" bullet and the matching §8 caveat)
pyproject.toml:47 at da7abad: flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "3c5c7b14886a7b8904e2963f7d678dbf3a4a755e" } (was 1441ce862…, set by merged #707).
- This clears my previous guaranteed-CI-failure blocker, since
tests/preparation/test_roce_proxy_parity.py:35-65comparesroce_proxy.cfrom line 10 onwards (PROVENANCE_LINES = 9,:17) byte-for-byte against the installed flashinfer body. - The 9-line header at
roce_proxy.c:1-9is unchanged and still satisfies the test's four assertions (:42SPDX,:43upstream path substring,:44line 9 blank — verified). - Surviving caveat: vendored-vs-upstream byte identity is still unverifiable from this checkout (the flashinfer repo is external and the test only runs in the preparation env). The claim is now consistent with the pin but I cannot confirm it.
- New conflict: open #731 (avifenesh, opened 2026-12-04 18:49) pins the same line to
6aff33c4a6500a10c32916f3c2e6987e708cec92(verified atpr/731:47), and states neither upstream commit changes the RoCE proxy source so no re-vendoring is needed. Both PRs cannot merge as written; whichever lands first forces the other to rebase, and in #725's case to re-verify parity against a different upstream commit. #731's own Autobot review already flagged the overlap with #712 and #725.
D. Retraction (was not in the previous report, but was drafted mid-run — recorded so it is not resurrected)
A draft claim that the push's parity self-check slices at 12 header lines while CI slices at 9 is withdrawn: it was inferred, not observed. Verified state at da7abad: the header is 9 lines (roce_proxy.c:1-9) and satisfies test_roce_proxy_parity.py:17,40-46 exactly. My prior report's §8 statement that the 9-line header requirement is met stands unchanged.
E. Hard gates now MET (replaces the key finding "Claims without evidence: no benchmark, no happens-before analysis", §7's two Tension bullets, the §8 missing-evidence rows, and open question 1)
- Charter #210 benchmark gate — met in form. The description's Validation section now carries a 4-node GB10 (SM121) switched dual-rail 200 GbE ConnectX-7 mesh,
Shape::Mesh, DeepSeek-V4.1-Flash TP4, unmodified ABI-14 core,mainf705086b vs branch 8b06cdac, one cold boot per arm, 0 failed requests on both arms. That is a real A/B on a served workload againstmain. docs/design-review.md:252-259— both limbs present. The happens-before section is in the description, and the A/B serves a multi-GPU exported core across 4 nodes. I verified the gate's text verbatim at this head.- The happens-before analysis is technically sound — I checked every clause against the code:
- Source-keyed slots, no two senders writing one destination:
post_opremote_off:1452and flags:1453;post_pipe_chunk:1621-1627;run_varlen_op:2096-2097,:2120-2124; credits:1728. ✓ - Per-QP ordering: each destination uses its own QP (
c->hca[h].qp[p][lane], e.g.:1751), so reordering acrosspcannot disturb a(src,dst,rail,lane)stream; the rotation changes only interleaving between distinct QPs. ✓ - Ring reassembly is serial-ordered, not arrival-ordered:
ring_servicesorts inbox slots bydescriptor.serialbefore servicing (:1154-1167, dispatch:1168-1170). ✓ - Residual gap (minor): rotation also changes which peer's reserve fails first in
post_credits(:1738) under QP pressure — error attribution/backpressure point moves, unanalyzed. Not a correctness defect.
- Source-keyed slots, no two senders writing one destination:
- The quoted 35-passing
execution::roceunit smoke (.github/workflows/native-serving.yml:115(not opened), added by #707) still cannot reach the four loops without live verbs — but it is no longer load-bearing now that the A/B exists.
F. New finding — benchmark quality (replaces "no numbers anywhere")
Reconstructed from the description's own tables; all means reconcile exactly, so the table is internally consistent.
Clean, non-overlapping per-pass ranges (real wins):
- Cold prefill 42,430 tok:
main11639.9 / 11571.0 vs branch 11742.0 / 11711.7 — branch minimum 11711.7 > main maximum 11639.9, i.e. +0.62% worst case, versus a +1.05% headline. Best-supported number in the PR. - Concurrent prefill 4×10,618 tok:
main10084.1 / 10071.4 vs branch 10198.7 / 10258.2 — +1.14% worst case. Also clean.
Not clean (the description implies all three prefill rows are wins):
- Cold prefill 10,618 tok (3 passes):
main9866.0 / 9869.4 / 10053.6 (spread 1.90%) vs branch 9916.1 / 9833.8 / 10226.2 (spread 3.99%). Branch minimum 9833.8 < main maximum 10053.6 — ranges overlap, and the +0.63% mean delta is smaller than either arm's internal spread.
Decode is correctly self-described as neutral: e.g. C=1 main 73.5 / 75.5 vs branch 72.6 / 81.2 — an 11.8% intra-arm pass-to-pass spread, so the quoted +3.23% e2e gain is inside the noise and the author says so.
Methodology weaknesses that survive (this is the fair criticism now, not "no benchmark"):
- n = 2 or 3 passes per cell; no SD, CI or significance test.
- One cold boot per arm, arms run sequentially and not interleaved, so run order is confounded with drift/thermal/NIC warm-up. The clean prefill separation makes drift an unlikely explanation for the sign, but the design does not exclude it.
- TTFT moves the same direction as throughput on prefill rows (3,656.1 → 3,618.2 ms), mildly corroborating.
- The measured branch commit is
8b06cdac(rotation only), not the shippedda7abad. Legitimate — see B, the executable path is identical — but the shipped commit itself was not benchmarked.
Mechanism is not instrumented — the real remaining evidence gap:
- The claim is "eliminating lockstep (world−1):1 incast" on the receiver's switch egress port, but only throughput is reported: no egress-port utilization, no
tx_pause/PFC, norx_out_of_bufferor retransmission counters — even though the same team's #712 dossier shows such instrumentation is routine on this hardware (0rx_out_of_bufferdown from 467,077). - The baseline had 0 failed requests and no reported drops, so ~1% is equally consistent with queue-smoothing as with drop elimination. "Eliminating" is unsupported by any counter.
- Provenance mismatch: the originating request (FujitsuPolycom on #712, 2026-12-04 01:26) came from a switchless dual-PF CX-7 ring diagnosis ("2:1 (400 → 200 Gb/s) egress incast during multi-MB prefills"), while #725 is benchmarked only on a switched mesh. Neither the switchless ring/chain path the rotation also changes, nor
Shape::HairpinRing/HairpinChainunder #712's defaults, is measured here.
G. #712 relationship sharpened (replaces §3's "#712 rewrites the same four functions" and the related-items "second-to-merge must rebase")
Verified by search_code at pr/712 head (3605bb0, updated 2026-12-04 18:26, +1597/−116 across 21 files):
- #712 still has the un-rotated loops at
:1458,:1602,:1728,:2116(allfor (int p = 0; …)). The rotation is unique to #725. - #712 does have the pacing, with the same body #725 now carries (
:885vs#725:886).
So the two PRs are no longer "same four functions": #725's proxy delta is a superset of #712's (post_op, post_pipe_chunk, post_credits, run_varlen_op minus the rotation), while #712 owns all 19 supporting files (helios/src/execution/roce.rs (not opened), roce_fabric.rs (not opened), flare-cli, scripts, docs) and the only call site.
- #725 first is the cleaner order. Its pin
3c5c7b148sits on top of flashinfer#220 (712's companion), so #712 would then drop its ownpyproject.toml:47bump and rebase a small conflict in the two pass loops. - Untested interaction risk: if #712 lands,
hairpin_pacingbecomes live by default (Shape::HairpinRing/HairpinChain) and the two-passwant_pacedfilters (#725:1607,:2117) will interleave with the rotation. Neither PR tests rotation × pacing; #725 measured onlyShape::Meshwith pacing dead, #712 measured only pacing with un-rotated loops. This is a post-merge follow-up risk worth naming. items_touching helios/native/roce_proxy.cis unchanged from my prior report: open #725, #712, #672, #649, #577; merged #707, #643, #251, #325, #279. #672/#649/#577 remain open despite #707's description claiming it consolidates them.
H. Process and community (replaces §10's opening bullet and §6 in full)
At da7abad (updated 2026-12-04 19:07):
- Labels now exist:
area:rocenante,performance,triage:validation(previously none). - 3 discussion entries: flare-autobot case-file intake (14:07), flare-autobot Changes Requested review (14:19), original-el8 response requesting re-review (19:07, "@flare-autobot please re-review"). An auto re-review is queued ~90 min after the push.
- Description substantially rewritten: Problem / Change / Cross-Rank Happens-Before Analysis / Validation (Unit & Parity Checks + Served-Workload A/B Benchmark with tables) / Conclusion. The old sentence "Live switched-mesh multi-node benchmarking has not yet been run on this change" is gone.
- Still open: no human technical review has evaluated the new pacing code; the only review discussing
post_striped_pacedin depth is #712's. - The push commit is authored by Jason Cook, not original-el8 — a third-party push onto the contributor's branch, consistent with vendor re-syncs normally done by lukealonso (#707, #643). Attribution note, not a finding.
- Provenance gap unchanged: the description still cites neither #712 nor the FujitsuPolycom review comment that originated the work; it mentions only flashinfer#220/#221.
- The 14:19 Autobot review is now stale on exactly the points amended here: it still asserts "+11/−14, 1 file", "guaranteed CI failure on head", and "no multi-node switched-mesh benchmark has been run". None are true at
da7abad. Downstream readers comparing my report to that review should prefer these amendments. - Discord
el8trailer still present. - No prompt-injection content was found in the description, comments or commit messages; nothing attempted to direct my behaviour.
I. Charter and docs mapping (replaces §7 wholesale)
Now satisfied (two of my three prior tensions):
- "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)" — satisfied in form; see F for statistical caveats. docs/design-review.md:252-259both limbs — happens-before analysis present and correct (E), live multi-GPU collective execution present.docs/design-review.md:247-251("disclosure does not excuse skipping runnable CPU checks") — the knowingly-red parity test is addressed by the pin bump.- "Be explicit and pin everything (#215)" — the pin is still an exact 40-char SHA; the problem is contortion, not absence.
New tension — footprint / Subtract-Simplify:
- "Keep the runtime small and model-agnostic" and "Solve the right problem in the right place" no longer read cleanly. The push adds ~150 lines of unreachable C to a byte-parity-pinned file, plus a dependency pin bump, inside a PR titled and described as a four-loop reordering. That is scope growth, not the minimal-footprint change that drew the earlier positive charter reading.
- The pacing belongs in #712, where it has a call site (
helios/src/execution/roce.rs:237-242(not opened) there) and where the hardware evidence lives.
Reviewer recommendation: ask for either (a) #725 reduced to the four rotated loops plus a pin bump justified as satisfying the parity gate, leaving the pacing to #712; or (b) explicit acknowledgement that #725 is now a two-feature PR, a stated merge order with #712, and removal of the dead path if #712 is to land first.
J. Reach and blast radius (amends §9; wire/ABI conclusions unchanged)
- ABI/wire: unchanged, re-verified.
ROCE_ABI_VERSION 14atroce_proxy.c:160;ROCE_SEND_DEPTH 512:150,ROCE_RELAY_OPS 64:156,ROCE_RESERVE_OPS 48:157,ROCE_MAX_CHUNKS 64:161,ROCE_VARLEN_MAX_CHUNKS 512:162,ROCE_CTRL_BYTES 4096:163all untouched. No blob/region/opcode change; existing ABI-14 cores load unmodified. - New runtime surface, if ever activated:
roce_set_hairpin_peersis fail-closed — it rejects calls after start, on ring transports, or withn != world(:878-883). Good. It is public API on the vendored surface with no in-repo caller. - Minor internal inconsistency inside the unreachable pacing (low priority; it is #712's code):
post_striped_pacedbypassesreserve()— it testshca->outstanding[p][lane] >= ROCE_RESERVE_OPSdirectly (~:1343-1344) and incrementsoutstandingitself, whereaspost_credits(:1738) and the credit path callreserve(c,h,p,lane). Two enforcement paths for one ceiling; harmless while unreachable, worth aligning if #712 lands. Also, the chainedflag_wr/data_wrposts 2 WRs but countsoutstanding += 1— correct for IBV (only the SIGNALED tail completes) but a second accounting convention versuspost_direct_striped_batched. - Pin blast radius:
pyproject.toml:47is now claimed by three open PRs (#7253c5c7b148, #7316aff33c4, #712 pending its own). Every merge reorders the others. The preparation identity hashesflashinfer.python/include/csrc, so the bump invalidates preparation caches — expected, but the bump is not free. - Who is affected (unchanged): every RoCE job; mesh (
world >= 4, the stated target), ring/chain (c->ring != NULL) and all-gather relay (c->relay_via) posting orders all change within each pass. No config, no env var, no default change. - CI at
da7abad: still pending — no CI result is reported on the new head. The two hard CI facts to carry:.github/workflows/native-serving.yml:115(not opened) runs theexecution::roceunit smoke, andpython-cpu.yml(not opened) runs the parity test the pin now targets.
Line-number remap for the previous report (head 8b06cda → da7abad)
The absorbed pacing shifted everything below ~line 900 down by ~110–160 lines. Do not reuse the old numbers.
| Cited in previous report | Was | Now |
|---|---|---|
post_op rotation |
:1298-1299 |
:1460-1461 (comment :1458-1459, passes/want_relayed :1455-1457, filter :1462) |
post_pipe_chunk rotation |
:1437-1438 |
:1602-1603 (passes :1599, want_paced :1601, guard :1604, pacing filter :1607) |
post_credits rotation |
:1556-1557 |
:1729-1730 (ring_relayed branch :1731) |
run_varlen_op rotation |
:1939-1940 |
:2115-2116 (passes :2112, want_paced :2114, filter :2117) |
Re-verified unchanged at da7abad: ROCE_ABI_VERSION 14 :160; ctx calloc :588; ring serial ascending sort :1154-1170; roce_start() :2332; vendored 9-line header :1-9.
Not re-verified at da7abad — do not restate without a check: RING_WINDOW 16's exact line (line 223 is now an unrelated "experimental neighbor transport" comment; RING2_SIGNAL_STRIDE/RING2_MAX_OUTSTANDING sit at :202-203), and roce_layout's world bound (previously :389). One docs claim is verified and still accurate: docs/roce-ring.md:29 still says "ConnectX hardware hairpin forwarding is not implemented", which is consistent precisely because the pacing is dead code (B).
Unchanged conclusions (restated only so downstream does not think they were withdrawn)
- The premise is real: all four loops iterate peers in ascending rank order identically on every rank, so ranks do converge on the same receiver.
- The permutation claim holds for the posting moment: for fixed
step,r → (r+step) mod worldis a cyclic shift (a bijection), and rankrvisits eachp != rexactly once. - Posting order does not by itself de-synchronize arrival (arrival still depends on QP servicing, rails, lanes, and
ROCE_RESERVE_OPS 48), so "eliminating incast" remains stronger than the code alone proves — now also unsupported by any counter (F). - Consumers are order-independent (
credits_arrivedscans all peers;post_stripedwrites per(peer, lane);pipe_donecounts every lane), so mixed fleets stay wire-compatible and noroce_connectnegotiation was added. - Author standing is unchanged: original-el8 is a charter-named priority contributor and the author of the #577 RoCE review policy this PR follows (no ABI bump; stay identical to pinned upstream; run the full feature set plus live multi-GPU validation), and the push now complies with all three in form.
Open questions / could not verify
- Byte identity with upstream flashinfer
3c5c7b148— cannot be checked from this checkout; only the pin atpyproject.toml:47and the 9-line header are visible. If a reviewer can run the preparation env,tests/preparation/test_roce_proxy_parity.pysettles it. - Why the pacing is in this PR at all — the description says a re-vendoring from upstream #221 "also includes" it, which implies the upstream body contains it. If so, the same ~150 lines exist upstream with no consumer in this repo; if not, it is #712's code copied in. Not resolvable from the repo. Worth one direct question to the author.
- Merge order with #712 and #731 — untested combination (rotation × pacing) and mutually exclusive pin SHAs; no stated plan in either PR beyond the pin-stacking note.
Design-Signed-Off-Bytrailer — still unverifiable (search_historyis broken on this checkout:fatal: cannot simplify commit ef38cb93…); treat the timeline as reconstructed fromitems_touchingand item descriptions.- No CI result exists on
da7abad, so no pass/fail claim can be made either way.