rt README: the yield covers the block-maker thread's own calls, not a long take's
What: the NVIDIA hold known gap now names what the block-maker thread's wait covers (its 16 MiB unit makes, the fixed-size internals, the frees of idle allocations and of imported and exported blocks) and what it does not (a take longer than a unit allocates its own length on the consumer's thread with no wait, and that allocation is freed in one call of its whole length); the standalone figure cited is the 16 MiB unit's row (75.3 ms back to back, 20.6 ms with the wait), rt's unit, instead of the 64 MiB row. Why: the planner's scope note on Pool::take/Pool::own (a long take is the consumer's single call). Docs only.
This commit is contained in:
1 parent
ef875741cc
commit
9e250379d3
1 file changed
+16
-14
@@ -876,20 +876,22 @@ planes' first use, so `Surface::wait_until_ready()` returns at once.
|
||||
back hold it through all of them. So after each of its allocations and frees the block-maker
|
||||
thread waits until every `vkQueueSubmit2` call of rt's that was inside the driver as its call
|
||||
returned has returned, and with none inside it goes straight on: a submit waits out at most one
|
||||
of its calls, the one it met. `Metrics::maker_memory_calls` counts those calls,
|
||||
`maker_yields` the ones after which it waited, and `maker_yield_nanos` the time. A single call
|
||||
still holds a submit for its own length, and a take that allocates on the consumer's thread
|
||||
makes its one call with no wait. In a standalone program on an RTX 3090 (driver 620.70.06),
|
||||
giving back 1 GiB of Shared memory in 64 MiB frees made back to back held the worst submit for
|
||||
216 ms, and with this wait after each free for 72 ms; from 2 to 64 MiB units the worst hold
|
||||
with the wait was 0.90 to 0.96 times the longest single free, and with no submit made the wait
|
||||
added nothing. In a 336-second guest walk on an RTX 3090 (driver 620.70.06, rt at 7096fa7de3,
|
||||
whose block-maker thread made its calls back to back), every submit of 5 ms or more overlapped
|
||||
such calls on other threads for 97 to 100% of its length: a 64 MiB Shared allocation made inside
|
||||
a take held one submit for 14.2 ms; frees of imported blocks, 0.4 to 2.9 ms each and 52 in one
|
||||
second, held four submits for 5.2 to 6.9 ms; and the pool's trim after the workload, five 64 MiB
|
||||
frees of 7.7 to 13.9 ms made back to back, held one submit for 48.7 ms. A take that leaves its
|
||||
class no wholly
|
||||
of its calls, the one it met. Its calls are the makes of the pool's 16 MiB units and of the
|
||||
runtime's fixed-size internals, and the frees of idle allocations and of the imported and
|
||||
exported blocks given back. `Metrics::maker_memory_calls` counts them, `maker_yields` the ones
|
||||
after which it waited, and `maker_yield_nanos` the time. A single call still holds a submit for
|
||||
its own length: a take longer than a unit allocates its own length on the consumer's thread,
|
||||
with no wait, and that allocation goes back to the driver in one free of its whole length. In a
|
||||
standalone program on an RTX 3090 (driver 620.70.06), giving back 1 GiB of Shared memory in
|
||||
16 MiB frees made back to back held the worst submit for 75.3 ms, and with this wait after each
|
||||
free for 20.6 ms; at every unit length measured the worst hold with the wait was 0.90 to 0.96
|
||||
times the longest single free, and with no submit made the wait added nothing. In a 336-second
|
||||
guest walk on an RTX 3090 (driver 620.70.06, rt at 7096fa7de3, whose block-maker thread made its
|
||||
calls back to back), every submit of 5 ms or more overlapped such calls on other threads for 97
|
||||
to 100% of its length: a 64 MiB Shared allocation made inside a take held one submit for
|
||||
14.2 ms; frees of imported blocks, 0.4 to 2.9 ms each and 52 in one second, held four submits for
|
||||
5.2 to 6.9 ms; and the pool's trim after the workload, five 64 MiB frees of 7.7 to 13.9 ms made
|
||||
back to back, held one submit for 48.7 ms. A take that leaves its class no wholly
|
||||
free unit also sets the block-maker making the class's next allocation at once, so the take's
|
||||
own first submission can wait out that allocation: on the same card (rt at ac1896537f) a
|
||||
16 MiB Private allocation of 661 µs held the next submit for 603 µs, and on an RTX 2080 one of
|
||||
|
||||
Reference in new issue
Block a user