Files
reims-vgpu/scripts
Anees Iqbal 24a71cc68e 📝 runtime-dead now stops QEMU the right way, and that was not the bug either
`scripts/runtime-dead/`.

The zero-byte profile has an obvious suspect: QEMU leaving through
`qemu_system_killed` rather than returning from `main`, so the `atexit` writer
never runs. The script now stops it with a QMP `quit` — the shutdown that sets
the cause from inside the monitor and lets `main` return — falling back to a
signal only if the monitor does not answer.

**The `quit` went through, QEMU logged a clean exit, and the profile was still
zero bytes.** So the exit path is not the bug. The change stays because `quit`
is the correct way to stop it and the fallback costs nothing, but it is recorded
as a negative rather than a fix, which is the useful thing to write down.

Also ruled out this run: no coredump from any of the three attempts, and `/tmp`
is a 47 G tmpfs at 5 % with 1 % of inodes used.

That narrows the search space to something worth stating precisely, and the
README now does: **the writer ran.** Nothing but the profile runtime creates
that file and it opens truncating, so zero length means the handler was entered,
the `fopen` succeeded, and the write did not finish. The same binary in the same
directory on the same run writes a complete 4 310 352-byte table from the boot
script's probe invocations. The only difference is that the failing process ran
the device — live Vulkan instance, host-window thread, 30 seconds of guest work.
The other untested candidate is the toolchain: the README's baseline predates
this host's LLVM 22.

Verified: `bash -n` clean; a third live instrumented boot, driven 27 seconds,
stopped by QMP quit, which the run log confirms was the path taken.

Not verified: §5 of the guest-memory plan is still unmeasured. Three ruled-out
hypotheses and a precise statement of what is left is what this buys, not a
reading.
2026-08-07 16:22:26 +03:00
..