Files
reims-vgpu/docs
Anees Iqbal a5a2328fa5 🐎 Walk a buffer alone on its ring on its queue's service thread
A compute buffer longer than the service thread walks itself (2 KiB) went to
its queue's lane, whose thread was woken for it as it was begun. Over the
Metal compute pass on the RTX 5080 Laptop host, those 4127 buffers waited
73.7 us at the mean (90.3 at the median) from the begin to their walk's start,
nearly all of it the lane thread's wake, where one walked on the service
thread started 3.0 us after its begin; their guest commit to rt commit took
204 us at the mean against 80. The lane is there so the queue's next buffers
are taken beside a long walk, but most of these had nothing behind them: the
guest published the next one after the walk in 7085 of 10690 cases.

A buffer of up to 8 KiB whose commit would wait for nothing is now walked
and committed on the service thread when the guest has published nothing
behind it on its ring as it is taken (QueueClaim::nothing_published), and no
lane thread is woken for it. A walk of 2 to 8 KiB took 51 to 72 us at the
median there, about one wake: what a buffer published during it waits for its
take. Its commit comes after this one's in its turn either way. The claim is
let go through the walk as for a short buffer, so a buffer that asks for its
CB_SUBMITTED behind it is answered at its doorbell.

Ring messages, events and their order are unchanged; only which library
thread walks such a buffer changes.
2026-11-21 02:55:59 -08:00
..