From c2088436aada8250d19ea8fd9afbb4c994e60cfa Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 16:09:59 -0800 Subject: [PATCH] Runtime README: the 780M import-cost row names its memory measure 7d8aabed34 gave the Managed arm's extra memory as "device memory", but the figure is the runtime's gauges of its own Shared and Private memory (2.3 to 2.5 GiB more). The driver's own total of device memory also counts the no-copy arm's imports, which are the guest's own pages, and reads about 1.4 GiB more (2.36 and 2.25 GiB against 3.66 and 3.69 GiB). The column and the closing sentence now name the gauges and give the driver's totals beside them, so the two figures do not read as a contradiction. The figures are from the consumer's runs, jobs m3-max-68988, m3-max-69040, m3-max-69016 and m3-max-69073. Docs only. --- crates/metal2vulkan-runtime/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 1905a5f41..68116db5b 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -624,14 +624,16 @@ dma-bufs. On the other answer, given by a probe for this measurement alone, the buffers instead, and about 120 imports are live at the most, one of them a dma-buf. First run, then second: -| Guest's buffers | Imports live at most | Time in each `vkQueueSubmit2` | Submitting thread's CPU time | Scored pass | Score | Device memory at peak (Shared and Private) | Jobs | +| Guest's buffers | Imports live at most | Time in each `vkQueueSubmit2` | Submitting thread's CPU time | Scored pass | Score | The runtime's Shared and Private memory at peak, by its gauges | Jobs | |---|---|---|---|---|---|---|---| | No-copy | 802, 795 | 0.832, 0.803 ms | 12.99, 12.74 s | 174.4, 172.9 s | 21,711, 21,996 | 988, 821 MiB | m3-max-68988, m3-max-69040 | | Managed | 118, 148 | 0.119, 0.114 ms | 2.34, 2.29 s | 162.4, 163.3 s | 22,164, 22,003 | 3.31, 3.34 GiB | m3-max-69016, m3-max-69073 | Between the arms' means, the submitting thread's CPU time differs by about 10.5 s and the scored -pass by about 10.8 s; the score differs by 1.1%. The Managed arm holds about 2.3 to 2.5 GiB more -device memory at its peak. +pass by about 10.8 s; the score differs by 1.1%. By the runtime's gauges the Managed arm holds about +2.3 to 2.5 GiB more Shared and Private memory at its peak; that is new host memory, since the +no-copy arm's imports are the guest's own pages. The driver's own total of device memory counts +those imports, and reads 2.36 and 2.25 GiB against 3.66 and 3.69 GiB, about 1.4 GiB more. A texture over a buffer in a dma-buf's one import (`import_dma_buf`) is in place, as over a Shared block of the runtime's own (Textures), on a device that offers a linear image for a