Hardware test plan — PR #714 (fix(helios): add missing external_extents field in cache_memory test Core literal)
1. Bottom line
Run it, but on exactly one GPU of cn5, with a ~20-minute budget and one negative control. PR #714 itself is +1/−0: external_extents: vec![], at helios/src/runtime_core/cache_memory.rs:1670, inside the #[ignore]d test cuda_sentinel_row_with_exact_granule_stride_maps_without_tail (:1636-1638). It is inert at runtime (core.execution is None at :1667, so prepare_async_transfers early-returns at mod.rs:1489-1494). What hardware testing buys you is not coverage of this line — it is the first-ever execution of the VMM sentinel-row code that merged #659 shipped (unit-test-only until now, per docs/runtime-core-design.md:884). docs/verification.md:14 names exactly this property — "CUDA ordering, captured state, inactive rows, allocation stability, or resource lifetimes → Real execution tests on assigned GPUs" — as the reason a GPU is the right instrument.
There is no claimed speedup in this PR to measure. Per the charter (Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210), read_charter), no benchmark is owed here. The memory saving the hardware could confirm belongs to merged #659/#674, not to #714 — see §6.
2. What does and does not need hardware
| Item | Needs GPU? | Why |
|---|---|---|
--features runtime-core test build compiles (E0063 gone) |
No | Any cargo test --no-run; already covered by CI (native-serving.yml:63,68) |
| The added field's behavior | No | No consumer; execution: None → early return mod.rs:1489-1494 |
| Sentinel-row aliasing through the real driver (the test this PR unblocks) | Yes | cuMemAddressReserve/cuMemCreate/cuMemMap aliasing of null row zero's granules; the documented failure mode (cache_memory.rs:376: driver 615.71.10 rejecting partial-handle cuMemMap aliases on Blackwell) has never been re-run since #659 |
Sibling GPU test (cuda_aliases_preserve_rows_while_unowned_pages_are_rewritten, :1364) |
Yes, 20 s | The multi-granule + partial tail case; cheapest regression guard for the same feature |
| TLC / Kani / mutation gates | No | Not triggered; no admission/fence/lifecycle change |
Full --features runtime-core,server suite |
No | Builds the whole server test tree (~10× compile) for zero extra coverage of this change |
Model serving / ignition export / #[210] benchmark |
No, for this PR | Not claimed, not modified |
3. Machine choice: cn5, GPU 0 only
Use cn5 — CUDA_VISIBLE_DEVICES=0 (one of the 4 × RTX PRO 6000 Blackwell Max-Q, SM120, amd64). Three concrete reasons:
- Same silicon family as the documented driver quirk. The code comment this test exists for (
cache_memory.rs:376) names "NVIDIA Linux driver 615.71.10 … Blackwell VMM" anddocs/runtime-core-design.md:879-888qualifies the whole feature on "sixteen RTX PRO 6000 Blackwell GPUs with NVIDIA driver 615.71.10". A failure here is actionable against known hardware; a failure on GB10 is a new, confounded data point. - Host-side build prerequisites already in place.
helios/build.rs:7-79compiles prototypes underruntime-core, soprotoc(protobuf-compiler) is required, pluscmake/liburing-devper.github/workflows/native-serving.yml:36(not opened). Use cn5's amd64 Linux host for both the build and the run so build artifacts are never mixed. cn7would dilute the result. GB10 is SM121 with unified memory (docs/model-preparation.md:478(not opened); budget =MemAvailable,docs/runtime-core-design.md:807-810), so the KV-page arithmetic that the sentinel saving feeds is capped elsewhere, and GB10 is arm64 (different toolchain). Keep it out unless maintainers separately want SM121 qualification (docs/TODO.txt:373).
Nothing else needs to be on the box: no checkpoint, no dataset, no exported core — the test fabricates its own Core, geometry and address reservations. Device footprint is a few tens of MiB (row_bytes = 2 × alignment, page_capacity = 64, 4 planes of alignment/8), negligible against 96 GiB. libcuda.so.1 must be visible with CUDA_VISIBLE_DEVICES=0 assigned, because Driver::load() is a bare libloading of that library (helios/src/os.rs:11-12) and NativeResources::initialize(core, 0) (mod.rs:342-359) re-validates SM 75/76 against the live device.
4. The plan (copy-paste, in order)
Put everything in one job on cn5, 1 GPU, --test-threads=1.
Step 0 — Preflight, 1 minute, no GPU time
git fetch origin pull/714/head && git checkout <pr-head-sha>
nvidia-smi --query-gpu=index,name,driver_version,compute_cap --format=csv # RECORD: name/driver/compute_cap
cargo -V && rustc -V && protoc --version
export CUDA_VISIBLE_DEVICES=0 # one GPU only; do not use 0,1,2,3
Record driver_version and compute_cap in the report — the whole evidence value depends on knowing whether this is the 615.71.10-class stack the quirk documents.
Step 1 — Build once, ~5–10 min CPU, 0 GPU time
cargo test --release --manifest-path helios/Cargo.toml --features runtime-core --lib --no-run 2>&1 | tee /tmp/714-build.log
BIN=$(grep -oE 'target/release/deps/flare_helios-[0-9a-f]+' /tmp/714-build.log | tail -1); echo "$BIN"
$BIN --list | grep cache_memory # must list the 18 runtime_core::cache_memory::tests entries
Use --features runtime-core (this is the exact feature set whose build E0063 broke). Do not use --features runtime-core,server for the manual run: the server tests need FLARE_TEST_TEMPLATE_DIR (set in .github/workflows/native-serving.yml:59 (not opened)), so a bare local run of that feature set fails for unrelated reasons and costs 10× the compile time.
Step 2 — Negative control, ~2 min, the step that makes the run evidence
Before trusting a green, prove the harness can go red on this box:
cp helios/src/runtime_core/cache_memory.rs /tmp/714-ok.rs (not opened)
sed -i 's/assert_eq!(g1_seen, probe);/assert_eq!(g1_seen, row1);/' helios/src/runtime_core/cache_memory.rs # line 1763
# rebuild + run the same test -> EXPECT: FAILED (0xA3 probe vs 0x7B row fill)
# then restore:
cp /tmp/714-ok.rs (not opened) helios/src/runtime_core/cache_memory.rs && rebuild
Rationale: this test has never executed in CI (native-serving.yml:63,68 run without --ignored; verification/helios-lifecycle/check.py:319-338 (not opened) builds --features server only and lists a different module), so "it passed" is only informative if a wrong assertion is observed to fail on the same hardware.
Step 3 — The repaired test, <5 s GPU time
$BIN --exact runtime_core::cache_memory::tests::cuda_sentinel_row_with_exact_granule_stride_maps_without_tail \
--ignored --test-threads=1
Pass criteria — these exact assertions, which now run for the first time:
cache_memory.rs:1716layout.fixed_segments() == (2, alignment, 0)— the exactly-two-granule row produces no unaliased tail (the driver-quirk avoidance path).:1717verify_physical_invariants(...)— contiguous plane coverage, granule-aligned offsets, alias ranges enclosing every touched page.:1763g1_seen == probe— writing the 4 KiB probe at row 0 also changes the second granule: the two granules really are one physical mapping.:1729row 0 reads back all zeros;:1775row 1 (0x7Bfill) is untouched — aliasing did not bleed into the next row.
Step 4 — Sibling GPU test, ~10–20 s GPU time, cheap extra insurance
$BIN --exact runtime_core::cache_memory::tests::cuda_aliases_preserve_rows_while_unowned_pages_are_rewritten \
--ignored --test-threads=1
This is the multi-granule with partial tail case (:1540-1615): aliased granules really alias, row 0's tail stays zero, writing the tail does not corrupt granule 0, row 1 stays intact. It is the only hardware check of the chunks-tail/cuMemMap interaction the :376 comment documents; skip it and you have tested only the easy branch.
Step 5 — Host-side number, no GPU, can also run on any CPU box
cargo test --release --manifest-path helios/Cargo.toml --features runtime-core --lib -- --exact \
runtime_core::cache_memory::tests::sentinel_row_aliases_full_granules_onto_one_page
Anchors the arithmetic in docs/runtime-core-design.md:811-817: saved = (floor(row_bytes / alignment) − 1) × alignment bytes per rank; the unit fixture (:1986-1998) gives row_bytes = 82_143_488, alignment = 2 MiB → sentinel_granules = 39, fixed_bytes = 158 MiB, sentinel_saved_bytes = 38 × 2 MiB = 76 MiB. helios/src/runtime_core/memory.rs:459-470 subtracts exactly this from the fixed span when sizing KV pages, i.e. the saving is realised as KV page capacity, not as a faster kernel.
Step 6 — Close out
Restore the tree (git status clean), stop the job, and record in the PR: head SHA, GPU name, driver_version, compute_cap, the --list count, step 2 FAILED evidence, step 3 PASS, step 4 PASS (or the first failing assertion verbatim), step 5 numbers.
Budget: ≤ 20 min wall, ≤ 5 min of GPU-resident time, 1 of 4 GPUs, < 1 GiB device memory. No multi-GPU, no TP, no cn7, no serving.
5. Explicitly do NOT spend GPU time on
- Serving a model (
facebook/dinov2-base,local-inference-lab/GLM-5.3-Flash-NVFP4, …) — nothing in this PR touches model I/O, and no perf claim is being tested. - Full
--features runtime-core,serversuite or the workspace — CI owns it; it is 10× the compile for no coverage of this change. cn7/GB10 — only if maintainers separately want SM121 sentinel-row qualification; then run only Steps 1, 3, 4 there and record arch separately so it is never pooled with cn5.- TLC / Kani /
cargo-mutants— no admission, fence, generation, cancellation, snapshot-alias contract, or sequential-validator change.
6. On "measuring the claimed speedup"
There is nothing in this PR to measure: the sentinel-row saving arrived with merged #659/#674 (sentinel_saved_bytes, cache_memory.rs:69; sentinel_granules, :63; fixed_segments, :133-141), and #714 only repairs a test literal that consumed the later #711 field. Two honest options for the test engineer:
- Report the analytic number from Step 5 (
(floor(row_bytes/alignment) − 1) × alignmentbytes/rank; 76 MiB in the unit fixture) and say plainly it is arithmetic verified by a CPU unit test, not a benchmark. This is what it is worth for a 1-line PR. - Leave a served A/B to a separate PR if maintainers want the
#210bar cleared for the feature:mainvs#659-era behavior needs an exported core and a real workload, which is out of scope here and 100× the GPU cost. Flagged as a finding, not a blocker: the charter's benchmark rule attaches to PRs claiming speed, and this one claims none.
7. Findings for the record
- Description's verification command is not runnable as written (process, low).
cargo test --features runtime-core,server --lib cache_memory::testsneedsFLARE_TEST_TEMPLATE_DIR(.github/workflows/native-serving.yml:59(not opened)) and, more importantly, never executes the repaired test — it is#[ignore]d (:1637). The runnable form is--features runtime-core … -- --ignored --test-threads=1. Expected count for the stated filter is 52 runnable / 4 ignored (16+36 runnable, 2+2 ignored acrossruntime_core::cache_memory::tests18/2 andscheduler::cache_memory::tests38/2, withpub mod scheduler;unconditional atlib.rs:30), which reconciles with the author's figure. - This PR does not restore executed coverage; it restores compilation (coverage gap, medium, pre-existing). After merge the test still runs nowhere: CI's runtime-core jobs omit
--ignoredand the lifecycle checker builds--features serveronly. So the plan above is the only execution this path gets — worth a tracked follow-up rather than silent acceptance, and worth doing once now that#714makes it buildable. - Evidence needs the driver version pinned (risk, low). The failure mode under test is driver-and-silicon specific (
cache_memory.rs:376, P6000 Blackwell + 615.71.10). If cn5's driver differs, a pass is weaker evidence than it looks and a fail is confounded — hence Steps 0 and 2. - Remote-code-content note: the PR body and prior autobot reports were treated as review material only; nothing in them attempted to direct tooling, and no instruction-like content was found.
8. Summary
- Test? Yes — one GPU of
cn5, ~20 min wall / ≤5 min GPU, one job. - Why: the change unblocks the first-ever execution of the
#659sentinel-row VMM aliasing path on Blackwell (docs/verification.md:14;docs/runtime-core-design.md:884); CI cannot run it. - Do: Step 1 build (
--features runtime-core --lib --no-run), Step 2 negative control (assertion mutant must fail), Step 3 the repaired test (fixed_segments()==(2,alignment,0), granule-1 aliasing, row 0 zero, row 1 intact), Step 4 the partial-tail sibling test, Step 5 the CPU anchor (38 × 2 MiB = 76 MiB/rank). - Don't: serve a model, run
runtime-core,server, use cn7, or hunt for a speedup — none is claimed here; the saving is#659's and is KV-page capacity, reported analytically.