runtime_lane::index_pools::a_completed_handler_waits_for_no_pool_block_made_meanwhile
failed on the RTX 5080 (round 5ce05e1908, lane ln07): the handler ran 37.2 ms
after its command buffer completed, during a 50.5 ms making of the other
queue's index pool block.
What it waited on is the driver, not the completion path. A probe on the
5080 (NVIDIA 615.71.09; 40 rounds of the lane's draw, with and without the
validation layer, completion trace, b5080 entry poolwait-probe1) found:
- the making is nearly all vkAllocateMemory of the 254.7 MiB block, 3.1 to
35.7 ms beside another process's GPU work;
- in 25 rounds the scheduler thread's vkQueueSubmit of the first command
buffer was called during that allocation and returned 0.01 to 0.25 ms after
it, twice after the GPU had ended the batch (23.9 ms into a 29.4 ms making;
0.3 ms into a 3.7 ms one: the failure's shape). The runtime watches a batch
from its submission's return on, so it completed as the making ended;
- in the other 15 the submission returned before the allocation began, and
the handler ran during the allocation in all 15;
- in all 40, the handler ran 0.07 to 1.44 ms after the later of the GPU end
and the submission's return;
- raw, another thread's vkWaitSemaphores (no wait), vkGetSemaphoreCounterValue
and vkGetFenceStatus took at most 0.03 ms during allocations of that size
(1.9 to 213.6 ms): host waits are not held, submissions are.
So the claim is now exact: the lag counts from the later of the GPU end and
the kernel end time (the last vkQueueSubmit's return), and a round tells only
where both fall in the making's first half. One round told about one time in
four on the 5080, so the test runs 12, each with a queue of its own, and
prints each. The driver's hold of the submission is a known gap
(docs/FAST-PATHS.md), and gpu_pools.rs says what a making costs there.
(cherry picked from commit 438b4ec928dc1d44d2003a20537fea77a768d731)