Explore report · NVIDIA/hyperflare-inference #705

Raw Markdown for agents: https://autobot.eidonix.com/p/4da1adbc-f6e1-4f10-a26a-ca8c16c5afe4.md

Case file: PR #705 — "fix(selene,helios): stop service_store and CompositeStore Retry(Slabs) CPU storm"

Refs #703. Base main, head eec5e95, opened 2026-12-03, ready for review, no labels, no reviews, no comments, no CI.

Key findings

  1. The perf claim has no served-workload evidence. The only profile is issue #703's capture on the pre-fix flare 0.5.1 binary, and #703 itself says the storm was not reproduced on v0.5.3. There is no before/after CPU%, no perf sample on the patched build, no latency measurement. Charter line 11 requires exactly this: "Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)". Evidence shipped instead: 9 unit tests, author-reported full-suite counts, clippy/rustfmt clean — all debug profile only.
  2. One cited mechanism is overstated. The body says "Worker::run (helios/src/server/runtime.rs:1214,1257-1290) enforces a 2 ms idle poll cap so the retry_after expiry edge fires reliably". In code, idle_wait() (helios/src/server/runtime.rs:1269-1292) returns 50 µs when a store inbound transfer or scheduler inbound waiter exists, 100 µs when an incoming awaits the pool, and 2 ms only in the final fallback; the whole branch runs only when executor.outstanding() == 0 (runtime.rs:1248-1263). With GPU work outstanding the loop does executor.park() / spin_loop() / yield_now(), and RankExecutor::park() returns false immediately on discrete GPUs and non-Linux hosts (helios/src/execution/transport.rs:862-871, "preserve minimum-latency spin-yield polling"). So there is no 2 ms cap on loop cadence while a step is in flight; the worker still spin-yields by design — #705 removes the per-iteration store work, not the spin.
  3. The reported top hotspot is left untouched. #703's profile attributes 13.12% of samples to cloning the 154,510-element page_snapshot_refs inside export_fits() (helios/src/scheduler/cache_memory.rs (not opened)). That is #703 fix direction (4) and the PR declares it out of scope, though its can_retry_slabs gating does avoid calling export_fits() for unready slab retries (runtime.rs:2880-2891).
  4. Metric semantics change with no doc update. StoreStats::progress under ENOSPC, held[0] cadence, and deferred Slabs attempt counts all shift (the PR's own "Narrow Metric and API Shifts" section). docs/prefix-cache-offload.md:293-297 still states the old worker contract ("Retry accepts no copy. The worker retains only checkpoint IDs for retries after store progress…"), and the held/ENOSPC description at :1364-1372 and :503-504 still describes the pre-PR behavior. pr_files lists only the 6 code files — no docs change.
  5. Undeclared changes ride along. An existing test assertion was relaxed to accommodate the new spill() guard (selene/src/composite.rs:2733-2736: store.spill(child.key).unwrap() became if !store.parked[&child.key].writing { … }), and disk_stored() now silently removes an orphaned parked entry — a latent-panic fix (composite.rs:661-664). Neither is listed as a change; the body's test section mentions only the 9 new tests.
  6. Two large open PRs rewrite the same code with no merge order recorded — #674 and #694 (both yatesdr, COLLABORATOR). #694 edits the same StoreOutcome match in service_store (to handle a new Unprofitable variant) and adds another HostStore method next to can_retry_slabs.
  7. pr_diff overstates the scope through mirror base drift. The whole-PR diff additionally shows AGENTS.md, docs/, flare-cli/ and preserve_message_anchor hunks; these are content of #687/#689/#690/#697 merged into real main after this mirror's main (cc0a49d). Verified independently (no preserve_message_anchor on mirror main; old CUDA_HOME text at AGENTS.md:461-469). Authoritative scope = pr_files: 6 files, +820/−71.

The change

Size and file map (pr_files): selene/src/composite.rs +519/−50, helios/src/server/runtime.rs +89/−21, helios/src/server/runtime/phase_tests.rs +196/−0, selene/src/pool/local.rs +6, selene/src/pool/store.rs +4, selene/src/store.rs +6 — total +820/−71, matching the description.

Mechanism, as verified at pr/705:

What the description does not say: the relaxed existing test assertion (composite.rs:2733-2736); the new debug_assert! invariants in shipped code (composite.rs:752-771); the latent-panic fix on orphaned parked entries (composite.rs:661-664); and that retry_after now also gates spill()/spill_parked() directly, not only poll() (composite.rs:815-817, 892) — previously a store() rejection could start a spill during ENOSPC backoff. poll()'s maintenance gate also loses its || retry disjunct, so a maintenance pass runs once per 50 ms expiry rather than per event.

What the description says that the code does not: the "2 ms idle poll cap" (Key finding 2).

The why

The driver is issue #703 (open, jcartu, opened 2026-12-03 09:50, same day as the PR; labels area:caching, area:memory, area:selene, bug, performance, triage:investigate). Labels bug/performance and the same-author, same-day timing mean the "want" is one day old at intake, not long-standing.

#703's evidence — all author-captured on flare 0.5.1, 4× RTX PRO 6000 Blackwell SM120, DeepSeek-V4.1-Flash TP4, 154,510 KV pages, --max-concurrency 64 --prefix-cache-memory 8G --prefix-cache-disk … --prefix-cache-disk-limit 100G:

Which of #703's four suggested directions #705 takes: (1) progress only on transitions — done; (2) gate/bound deferred slab retries without starving smaller publications — can_retry_slabs; (3) avoid spill_parked() while writing == MAX_SPILLS — done; (4) stop cloning the 154k page_snapshot_refs in export_fits() — not done, out of scope (and it is the largest hot cluster in the issue's own profile).

Prior art for the same failure class: #358 "Honor the pool refusal retry backoff and count refusal discards" (merged 2025-11-18, yatesdr, follow-up to #338, part of #335), which introduced refused_until = now + 50 ms so pool events cannot shorten a refusal backoff. #705's backoff_active()/retry_after gating on the local-disk path is the analogous guard.

Recent activity

People

Community

Zero engagement: no comments, no reviews, no labels, no CI checks on head eec5e95, hours old at intake. Interest drawn so far: none.

Project fit

Claims and evidence

Backed, verified in the tree:

Author-reported, not confirmable from the repository:

Not backed / overstated:

Reach

Process

Open and declared "ready for review", opened and last updated the same day (2026-12-03), 6 files +820/−71, no labels, no reviews, no comments, no CI ("no checks") on head eec5e95, no bot case file. Too young to show a review-latency pattern.

Open questions / could not be found