Explore report · NVIDIA/hyperflare-inference #674

Raw Markdown for agents: https://autobot.eidonix.com/p/6e3163e2-f29a-4a85-9e82-f99962f83b03.md

Case file — PR #674 selene,selene-manager,helios: improve prefix-cache hit rate, L1 retention, NVMe throughput, and GPU snapshot packing

Head 7d7dcdc, base main (1fbcc3c9), open, ready for review, opened and last updated 2026-12-02, 40 files, +11,210 / −704, no labels, no comments, no reviews, CI on head: passed.

Key findings

The change

40 files, +11,210/−704, single squashed commit. Largest hunks:

File ±
selene-manager/src/store.rs +3228/−90
selene/src/memory.rs +1223/−128
selene/src/disk.rs +1087/−55
selene/src/disk_store.rs (not opened) +1063/−70
helios/src/server/runtime/phase_tests.rs (not opened) +674/−9
helios/src/scheduler/cache_memory.rs +563/−5
selene/src/composite.rs +413/−20
helios/src/scheduler/checkpoints.rs +386/−17
helios/src/runtime_core/cache_memory.rs +354/−84
helios/src/runtime_core/memory/codec_layout_tests.rs +338 (new)
helios/src/server/runtime.rs +314/−55
helios/src/server/metrics.rs +96/−3
docs/prefix-cache-offload.md / runtime-core-design.md / api.md +97/−31, +17/−7, +12/−3
selene-manager/tests/client.rs +160/−22

In plain terms, four independent threads:

  1. Lookup & intake — keep host/pool lookup alive when a deeper checkpoint extends a partly GPU-resident prefix; allocate zero local intake slots when local disk is off (selene/src/offload.rs:681-685: required_intake = if directory.is_some() { target_intake_slots(...) } else { 0 }); split ready on-disk inventory from uncommitted reservations in metrics (helios/src/server/metrics.rs:311-313, 654-660, 1372-1385); new per-level pool restore-rate gauge (flare_host_cache_pool_inbound_bytes_per_second{level}, metrics.rs:1408-1422).
  2. L1 DRAM retention & drain — clean persisted_in_pool records stay resident after handover, tracked by an explicit clean_slots counter with a debug invariant (selene/src/memory.rs:353, 1060-1131); shutdown drain waits only on records still lacking handover; new capture_headroom_slots decouples capture headroom from intake sizing.
  3. GPU snapshot packing & pricing — half-width alias planes (helios/src/runtime_core/cache_memory.rs:67-85), midpoint-ordered chunk placement (:245-289), rewritten symmetric exponential+binary plan_mapping_handles (early return under limit, Layout: Clone), pressure-aware eviction evict_for_pressure in helios/src/scheduler/cache_memory.rs, and host-restore pricing via estimate_prefill_delta_ns (helios/src/scheduler/checkpoints.rs:441) with measured per-level rates plus a separate RowRestoreLatency (helios/src/server/runtime.rs:285-290, 3323-3354).
  4. Manager storage — aligned whole-record O_DIRECT for compressed v4 (selene/src/disk.rs WriteRecord/WritePacked, buffered fallback on EINVAL), event-driven put waiters (writeback_waiters, inflight_waiters, WindowReleaseSignal at selene-manager/src/store.rs:5540-5579, WRITEBACK_WAKE_SCAN = 32 rotating epoch scan at :1690-1760), clean-record retention in manager RAM with buddy-coalescing eviction (selene-manager/src/arena.rs:163 coalescing_block), and coalescing of identical in-flight put offers.

What the description does not say (verified in the diff, see Key findings) — eight items listed there plus: docs are changed but the description's "What" list never mentions them; admission plan refresh, backing_conflict = snapshot_unavailable && !free_snapshots.is_empty() (helios/src/scheduler.rs:1258-1281), and the selene/src/composite.rs Retry(StoreReason::Slabs) path and reserve_capture → Ok(None) error are efficiency/semantics changes with no declared behaviour change.

What the description says the change does and the diff does less of — "instead of wall-clock prefill EMA": the EMA survives as the cold fallback and its measurement was altered, not removed.

The why

Recent activity

People

Community

Nothing found. Zero comments, zero reviews, no reactions recorded, no labels. For comparison #665 (a day older) had 5 discussion entries and two Autobot reviews; #655 had 6 entries plus a community confirmation from nepenth on 2× GB10 (SM121).

Project fit

Claims and evidence

Backed by artefacts in the diff

Not backed in-repo: all of tables A–F (capacity 1,946 → 4,864; 5,917 → 2,390 backing pages; 2,151 store_skipped; 806.6/1,043.1/1,054.8 MB/s; 66.56% → 83.23% hit tokens; 0.5449→0.3907 s mean; the 284-request / 10-phase fault matrix incl. SIGKILL and chmod -R a-w; cross-node aarch64 TCP run; "5.1× faster than cold prefill"). No logs, scripts, or CI job referenced; single-machine, single-author measurement.

Test-count claims (selene 586; selene-manager 205 lib + 131 integration; helios runtime_core 191 / cache 44 / scheduler 419 / server 340; flare 246; check.py (not opened) --mutations 8/8; RUSTFLAGS="-D warnings" cargo check --locked --all-targets) are plausible given the added tests but were run on Linux only and cannot be re-derived from the diff.

Reach

Process

Not a draft; "open, ready for review"; CI passed on 7d7dcdc; no reviews requested or given; no labels; one squashed commit; age under a day at case-file time. Two concurrent open PRs (#665, #659) touch the same helios files and one (#665) the same function, so merge order matters and no one has sequenced them.

Open questions / not found