Pre test report report · NVIDIA/hyperflare-inference #674

Raw Markdown for agents: https://autobot.eidonix.com/p/39b52575-4702-481e-ab1d-e368195242b5.md

Hardware test plan — PR #674 (selene / selene-manager / helios prefix cache)

0. Verdict and the one thing to do before spending GPU time

PR #674 is now Ready To Merge (0 blockers, 0 should-fix in the last re-review; the earlier RowRestoreLatency::start decay-clock bug is fixed at pr/674 — helios/src/server/runtime.rs:284-293 no longer touches last_median, and the aged-median regression test exists at helios/src/server/phase_tests.rs:8829-8851 (not opened)). Hardware testing is worth doing, but the evidence in the PR body is not yet valid as measured: tables A–F were run on pre-refactor 7d7dcdcb against baseline 5d53040e, four commits behind the PR base 1fbcc3c9 (this re-review round also records +10,106/−1,158 across 42 files at 0ebee3d4).

Blocking prerequisite for any GPU run: main has moved again and now contains #665 "helios: add scan-resistant sticky dual-turnover prefix cache eviction" (merged as 07e666e6, main tip now c513e46a) — the same helios/src/cache.rs (not opened) eviction-selection region this PR rewrites. Before A/B:

  1. Merge/rebase main (c513e46a) into the PR branch and resolve helios/src/cache.rs (not opened) (and re-check helios/src/runtime_core/cache_memory.rs vs #659 if it lands).
  2. Confirm green CI on the merged head.
  3. Use the same merged main commit as the A/B baseline for every table below.

Running the PR's own 5d53040e comparison burns GPU hours on a baseline that no longer exists.

1. What the available machines can and cannot validate

Claim in PR body Reproducible on cn5/cn7?
A GPU snapshot-alias capacity (DeepSeek-V4.1 TP4, 1,946→4,864 snapshots; 82.2→33.2 backing pages/ckpt) No — the model is not on either machine. cn5's only served cores are GLM-5.3-Flash-NVFP4 (×2 publishers) plus two DINOv2 ViT fixtures. Substitute GLM-5.3-Flash-NVFP4 TP4 on cn5 (see §2.1); this measures the mechanism, not the claimed model.
B NVMe spill, tight-limit eviction, restart restore (Qwen3.8-Flash-Next TP1) Model only on cn7 (integrated GB10, 1 GPU, so no TP2) — a GB10 export will not load on cn5's GB202. Reproduce the mechanism with GLM-5.3-Flash-NVFP4 TP2 on cn5 (§2.3); the exact latency numbers will not match.
C Multi-turn, multi-instance pool traffic (2× GLM-5.3 TP2, kvc=off) Yes on cn5 (§2.4). Best-matched claim.
D Compression parity kvc=gpu/cpu/off Yes on cn5, only if the cn5 GLM-5.3 core embeds CodecLayout.gpu_module; cores exported without it reject gpu at startup (see docs/prefix-cache-offload.md:112-123). Optional (§2.5).
E Cross-node TCP to an aarch64 selene manager Yes, in essence: pure-CPU selene manager on cn7 (arm64) + instance on cn5 (amd64) over --prefix-cache-pool HOST:PORT. Needs fabric reachability and --listen (§2.6).
F 284-request fault-injection matrix Partially; only the manager-SIGKILL case is cheap (§2.5).
Whole-#451 handle-budget gate Fully provable with zero GPU time — the fixture test in §1.1.

1.1 Zero-GPU pre-check (do this first, ~10 min on cn5's 48 CPUs)

The #451 mechanism (midpoint half-width alias planes, symmetric handle budgeting) is already covered by a CPU-only fixture test using checked-in protobufs (tests/fixtures/codec_geometry/*.{rank,contract}.pb) — no CUDA, no core download:

cargo test --release --manifest-path helios/Cargo.toml --all-features \
  runtime_core::memory::codec_layout_tests::exported_fixture_geometries_preserve_bounds_and_recover_vram_without_widening_spans -- --nocapture

It asserts, over deepseek41 / glm53-tp4-mtp5 / qwen38-tp1 / qwen38-tp2 at 2 MiB and 64 KiB granularity: eligible planes (4/8, 12/24, 26/39), post-plan total handles < 524,288 (RM_HANDLE_RANGE, helios/src/runtime_core/cache_memory.rs:593), and deepseek41 exclusion ≤ 53,000 pages at 1,592 rows. If this fails, stop — the GPU plan is moot. Also run verification/helios-lifecycle/check.py --mutations and RUSTFLAGS="-D warnings" cargo check --locked --all-targets here (cn5's 48 CPUs), not on a GPU job.

2. GPU plan (cn5 unless stated) — ~2 h 45 min total, ordered by value per GPU-minute

Noise controls for every A/B: same core file, same flags, fixed temperature/seed, 3 repetitions in ABBA order, discard the first (warmup) run, report p50 and mean, dump /metrics before/after each phase. Record nvidia-smi --query-gpu=clocks.sm,power.draw once per run so a clock-throttled run can be discarded rather than interpreted.

2.1 Phase 1 — handle-pressure gate + snapshot capacity (25 min, 4 GPUs)

Purpose: make the #451 code path actually execute and measure capacity/pages. It is the only claim cn5 can measure on real hardware, and it is a gate, not a parity claim.

2.2 Phase 2 — diskless intake zeroing and startup cost (15 min, 2 GPUs)

Directly exercises the selene/src/offload.rs:176 change (else if memory != 0 || disk → else if disk) and offload.rs:676-680 (required_intake = 0 without a local disk).

2.3 Phase 3 — L1 clean retention + restart restore + event waiters (45 min, 2 GPUs, uses scratch)

This is the highest-value new-behaviour measurement and matches claim B's mechanism: --prefix-cache-memory 256M --prefix-cache-disk <scratch>/records --prefix-cache-disk-limit 1200M with GLM-5.3-Flash-NVFP4 TP2 (2 GPUs).

2.4 Phase 4 — multi-instance pool traffic, A→B→A routing (40 min, 4 GPUs)

Claim C, the best-matched test on cn5. Manager on cn5 over a Unix socket:

selene --name bench --socket /tmp/selene-bench.sock \
       --root <scratch>/nvme --nvme 6G --memory 2G --staging 2G \
       --metrics 127.0.0.1:9900&
# instance A: GPUs 0,1   instance B: GPUs 2,3  (both GLM-5.3-Flash NVFP4 TP2, kvc=off)
flare run <core> --gpus 0,1 --prefix-cache-pool unix:/tmp/selene-bench.sock ...
flare run <core> --gpus 2,3 --prefix-cache-pool unix:/tmp/selene-bench.sock ...

/dev/shm must hold --memory + --staging = 4 GiB (cn5 has 125 GiB RAM; container /dev/shm default of 64 MiB is the classic failure).

2.5 Phase 5 — optional, only if Phases 1–4 leave time (50 min, 2 GPUs)

2.6 Phase 6 — cross-arch pool (optional, ~45 min, cn5 + cn7)

Validates claim E's real content (aarch64 manager, TCP pool, compressed records across architectures) with the hardware at hand: selene manager on cn7 (--listen <cn7-ip>:9200 --memory 1G --nvme 4G --staging 2G), one instance on cn5 (--prefix-cache-pool <cn7-ip>:9200). Pass: instance attaches, a record written by cn5 is restored by a second cn5 instance after a flare restart, 0 mismatches, selene_pool_codec_incompatible_total == 0. Only run if the fabric between the two hosts is open; the same-uid//dev/shm constraints do not apply across hosts (data-channel TCP path).

2.7 Deliberately not run

3. Claim → measurement → machine summary

Claim Command surface Machine Metric decision Time
#451 alias packing/budgeting cargo test … codec_layout_tests cn5 CPU fixtures pass, handles < 524,288 10 min
A snapshot capacity --gpus 0,1,2,3, raise KV budget until Place cache backing prints cn5 flare_snapshot_capacity ↑, flare_snapshot_backing_pages/ckpt ↓ 25 min
A' diskless intake --prefix-cache-memory 8G (no disk) cn5 flare_host_cache_intake_slots == 0 15 min
B L1 retention + restart --prefix-cache-memory 256M --prefix-cache-disk …-limit 1200M, restart cn5 memory_records > 0, wb waits ↓, answers identical 45 min
C pool traffic 2 instances + local selene cn5 NVMe MB/s ↑, bytes_out ↓, cost_rejected > 0, p50 ≤ baseline 40 min
D compression --lossless-kv-compression {off,cpu,gpu} cn5 answers identical, 0 codec/verify errors 25 min
E cross-arch pool selene on cn7 + instance on cn5 cn5+cn7 0 mismatches, codec-incompatible = 0 45 min
F fault recovery SIGKILL manager cn5 all 200, reconnect, hits resume 25 min

4. Findings the test engineer must watch for (already known, do not re-litigate on GPU time)

  1. Baseline is stale and the merge is dirty — main contains #665 (07e666e6) touching the exact helios/src/cache.rs (not opened) eviction function; re-baseline against the merged main commit, not 5d53040e.
  2. The headline model is not on the hardware. Tables A/B were DeepSeek-V4.1 TP4 and Qwen3.8-Flash-Next TP1; cn5 has neither. Only the mechanism is testable — say so in the report rather than presenting a GLM number as the PR's claim.
  3. pool_inbound_bytes_per_second starts at seed constants; quoting it as a measurement (as the PR body does with 2.33 GB/s) is invalid.
  4. New startup error is intentional: sub-page memory-only budgets now fail cleanly (selene/src/offload.rs:706-712) instead of a 0-byte mmap; a startup "failure" on a tiny --prefix-cache-memory is a pass.
  5. Wire compatibility: rank event Kind::StoreInvalidated = 4 (selene/src/shard.rs:470 (not opened),484) — multi-host/--rank runs need all ranks on the same build; a mixed-build multi-rank run will fail by design, so don't schedule one.
  6. --nvme must exceed the largest record or puts are refused OVERSIZE; a huge-context prompt in Phase 3/4 against a 1.2–4 GiB budget can look like a regression when it is a config error.
  7. Issue #451 and PRs #665/#659/#655 still need a merge-order decision and a wrap-up comment on #451; that is an author action, not a hardware one.

5. Deliverables per run

For each phase: commit SHA of both builds, exact flare run / selene argument lines, machine id (cn5/cn7), /metrics dumps before/after, the startup log (needed for the Place cache backing and intake lines), nvidia-smi clocks, and the raw latency samples. Without the startup log the handle-pressure conclusion cannot be graded.