Explore report · NVIDIA/hyperflare-inference #633

Raw Markdown for agents: https://autobot.eidonix.com/p/9941feb7-62ae-484a-a6f5-d02277ed6b3b.md

Case file: PR #633 — helios/roce: pin proxy polling thread to high-capacity CPUs and name thread

Open, ready for review, 2026-11-30 08:24, head 70c811bd, base main @ 0a8c20f, +71/−0 in 1 file. Zero comments, zero reviews, no labels, CI failed on head.

Key findings (what the description does not say)

  1. The entire diff is the identical hunk already carried by open PR #576 (fordbmorris, +230/−1 over 8 files). #576 lists helios/native/roce_proxy.c (modified, +71 -0) and describes it as "the exact pin_high_capacity_cpus() and "flare-roce" thread-naming hunk merged in local-inference-lab/flashinfer#156 (335459b2)". I compared the two files at pr/576 and pr/633: helios/native/roce_proxy.c:1505-1577 is byte-identical in both. #633 cites neither #576 nor FlashInfer #156, and neither PR states a merge order; if #633 lands first, #576's author must drop that file and rebase; if #576 lands first, #633 is empty.
  2. #633's author is the reviewer who twice blocked #576 on this exact C hunk. original-el8's 2026-11-28 CHANGES_REQUESTED review of #576, blocker 2: "helios/native/roce_proxy.c must remain identical to FlashInfer's pinned …/_roce_proxy.c (not opened) (lines 6-8), and this duplicates 66 lines of untested C capacity-selection logic … Either sync the change through FlashInfer PR #156 first, or apply flare_eos::prefer_high_capacity_cpus() from Rust around proxy thread creation without modifying the vendored C file." #633 is that reviewer landing the hunk themselves after the upstream merge — a maintainer-side resolution of their own blocker, undisclosed in the PR body.
  3. The vendored byte-identity invariant is edited with no provenance note, and NOTICE is now stale. helios/native/roce_proxy.c:6-8 ("Keep the source below identical so preparation and serving share the transport ABI"), roce_proxy_dlopen.c:7-9 ("keeping the vendored roce_proxy.c byte-for-byte identical to FlashInfer"), docs/roce-ring.md:360-364, and NOTICE:16-19 ("Its implementation is unchanged from that revision", pinned to f5f5341d…) all bear on this file; #633 touches none of them. No test or CI check enforces byte identity (see Project fit).
  4. No performance number in the PR isolates this change. The PR's own scope note says the TP4 flare run verification "integrates the combined SM121/RoCE kernel, recipe, and scheduler optimization set; isolated single-PR TP4 serving A/B was not run separately", and the limitations say "direct cpu_capacity sysfs pinning ablation were not run separately". The same 12-cell geomean table (126.61 vs 124.96 tok/s), the same Coding Peak numbers (109.0/110.7/118.0 tok/s) and the same 4× DGX Spark hardware paragraph appear verbatim in same-day scheduler PR #632 by the same author. No Cpus_allowed_list//proc/<pid>/task/*/status evidence is offered here, unlike #576 which presents exactly that (flare-roce with Cpus_allowed_list=5-9,15-19).
  5. CI failed on 70c811bd and no CI job exercises this code anyway: the Linux leg of .github/workflows/native-serving.yml (not opened) runs cargo test --features runtime-core,server (:63) without roce, and the rdma job only cargo checks (:101-113); nobody runs aarch64 or a multi-tier-capacity host. The author's local compile and test counts are the only functional evidence.
  6. Implementation facts a reviewer will want: the sysfs read loop fails closed — the first unreadable/unparseable/zero cpu_capacity returns from the whole function (roce_proxy.c:1527-1536), so partially visible sysfs (containers, cpusets) is a complete no-op rather than a partial pin; the affinity result is discarded silently with no log, status, or operator knob (:1566-1568); the thread inherits its mask via pthread_create in roce_start (:1674), so operator cpusets still win.

The change

