From 6bf7e13e91c0b3731df403a057d40b8d958d7477 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 12 Nov 2026 13:50:00 -0800 Subject: [PATCH] RUNTIME_VERSION 2146: a device whose held imports cost every submission keeps at most 64 releasable imports resident The three commits before this one. On a device whose submission check found a per-import cost (pointer_imports_tax_submissions: about 0.45 us a submission per held import on the 780M), at most RESIDENT_MOST = 64 releasable imports stay resident; past it the residency thread wakes at once rather than at its 500 ms tick and releases the least recently read idle imports, paced. New counter WorkCounts::host_imports_released_over_most (api_signatures row). HOWTO.md and HostMemory::with_dma_buf describe the cap. Verified (on the branch): lavapipe (m3-max-22599) host_residency, pointer_residency, dma_buf_import_cycles, host_ram_dma_buf 32/32; Radeon 780M (m3-max-22634) the same modules 31/31, with the new device test past_the_most_resident_the_least_recently_read_import_is_released (most 2 over three buffers: exactly the least recently read released, the others read with no re-import, the released one's next blit reads a file write after one re-import). One release and re-import on the 780M: 37.5 us free + 153.6 us encode, ~0.19 ms. Lint green at the pre-stack base 7f1e5d7151 (m3-max-22547); development's checks cover the tip. --- crates/metal2vulkan/src/cache/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index ed8195850..382116434 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 508; /// changes no behaviour, and then updates that hash alone with the commit saying why, or changes /// behaviour and also bumps this version. The commit that bumps it says what changed; this comment /// keeps no history. -pub const RUNTIME_VERSION: u32 = 2145; +pub const RUNTIME_VERSION: u32 = 2146; /// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex, /// of the manifest, the build script, and exactly the files the crate roots' module tree compiles