rt README: NVIDIA's host-visible allocation cost, next to the free hold
The planner's ruling on the pool trace: no reserve change, and the cost of a take longer than the pool's allocations is recorded as NVIDIA's. Figures: the r4 pool trace on the RTX 3090 (job m3-max-47374): Shared allocations on the consumer's threads 0.137 ms per MiB (253, 12,436 MiB, 1.71 s), Private 0.033 ms per MiB (123, 5,752 MiB); six Shared takes of 547-548 MiB at about 70 ms each; Shared takes past 16 MiB 1.46 s of the 210 s play. The RTX 2080's first-take probe: host-visible 64 MiB in 12.7-19 ms in every form (plain, device address, dedicated; cached or uncached).
This commit is contained in:
1 parent
34a40aedbb
commit
dcd21a647e
1 file changed
+7
@@ -280,6 +280,13 @@ after a quiesce.
|
||||
at its idle age, whatever the queues are doing, so a submit can meet a free and wait for the
|
||||
rest of it. `Metrics::allocations_freed` counts the frees, and
|
||||
`Metrics::submissions_during_frees` the submits made while one was in progress.
|
||||
- NVIDIA's Linux driver allocates host-visible memory at about 0.14 ms per MiB on an RTX 3090 and
|
||||
0.2 ms per MiB on an RTX 2080, in every form we tried (plain, with a device address, dedicated,
|
||||
cached or not), against about 0.03 ms per MiB for device-local memory on the 3090. A take longer
|
||||
than the pool's 16 MiB allocations allocates on the calling thread and pays it there: in one
|
||||
consumer's replay stream on the 3090, six Shared takes of 547 MiB took about 70 ms each, and its
|
||||
Shared takes past 16 MiB took 1.46 s of the stream's 210 s. The pool keeps no memory to avoid
|
||||
it; `Metrics::consumer_allocation_nanos` counts it.
|
||||
- On a full discrete card a Private block the consumer takes goes to another memory type, host
|
||||
memory where the card has no other device-local type, and the kernels that read a Managed
|
||||
buffer's device copy placed there read it across the host link:
|
||||
|
||||
Reference in new issue
Block a user