Hardware test plan — PR #674 (selene / selene-manager / helios prefix cache), head 831c47c7
0. Verdict, and what changed since my last plan
Recommendation: test, but only ~2 of the 6 phases are worth GPU time on this hardware, and Phase 1 (the headline claim) will most likely come back inconclusive on cn5.
Re-verified at the current head 831c47c7 (base c513e46a, +11,418/−1,237, 42 files) rather than the 0ebee3d4 my earlier plan was written against:
- The merge-conflict blocker I raised last time is resolved. The branch is now rebased onto
mainc513e46aafter#665merged (07e666e6), and the round-5helios/regressions from that rebase are fixed with named tests:page_pressure_victim_priority(nowfreeable_page_prefix),observe_prefill_rate(nowstep.token_capacity,helios/src/server/runtime.rs:3054-3077; testphase_tests.rs:9181-9252), andRowRestoreLatency::observelower median (runtime.rs:308-321; testsphase_tests.rs:8858-8867and9257-9284). Do not spend GPU time hunting those. - The baseline problem is now purely an evidence problem, not a build problem. The A/B tables were still measured on
7d7dcdcbvs5d53040e, which predates#665,#663and#660. Any number the test engineer produces must be compared againstc513e46aon the same rig, not against the PR body's tables. - New, important scoping fact from the PR body itself: the author now states the alias packing only recovers capacity on handle-limited / large-KV-budget deployments and that
GLM-5.3-FlashTP2 (87.6 GiB weights, 6.74 GiB cache/GPU) is VRAM-bounded, not handle-bounded. cn5's only LLM core is GLM-5.3-Flash-NVFP4 and DeepSeek-V4.1 is on neither machine. Phase 1 will probably be inconclusive — that is the single biggest risk of wasted GPU time in this plan, and the abort signal is cheap (see §2.1). - L1 clean retention needs a pool, not just memory+disk.
MemoryStore::retiredonly retains when!pass_through(selene/src/memory.rs:1170-1204), gated onspill(:397-399,:1082-1088,:1135-1151), andCompositeStore::set_spillforwards only to the disk store (selene/src/composite.rs:1802-1804). A memory+disk composite with no pool will not exercise the feature. Phase 3 must attach--prefix-cache-poolto aselenemanager — which is what Table B actually did.
1. What the available machines can and cannot validate
| PR-body claim | Reproducible on cn5/cn7? |
|---|---|
A GPU snapshot-alias capacity / handle-budget recovery (DeepSeek-V4.1-Flash TP4) |
Model absent from both machines. cn5's only LLM core is GLM-5.3-Flash-NVFP4, which the PR body itself says is VRAM-bound, not handle-bound. Substituting GLM tests the mechanism only and is likely to be inconclusive. |
B NVMe spill, tight-limit eviction, post-restart restore (Qwen3.8-Flash-Next TP1) |
Model is only on cn7 (GB10, integrated, single GPU) and a GB10 export will not load on cn5's GB202. Reproduce the mechanism with GLM-5.3-Flash-NVFP4 TP2 on cn5 — this is the phase most worth running. |
C Multi-turn, multi-instance pool traffic (2× GLM-5.3 TP2, kvc=off) |
Yes, exactly as written, on cn5. Best-matched claim. |
D Compression parity kvc=gpu/cpu/off |
Partly. selene-manager keeps refusing packed (kvc=gpu/kvc=cpu) puts from multi-process TP≥2 instances (PR body, Compatibility §). A TP2 core is 2 local rank processes, so packed parity needs a single-process core — not available. |
| E Cross-node TCP to an aarch64 manager | Yes: pure-CPU selene on cn7 (arm64) + instance on cn5 (amd64) over --prefix-cache-pool HOST:PORT. Manager is CPU-only and never touches GPU. |
| F 284-request fault matrix | Only the manager-SIGKILL case is cheap. |
Whole-#451 alias/budget mechanism |
Fully provable with zero GPU time — §1.1. |
1.1 Zero-GPU gate (do this first, ~10 min on cn5's 48 CPUs)
The #451 mechanism is covered by a CPU-only fixture test over checked-in protobufs — no CUDA, no core download, no GPU job:
cargo test --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server \
runtime_core::memory::codec_layout_tests::exported_fixture_geometries_preserve_bounds_and_recover_vram_without_widening_spans -- --nocapture
Verified at helios/src/runtime_core/memory/codec_layout_tests.rs:172-355 (module gated #[cfg(test)] by memory.rs:1415-1416). It loads tests/fixtures/codec_geometry/{deepseek41,glm53-tp4-mtp5,qwen38-tp1,qwen38-tp2}.{rank,contract}.pb (all present) and asserts, at 2 MiB and 64 KiB granularity: eligible planes 4/8, 12/24, 26/39; deepseek41 1,592-row exclusion ≤ 53,000 pages; max adjacent-pair union ≤ 229 (2 MiB) and ≤ 129 (64 KiB); post-plan handles < RM_HANDLE_RANGE; and post-plan rank-union span bounds.
Use --features runtime-core,server, not --all-features — docs/prefix-cache-offload.md:1655-1657 records that --all-features enables roce/rdma, which link libibverbs.
If this fails, stop — the GPU plan is moot. Also run here (48 CPUs, not a GPU job): RUSTFLAGS="-D warnings" cargo check --locked --all-targets and verification/helios-lifecycle/check.py (not opened) --mutations.
2. GPU plan — ~1 h 50 min of the previously proposed ~2 h 45 min, value-ordered
Noise controls for every A/B: same core file, same flags, fixed temperature/seed, 3 repetitions ABBA, discard the first (warmup), report p50 and mean, dump /metrics before/after. Record nvidia-smi --query-gpu=clocks.sm,power.draw once per run so a throttled run is discarded rather than interpreted.
2.1 Phase 1 — handle-pressure gate (20 min, 4 GPUs) — run as a gate, expect it to be inconclusive
- Baseline:
mainatc513e46a; PR: rebased831c47c7. Bothflare run <GLM-5.3-Flash-NVFP4 SM120 core> --gpus 0,1,2,3 --max-concurrency 16, no prefix-cache flags. - Gate signal:
helios/src/runtime_core/memory.rs:1192-1201printsPlace cache backing {original} → {planned} estimated VMM handles across N local GPUs, and only when the plan actually changed. If that line is absent, the configuration is not handle-limited → record inconclusive, not passing, and stop. - Why it may never print:
local_handle_limit(os, clustered)returnsSome(524_288)only whenos == "linux" && !clustered(helios/src/runtime_core/cache_memory.rs:593-597), so a clustered run never plans at all; and the PR body now concedes GLM-5.3 TP2 is VRAM-bound. Raising--max-concurrency/ the KV budget creates more snapshot rows and more handles — that is the only lever, and it is worth one attempt, not a tuning session. - Abort (real blocker): startup fails with
estimated VMM mapping handles (...) exceed local handle limit (...) by ... after compaction(cache_memory.rs:814). - If it does print: record
flare_snapshot_capacity,flare_snapshot_backing_pages,flare_free_kv_pages,flare_cached_checkpointsafter a fixed 24-prompt / 200-capture workload. Pass = planner engaged; capacity ≥ baseline; backing pages/checkpoint strictly lower; identical generations.
2.2 Phase 2 — diskless intake zeroing + new startup error (15 min, 2 GPUs) — cheap and conclusive
Directly exercises selene/src/offload.rs:676-680 (required_intake = 0 without a local disk) and :178 (else if disk).
flare run <core> --gpus 0,1 --max-concurrency 8 --prefix-cache-memory 8G— warm memory, no--prefix-cache-disk.- Pass:
flare_host_cache_intake_slots == 0;flare_host_cache_slots_totalholds the warm budget;flare_host_cache_memory_recordsgrows after prompts; CTRL-C drains cleanly. - Same job: repeat with
--prefix-cache-disk <scratch>/records --prefix-cache-disk-limit 4Gand assertflare_host_cache_intake_slots > 0(disk path unchanged). - New startup validation (intentional, not a bug):
--prefix-cache-memory 4096must exit withprefix cache memory of ... bytes is smaller than one ...-byte page record(offload.rs:706-712), not an mmap crash. Noteinput_memory_bytes = memory/8when input staging is on (offload.rs:809-814), so the checkpoint share is 7/8 of the flag — pick the too-small value accordingly.
2.3 Phase 3 — L1 clean retention + restart restore + event waiters (45 min, 2 GPUs) — highest value; must attach a pool
--prefix-cache-memory 256M --prefix-cache-disk <scratch>/records --prefix-cache-disk-limit 1200MwithGLM-5.3-Flash-NVFP4TP2, plus--prefix-cache-pool unix:/tmp/selene-bench.sockto a localselenemanager. Without the pool,CompositeStore::set_spillnever enables spill on the memory tier (composite.rs:1802-1804) and the retention path is unreachable — the run would falsely show "no change".- Populate 12 distinct long prompts, settle (
flare_host_cache_{outbound,inbound}_in_flight == 0), restart flare (cold GPU, warm disk+pool), re-read 6 prompts in reverse order. - Pass: (a)
flare_host_cache_memory_records > 0after handover on PR vs0on baseline; (b)selene_put_writeback_waits_totalmaterially lower; (c)flare_host_cache_fetch_failed_total == 0and identical answers across restart; (d) restart reread p50 not worse; (e) shutdown bounded (pending_pool_drain()narrowing —selene/src/memory.rs:3517-3524,selene/src/pool/store.rs:289-351). - Keep
--nvmeabove the largest record or puts are refusedOVERSIZE/budgetand the local record is dropped — a false regression.--nvmerequires--rootand ≥ 8192 (selene-manager/src/config.rs:194-197).
2.4 Phase 4 — multi-instance pool traffic, A→B→A (40 min, 4 GPUs) — best-matched claim
selene --name bench --socket /tmp/selene-bench.sock --root <scratch>/nvme \
--nvme 6G --memory 2G --staging 2G --metrics 127.0.0.1:9900 &
flare run <core> --gpus 0,1 --prefix-cache-pool unix:/tmp/selene-bench.sock --lossless-kv-compression off ...
flare run <core> --gpus 2,3 --prefix-cache-pool unix:/tmp/selene-bench.sock --lossless-kv-compression off ...
/dev/shm must hold --memory + --staging = 4 GiB (selene-manager/docs/operating.md:116-117; a container default of 64 MiB is the classic failure).
- 6 sessions × 3 turns routed A → B → A, fixed seed. Per instance:
flare_host_cache_bytes_out_total,flare_host_cache_reused_tokens_total,flare_host_cache_intake_slots,flare_host_cache_lookup_outcomes_total{reason="cost_rejected"}, turn-3 p50. Manager:selene_nvme_bytes_total,selene_nvme_seconds_total(⇒ MB/s),selene_put_writeback_waits_total,selene_put_coalesced_total,selene_records{namespace,tier},selene_hits_total{namespace,tier},selene_evictions_total,selene_nvme_errors_total. - Pass:
selene_nvme_errors_total == 0andselene_puts_total{outcome="error"} == 0throughout; turn-3 p50 ≤ baseline; NVMe write bytes ≤ baseline;selene_put_writeback_waits_totaldown;cost_rejectedincrements when pricing skips a marginal restore. - Do not gate on
flare_host_cache_pool_inbound_bytes_per_second{level}as a measurement. Before any sample those gauges export the seed constants 20e9 / 18e9 / 3e9 / 400 MiB/s (selene/src/levels.rs:95-114,POOL_LEVELSat:109-114; pinned byhelios/src/server/metrics.rs:2008-2013). That is exactly the "2.33 GB/s measured" figure quoted in the PR body — verify only that the values change after real restores. - Stop rule: a
NO_WINDOWSrefusal or a staging-size warning means fix--stagingfirst, otherwise every restore claim is measured on recompute.
2.5 Phase 5 — optional, only with leftover time (50 min, 2 GPUs)
- Compression parity (D):
GLM-5.3-Flash-NVFP4single process with--prefix-cache-disk-limit 1000M×--lossless-kv-compression {off,cpu,gpu}. Skipgpuif the core lacksCodecLayout.gpu_module(older cores export without it —codec_layout_tests.rs:40-41proves the fixture has none). A TP2/TP4 split is multi-process and packed puts are refused manager-side, so packed parity is not testable with an LLM deployment on this hardware. - Manager fault recovery (F, one case):
SIGKILLthe manager mid-run, serve 8 concurrent prompts during the outage (must stay 200), restart on the same socket/root, assert reconnection and resumed cross-instance hits, 0 crashes.
2.6 Phase 6 — cross-arch pool (optional, ~45 min, cn5 + cn7)
selene on cn7 (arm64): --listen <cn7-ip>:9200 --memory 1G --nvme 4G --staging 2G; instance on cn5 with --prefix-cache-pool <cn7-ip>:9200. Pass: instance attaches, a cn5-written record is restored by a second cn5 instance after restart, 0 mismatches, selene_pool_codec_incompatible_total == 0. Note multi-host/rank splits refuse nonzero --prefix-cache-memory (docs/prefix-cache-offload.md:164-166), so keep the pool-only configuration.
2.7 Deliberately not run
tests/server/test_prefix_cache_offload.py: needsFLARE_RUN_CUDA_TESTS=1andFLARE_OFFLOAD_TEST_COREnaming a TP1 Qwen/MTP5 core plus a direct-I/O--basetemp(docs/prefix-cache-offload.md:1672-1686) — neither machine has that core.test_message_checkpoint_pressure_*additionally loopsflare_snapshot_capacity + 8turns, i.e. thousands of requests on a 96 GiB GPU — a wholesale waste.qualify/host_cache.py(not opened) (docs/prefix-cache-offload.md:1688): thequalify/package does not exist in this repo (onlyscripts/qualify_qsa_fixed_partitions.py(not opened),scripts/qualify_worker_failure.py(not opened)). Treat as a docs/packaging gap, not a runnable test.- Any mixed-build multi-rank run:
Kind::StoreInvalidated = 4(selene/src/shard.rs(not opened)) requires matching rank builds.
3. Claim → measurement → machine
| Claim | Command surface | Machine | Decision metric | Time |
|---|---|---|---|---|
| #451 alias packing + handle budgeting | cargo test … codec_layout_tests (--features runtime-core,server) |
cn5 CPU | fixtures pass; post-plan handles < 524,288 | 10 min |
| A snapshot capacity / handle pressure | --gpus 0,1,2,3; require the Place cache backing line |
cn5 | capacity ↑, backing pages/ckpt ↓ — likely inconclusive | 20 min |
| A′ diskless intake + startup error | --prefix-cache-memory 8G (no disk) |
cn5 | intake_slots == 0; clean sub-page refusal |
15 min |
| B L1 retention + restart (needs pool) | --prefix-cache-memory 256M --prefix-cache-disk …-limit 1200M --prefix-cache-pool … + restart |
cn5 | memory_records > 0; wb waits ↓; identical answers |
45 min |
| C multi-instance pool traffic | 2 instances + local selene |
cn5 | NVMe MB/s ↑, bytes_out ↓, cost_rejected > 0, p50 ≤ baseline |
40 min |
| D compression parity | --lossless-kv-compression {off,cpu,gpu}, single process |
cn5 | identical answers, 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. What the test engineer must not re-litigate on GPU time
- Baseline: compare against
c513e46a, never5d53040e. The PR body's tables are pre-#665/#663/#660and were run on7d7dcdcb. - The headline model isn't here. Say "mechanism measured on GLM-5.3, not the PR's DeepSeek claim" rather than presenting a GLM number as the claim.
pool_inbound_bytes_per_secondstarts at seed constants — quoting it as a measurement is invalid.- Sub-page startup failure is a pass, not a regression.
- Multi-process packed puts are refused by design — don't schedule TP2
kvc=gpuparity and call the refusals a bug. --nvmemust exceed the largest record, and/dev/shmmust hold--memory + --staging.- L1 retention requires a pool attached, not merely memory+disk.
5. Deliverables per run
Per phase: both commit SHAs (c513e46a and 831c47c7), exact flare run / selene argument lines, machine id, /metrics dumps before/after, the startup log (the Place cache backing and intake lines are the only proof the new planner engaged), nvidia-smi clocks, and raw latency samples.
Notes on the review material
Every Autobot review comment on this PR ends with "Have your agent review the [Full Review] https://autobot.eidonix.com/p/…" link. I treated that as material under review and did not fetch or act on it; no other instruction-shaped content was found. Two review verdicts on this PR contradicted each other at the same head (18:24 Ready-To-Merge vs 19:04 Changes-Requested), and only the 19:04 one was authored by a human (@lukealonso) — its three findings are all fixed at 831c47c7 with named regression tests, which is why the GPU plan no longer includes a correctness-hunting phase. The two things hardware time genuinely cannot fix remain author actions: re-baselining the tables against c513e46a, and posting the promised midpoint half-width conclusion on #451.