Files
reims-vgpu/docs
Anees Iqbal 2e5bda92d7 🐎 Zero a take's own piece while the host maps it
A take that grew the pool was carved only once the host said its piece was in,
and its worker zeroed it after that, so the host's add and the zeroing ran one
after the other on the take's path: on the 2080's gate walk the zeroing of
context 39's 560320 KiB take took 22.78 ms, and a 256 MiB add took 2.3 ms on
the 780M (11-19).

Now the pool's thread carves the take at its piece's first byte as it places
the piece, before it asks the host's add, and the take's worker zeroes the
carve while the host maps the piece; the take is still answered only once the
host said the piece is in. The zeroing's time counts as the take's zeroing
(pool-take-wait-zero-ns), and only the rest of its wait for the piece as its
growth (pool-take-wait-growth-ns and the pool-take-waited line), so the wait
codes' test checks the growth with the zeroing.

For the guest: a take that grows the pool is answered at its own piece's first
byte. Before, it took the first fit once the piece was mapped, which under a
race could be bytes another take freed meanwhile, or, with another context's
take carved first in the new piece, a further piece of its own.
2026-11-20 07:43:48 -08:00
..