Files
reims-vgpu/docs
Anees Iqbal 7d5e8e2747 🐎 Zero a freed block's bytes after its free, off the take's path
Zeroing was 91% of a take's wait on the 3090's desktop walk (220.0 ms of
242.0 ms in all, m3-max-53890): each take zeroed the bytes an earlier block
of its piece had held, on its own worker, before its answer.

A free now hands the freed block's bytes to the pool's zeroer
(reims-vgpu.graphics-pool-zero), when another block still holds the piece.
The zeroer zeroes them 64 KiB at a time, with the pool's lock let go of, and
records them as reading zero. A later take over them leaves them as zeroed.
An emptied piece is never zeroed, because it may go back whole. A release
never waits on queued bytes: they are dropped.

A take over bytes still queued zeroes them itself, as before, and the
zeroer's job skips them. A take over the 64 KiB the zeroer is zeroing at
that moment leaves those bytes to it, zeroes the rest, then answers once
they are done: the zeroer's writes to them may still land. Every take still
reads zero.

Two counts are new: pool-zeroed-after-free-bytes and
pool-take-zero-skipped-prezeroed-bytes.
2026-11-19 14:38:38 -08:00
..