One file, +71/−0, helios/native/roce_proxy.c (diff reviewed directly). Adds static void pin_high_capacity_cpus(void) at :1505-1569 inside #ifdef __linux__, inserted between run_varlen_op (ends :1503) and proxy_main, and two statements at the top of proxy_main (:1572-1577): (void)pthread_setname_np(pthread_self(), "flare-roce") and pin_high_capacity_cpus().

Verified behaviour:

The why

Stated problem: on asymmetric Linux hosts (ARM big.LITTLE / Grace), proxy_main busy-polls the doorbell and the scheduler may place or migrate it onto low-capacity cores, adding latency/jitter to doorbell polling, completion draining, and ring relay forwarding; naming the thread flare-roce makes it visible in profilers.

The premise is corroborated by the code: proxy_main spin-loads ctrl[CTRL_SEQ] (:1586-1657) and only naps 20 µs after ROCE_IDLE_SPINS = 20,000,000 idle polls (:172, :1605-1607).

The concrete measurements behind it live in #576, not in #633: GB10 has 10 Cortex-A725 E-cores (cpu_capacity 718–731) and 10 Cortex-X925 P-cores (997–1024); 48/48 critical threads on X925 across 6 launches vs 4/4 unpinned launches landing on A725; RoceOneshotLaunch C1 width-1 2.77 → 1.91 ms (−31.0%); p90 inter-graph host wake gap 1,880 → 30.9 µs.

No issue tracks this: search_items for affinity/E-core/jitter phrasing returns only #576/#577; #633 declares no linked issue and no "Fixes" reference. The underlying multi-host RoCE transport is recent (helios/native history: proxy landed 2026-10-13, ring relay 2026-10-16, ABI 7/11/14 syncs 2026-10-13, 11-10, 11-13), so the gap is weeks old, not long-standing.

Recent activity

People

Community

Zero engagement: pr_comments returns no comments; the item page shows Discussion (0), no reviews, no labels (#576/#577 carry three labels each), and no Autobot/case-file intake comment, which #576, #577 and #632 all received within ~20 minutes of opening. The PR is hours old at snapshot. No reactions, no requests for changes, no acknowledgements.

Project fit

In tension:

Aligned:

Claims and evidence

Backed by code (verified here): the ≥90%/midpoint/2 ≤ selected < count rules (:1543-1568); ROCE_SEND_DEPTH / 6 preserved (:784), ABI 14 (:134); no wire/shared-memory change (+71/−0, C only inside proxy_main and the new function); x86_64 Linux is a guaranteed no-op because cpu_capacity sysfs is absent (returns at :1528), as is non-Linux (#ifdef __linux__) and homogeneous masks (:1543).

Claimed, not verified: the strict-compile runs and all test counts (cc -std=gnu11 -Wall -Wextra -Werror 0 warnings; -- execution::roce 30 passed; -- roce 42 passed; runtime-core,server 1,738 passed / 6 failed / 46 ignored; cargo check on flare-cli) — no toolchain available; I only confirmed the needed headers/defines are present (:113-124 includes sched.h (not opened), pthread.h (not opened), stdint.h (not opened), _GNU_SOURCE). Note even the cited tests cannot execute pin_high_capacity_cpus: they need a live RoCE proxy thread, and on x86_64 CI sysfs is absent.

Claimed without isolating evidence: every item in "Claimed benefit and measured results" (see Key finding 4) — the two performance claims (thread stays off low-capacity cores; no change on homogeneous hosts) are asserted by inspection, not observed. The 6 template-fixture failures the author calls pre-existing also appear in #576's and #577's evidence, but since CI failed on head, the actual failing job should be identified rather than assumed.

Reach

Process

Ready for review (not draft), branch perf/roce-proxy-high-capacity-cpus, base main @ 0a8c20f, head 70c811bd, opened and last updated 2026-11-30 08:24 — the same minute as sibling #632. CI: failed. Review: none. Labels: none. No stacked-PR markers, no "depends on" note (unlike #577, which says to merge flashinfer#157 first), and #633 does not mention #576 at all. The unresolved question for whoever decides: which of #576/#633 owns this hunk, and does #633 need a NOTICE update and an upstream reference to satisfy the vendoring contract.

Open questions / could not find