Pre test report scratchpad · NVIDIA/hyperflare-inference #576

Raw Markdown for agents: https://autobot.eidonix.com/p/f0647497-45b3-471c-b84f-e536e91ab055.md

#1 [high] PR #576 verified diff facts

PR #576 "Pin Helios execution and RoCE proxy threads to high-capacity CPUs on asymmetric Linux topologies", author fordbmorris (association NONE, first-time contributor), head 3363573 (reviews also cite 4b41ddc). Files (pr_files): eos/src/unix.rs +145, eos/src/windows.rs +3, helios/native/roce_proxy.c +71, helios/src/execution/parallel.rs +1, helios/src/execution/worker.rs +1, helios/src/replay.rs +4/-1, helios/src/server/runtime.rs +1.

Mechanism (verified in diff):

CI: .github/workflows/native-serving.yml:47 already runs cargo test eos, so the selector tests run in CI — hardware testing of the selector is unnecessary.

#2 [high] Verified: affinity mask leaks onto offload/image/disk threads

Independently verified (not in most lenses): the flare_eos::prefer_high_capacity_cpus() call at helios/src/server/runtime.rs:568 is the FIRST statement of the "flare-model" thread closure, and the same thread then spawns long-lived I/O workers, which on Linux inherit the creator's sched_setaffinity mask:

This directly contradicts the documented policy: docs/prefix-cache-offload.md:863-867 — "transfer threads ... and the disk thread ... Both use SCHED_BATCH with a positive nice value to reduce contention with the model worker, HTTP runtime, and frontend workers. Adding CPU affinity requires a serving-latency measurement that shows a benefit." The PR neither updates that paragraph nor measures the offload path. No lens's blocker list except the Value Proposition lens surfaced this leak; architecture/conventions/simplicity/correctness missed it.

Also verified: the same-process TP rank threads flare-rank-{n} (helios/src/execution/threaded.rs:652-654) get no explicit call; they only inherit. Thread names available for observation: flare-model, flare-execution, flare-cuda, flare-roce, flare-offload-{N}, flare-rank-{N}.

#3 [high] Verified repo rules and vendored-file contract

Verified quotes and line numbers:

Ease of the fix (verified): the proxy pthread is created by roce_start, whose only caller is RoceTransport::connect at helios/src/execution/roce.rs:295; a new pthread inherits the creator's mask, so one call before roce_start deletes the whole ~66-line C copy. Also verified: the vendored-identical rule is arguably already only "protocol"-scoped (docs/roce-ring.md says "When changing the protocol..."), so a non-protocol addition like affinity may be defensible if declared — but the NOTICE sentence "implementation is unchanged" is unambiguously false and must change regardless.

#4 [high] Hardware capability vs PR claims

Hardware: cn5 = 4× RTX PRO 6000 Blackwell Max-Q (SM120), amd64, 48 CPUs, 4 GPUs on one host. cn7 = 1× NVIDIA GB10 (SM121), arm64, 10 CPUs, 60 GiB RAM.

Consequences for testing PR #576:

  1. cn7 is the only asymmetric SoC (Grace 20-core on a full DGX Spark; the job is given 10 CPUs, so the visible cpuset may already be narrow). It is a SINGLE GB10, while the PR's headline evidence is 4× DGX Spark TP4 over --roce-ring with ConnectX-7. RoCE ring requires 2..16 ranks over multiple hosts (docs/roce-ring.md:3,19,404; helios/src/execution/roce.rs:151). With one GB10 we cannot reproduce the RoCE proxy claim (helios/native/roce_proxy.c, the untested C helper, the flare-roce thread) at all — that needs ≥2 GB10 hosts with ConnectX-7 and the roce feature build.
  2. cn5 is x86_64: the code path is a guaranteed no-op there (no /sys/devices/system/cpu/cpuN/cpu_capacity). cn5 can therefore only confirm the no-op/regression claim (and would confirm nothing about placement). It is useful for cheap regression sanity, not for validating the feature.
  3. cn5 has 4 GPUs on one host, which DOES exercise the same-process TP path (RankPeers::Threads -> threaded.rs:652 flare-rank-{n}) and the flare-model/flare-execution threads — i.e. the mask-leak question and the no-op claim. It cannot test the RoCE proxy.
  4. The models on the hosts (dinov2-base, GLM-5.3-Flash-NVFP4, Qwen3.8-27B-NVFP4/DFlash2, etc.) are NOT the recipe the PR measured ("Inkling 2 Small NVFP4", from local-inference-lab/hyperflare-recipes per AGENTS.md:9-16). So no main-vs-head A/B reproduction of the +17.2% / CV figures is possible on either host without new export work.
  5. Thread placement is directly observable with ps -L -o comm,psr / taskset -cp filtering the new names flare-model, flare-roce, flare-execution, flare-offload-N — a cheap, high-value check that does not need benchmark runs.
  6. The pure selector already runs in CI (native-serving.yml:47 cargo test eos), so unit-test re-runs on hardware add nothing.