rt README: the host-memory texture copy's time follows a discrete card's link state
The known gap for a texture over a buffer in host memory's import (a whole copy into an image of its own, because VUID-VkImageCreateInfo-pNext-01443 makes the image start undefined) gains the link figure the planner asked for when it ranked the consumer's scroll-step read (SCROLLQ) and closed it as this gap. On the RTX 5080 Laptop GPU idling at P8 the driver keeps PCIe at Gen1 x8; the runtime's own command buffers moved 553.5 MB in 362.4 ms (1.53 GB/s), so one 10,240,000-byte copy-in takes about 6.7 ms. In the 30 s scrolling step of guest walk m3-max-72689 the copies came to 534.8 MB in 52 copies of 20 textures, and 26 of the step's 50 GPU starts 8 ms or more after scheduling fell in 50 ms intervals holding such a copy of 10.24 MB or more. Documented Metal asks for no call before a CPU write to a Shared buffer reaches a texture over it, so there is no call to hold the copy for. Verified: the 26-of-50 count against the consumer's per-gap table for that step; 553.5 MB / 362.4 ms = 1.53 GB/s and 10.24 MB / 1.53 GB/s = 6.7 ms. The other figures are the consumer's reads of that walk. Docs only.
This commit is contained in:
1 parent
0d4d5728d4
commit
62e7af06e5
1 file changed
+9
-1
@@ -1143,7 +1143,15 @@ the Direct3D 11 texture's payload until it is freed.
|
||||
by address (20 steps, 5,969 presents in 481 s), these copies came to 4.67 GB, 97.2% of the
|
||||
walk's 4.81 GB of over-copies, every one over a no-copy buffer on a guest program's own pages.
|
||||
On average that is 9.7% of a 1080p frame's bytes a present, and from 0.44% to 45.7% a present in
|
||||
the steps that present more than once.
|
||||
the steps that present more than once. On a discrete card the copy's time follows the link's
|
||||
state. On the RTX 5080 Laptop GPU idling at P8, where its driver keeps PCIe at Gen1 x8, the
|
||||
runtime's own command buffers moved 553.5 MB in 362.4 ms (1.53 GB/s), so one copy-in of a
|
||||
10,240,000-byte texture took about 6.7 ms. At P0, P2 and P4 the same card's link runs Gen5 x8.
|
||||
In a 30 s scrolling step of a guest walk (job m3-max-72689) these copies came to 534.8 MB in
|
||||
52 copies of 20 textures, and 26 of the step's 50 GPU starts that came 8 ms or more after
|
||||
their scheduling fell in 50 ms intervals holding such a copy of 10.24 MB or more.
|
||||
Documented Metal asks for no call before a CPU write to a Shared buffer reaches a texture
|
||||
over it, so the runtime has no call to hold the copy for.
|
||||
- A texture over a buffer in a dma-buf's one import is the counted copy too on a device that
|
||||
offers no linear image for a dma-buf import without a dedicated allocation (Imported blocks).
|
||||
On the Radeon 780M (RADV) the external image query refuses the dma-buf handle with linear
|
||||
|
||||
Reference in new issue
Block a user