Files
reims-vgpu/scripts
Anees Iqbal 92ce92f1b1 📝 The slab retention removes every block allocation the WebGL dial was making, and costs the guest nothing to keep them
x86 macOS / Linux Vulkan, macos-13, `gpu-load-probe` at `layers=8&boxes=6&verts=60000`,
four interleaved driven boots of one binary (on/off/on/off), 40 s windows, host
quiesced. `REIMS_VGPU_SLAB_RETAIN`:

```
                        on1     off1     on2     off2
slab_block events         0      396       0      419
  of which ev=alloc       0      198       0      210
vk_alloc_sites delta      -    128:8192MiB:208ms   -   128:8192MiB:187ms
draw_us/draw (median)  62.6     77.5    59.5     74.1
present_hz (median)     5.8      5.8     5.8      5.8
duty (median)          0.12     0.13    0.13     0.12
```

The churn is gone rather than reduced: **zero** block events in a 40 s window
against ~400, which is 128 fewer `vkAllocateMemory` calls, 8 GiB fewer bytes
asked for and ~200 ms of driver time returned per window. Per-draw cost is
~20 % lower and the two arms are disjoint at 2v2.

`present_hz` does not move, and is not expected to: this dial's guest burns
~1.1 cores across its vCPUs to produce six frames a second while the drain
worker sits at duty 0.12, so nothing this device gives back becomes a frame
here. It is the arm that measures the churn, not the arm that measures frames.

Not verified: the effect on a saturating load. The sustained-animation probe
allocates ~4.6 blocks a second against this dial's ~8, so the same change is
worth roughly half as much there and it has not been booted.

Also lands the reading that reframes the WebGL collapse, and the instrument for
the next step. `scripts/qemu-thread-census` over these four boots puts the guest
at ~112 % of one core spread across eight vCPUs with the drain worker at ~0 and
`qemu-main` at 11 % — so the collapse is the guest computing, not this device
being slow and not a vCPU spinning on a register. Whether that computation is
Safari on the GPU or a software rasteriser the guest fell back to is the next
question, and the page now answers it directly: the WebGL context reports its
vendor, renderer, unmasked renderer and version by fetching a path the host's
server has no file for, so the answer lands in the server log. There is no other
route — the guest has no developer tools, and no counter here can see a decision
the guest made before reaching this device.
2026-08-11 14:04:46 +03:00
..