Files
reims-vgpu/scripts/perf-ab
Anees IqbalandClaude bfa84e7407 ✨ The A/B loop that scores frames, because the hang loop scores kernel resets and neither can be read as the other
`scripts/perf-ab/perf-ab.sh` — new, no crate change.

Every performance constant in `AGENTS.md` was priced on a discrete NVIDIA host.
This machine is now an Intel Arrow Lake iGPU, so the whole verification section's
timings need taking again here, and there was no harness for it: `hang-bisect.sh`
is the same boot loop but scored on kernel `GPU HANG` lines.

This is the boot loop scored on the census. It reuses the race-avoidance the
sweep scripts already carry — `stop-previous-vm.sh`, waiting on the fail log
rather than on ssh, `guest-authorize.sh`, `wait-for-desktop.sh`, a bracketed
`pkill` pattern, arms exported and never passed as argv — and adds the four rules
that belong to scoring rather than to booting:

- arms are interleaved round-robin, because a macos-13 boot latches one of two
  compositing regimes for its life and the *rate* it picks the slow one drifts
  across a day;
- `present_hz` and `offered_hz` are both columns, because the presenter passes
  what it is offered and one without the other cannot say which moved;
- `regime` is a column and the band between the two populations reports `?`
  rather than being binned, so a boot that lands in the empty gap is looked at;
- `probe` is a column, because a bursty interaction probe and a sustained one
  rank this device's costs in a different order.

The per-window census fields are summed and the per-second ones taken as a
median — a mean would let one census second inside a stall outweigh a whole
healthy boot. A `guest kernel panic` in the boot's own stdout overrides the
regime, because it can land after the probe has already reported success.

# Verified

`bash -n` only. No arm has been run through it yet; the first use is the
macos-13 baseline this exists to take.

Also in this commit: nothing else. The 25 s `FENCE_TIMEOUT_NS` probe run
alongside it was restored to 5 s by hand, and its result — negative, the GPU
genuinely wedges and the kernel's own detector agrees — is in `kb/`.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-12 10:12:44 +03:00
..