Files
reims-vgpu/scripts/boot-score
Anees IqbalandClaude 4210c0f07f scripts: score a boot on both halves, joined by the timestamp the censuses carry
Component: scripts/boot-score, a new log reader. Reads a fail log and prints one
line per boot; it reads a log and never this repository's source, which is the
whole licence for it to exist under `AGENTS.md`'s ban on source-scanning gates.

It exists because the two mistakes it avoids were both made on real boots.

**Joining by line ordinal drifts.** `drain_duty`, `gpu_span`, `window_publish`
and `store_routes` are emitted from different places and skip different windows —
an idle second costs `gpu_span` nothing and `drain_duty` a line — so pairing them
by position slides within a boot and pulls idle-desktop publishes into a driven
band. The ad-hoc harness that had been scoring driven Maps boots did exactly this
and reported ~31 fps; the same nine logs joined on `t` read **47-52**.

**Ranking on `us/draw` ranks half the change.** On the x86/Vulkan iGPU pathway
`gpu_span busy_us` per draw is the *larger* half — 10-12 µs against 9 µs of drain
CPU — and `(cpu + gpu) x draws/s` accounts for 95-100 % of every busy second
across nine boots of three builds, so the device is saturated, the halves barely
overlap and frames track their sum.

Hence the `occ` column, which is that product: near 1.0 says both halves are the
bottleneck and a microsecond off either converts; well under says something else
paces the guest. And hence `d/frame`, printed because frames are not comparable
across boots without it — `fps = 1e6 / (sum x d/frame)` and the second term is
what the guest chose to draw, which drifts between boots of one binary.

Verified against the boots the numbers above come from, including the
`REIMS_VGPU_PASS_CHURN=on` arm, where it reports the sevenfold GPU move
(9.25 -> 67.64 µs a draw) that made the render-pass boundary the ranking cost in
this device.

No Rust touched, so no clippy or test arm applies.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-16 01:09:48 +03:00
..