Files
reims-vgpu/docs
Anees Iqbal cf6bc1e7c0 🐎 Take Private blocks from the source on a worker per context
PRIVATE_TAKE was carried out on the context's lane. On metal2vulkan-rt each
take is one of rt's Private blocks, a driver allocation, and NVIDIA's driver
holds the device's other calls while it allocates. On an RTX 3090 a boot took 7
blocks of 256 MiB, 52.7 ms in all and 11.5 ms at most, each on the control
ring's lane, which held every context's next messages behind it.

A take of the source's now goes to its context's worker
(reims-vgpu.graphics-private-take), as POOL_TAKE's does. The worker takes the
block from the source and answers. A context's takes are answered in its own
order, so a take waits only behind its own context's earlier takes. A take that
its context's close, the device's reset or its release ended is never answered,
and the block its worker was taking goes back to the source. The device's
release waits for the workers, so none calls the source past it; a worker that
the exit gate parks counts as gone. Where the platform gives no Private blocks,
the host's pick is still answered at once on the lane. The source decides this,
never the driver or the device.

What the guest observes: only when PRIVATE_BLOCK comes. It may now come after
the answers to messages the context posted after the take. Its status, address
and length are unchanged. The kext waits for PRIVATE_BLOCK with no deadline, on
the thread whose create found no room, so no other wait changes.

The degradation counts carry the takes by cause:
- private-take-queued: a take that waited behind its context's earlier take;
- private-take-sourced: a take its worker took from the source, with
  private-take-sourced-us, the source's time for those takes;
- private-take-lane-us-most: the longest a take held the thread that carried
  it out.

No block is made ahead: a 256 MiB Private make holds an NVIDIA device for
6.5 ms (RTX 3090) to 8 ms (RTX 2080) on any thread, while 16 MiB units stay at
the baseline (a no-boot probe). Smaller blocks are the guest's change, in its
own commit.
2026-11-19 11:47:57 -08:00
..