Files
reims-vgpu/scripts
Anees Iqbal a6258c2b01 📈 The copying rails measured, and the number that looks like the answer is inflated
Component: `scripts/runtime-dead/README.md`. Documentation only — records the
first paired reading from the `--import-off` flag added in `cda0f2ff`, whose
commit body said the flag had not been run end to end. It has now.

The guard fired correctly on a real boot: `runtime-dead: confirmed
host_pointer_import=disabled_by_env`, exit 0, report written.

```
import on    3450 functions   1413 never ran   regions 53.65%   functions 61.13%
import off   3450 functions   1457 never ran   regions 52.50%   functions 59.72%
```

The first thing the diff produced was a wrong answer that looked like the right
one. At mangled-name granularity, 26 functions ran only with the import off and
70 only with it on, and 26 is a satisfying number to report — the copying rails,
named, including the whole `MapRefusal` and `GpuWritebackDecline` decline
machinery. It is inflated, for the reason this README's own generics note gives:
one entry per instantiation. `model/lru_memo.rs` executed 4 of its 10 functions
in *both* runs while contributing three mangled names to the "only off" set.

Per file, 20 files move at all, and the shape is the opposite of the headline:
the import reaches *more* code than the copying path does. `runtime/guest_ram.rs`
goes from 19 executed functions to 2, `engine/mod.rs` 84 to 71, `exec.rs` 41 to
37, `guest_window_regions.rs` 2 to 0. The copying rails are about ten functions
across six files — `objects/mod.rs` +3, `draw/mod.rs` +3, then one each in
`mapping_write`, `storage_flush/land.rs`, `decode/fifo.rs` and `pools/mod.rs`.

That does not make them a deletion, and the README says so: the plan this
instrument serves is explicit that they are the dGPU rail and the only rail on a
host without the extension. What changed is that there is now a driven boot
behind that rather than an argument.

`guest_ram.rs` collapsing 19 → 2 is also a second confirmation the override
took, independent of the `vk_caps` string the guard reads — worth having,
because the guard and the reading would otherwise share a single point of
failure.

Stated as not established, in the README and here: the two runs are two
different Safari drags, so a one-function delta on a file unrelated to importing
is as likely to be workload variance as a rail. Only the large deltas and the
ones whose file is about the import decision are worth trusting. A third run
would separate them and was not done. Nothing here touches arm64 or
Metal-direct, which this instrument does not cover at all.
2026-08-07 18:03:00 +03:00
..