RUNTIME_VERSION 1997 and the runtime-sources pin for 256 kept variants

The landed kept-variants change (exitcrash, steelbrain/kept-bound d6202a9741, 8 commits) changes what a
run of an unchanged artifact does:
- pipeline/kept.rs holds 256 released variant instances (was 16), so a state made again within the
  working set takes its Vulkan objects and pipelines back with no driver call. The consumer's arm64
  guest (macOS 26.6.2, CoreAnimation's RenderBox) made 8455 repeats of 255 keys per cold boot at about
  1 ms each, 98% of it in this runtime; an LRU replay of that boot's log holds 157 repeats at 16, 8308
  at 128 and all of them at 256 (largest reuse distance 223).
- A sampler refused at the device's SamplerLimit first evicts the least recently released kept instance
  that holds samplers, then retries (in a program's call only).
- settle_device_maps settles graphics pipeline libraries first, then modules, layouts and sampler sets,
  so an evicted instance's samplers are freed in the same settle (a linked pipeline held its layout and
  its samplers past it; found by the sampler test on lavapipe).

Verified by exitcrash, release builds, base = the tests at KEPT 16 with the old product files:
- tests::kept_variants::released_states_made_again_take_their_variants_back and
  a_sampler_past_the_limit_evicts_a_kept_instance_first fail at base and pass at the fix on M3 MoltenVK
  (13002), lavapipe (12978) and the 780M RADV PHOENIX (12999).
- Repeat create median, base -> fix: M3 142-151 -> 26-29 us; lavapipe 73-107 -> 31-40 us; 780M 87 ->
  35-38 us (trivial functions, made on the creating thread).
- Memory per kept instance (trivial functions): lavapipe 333 KiB RSS, 780M 1022 KiB GTT, M3 792 KiB
  physical footprint; at 256, about 83 / 256 / 198 MiB.
- fmt, clippy (plain, m2v_gpu, m2v_cpu_icd), rustdoc, and the runtime kept/sampler/memo tests 133/133
  at 8667e0874c (msi 12986); later commits are kept.rs doc text only.
Pin recomputed with pin-compute.py; signatures --check and the generated docs unchanged.
This commit is contained in:
Anees Iqbal committed 2026-11-09 21:32:42 -08:00
1 parent 0a19fdf7ca
commit 63ccc9da0d
2 files changed
+2 -2

No files matched your search

@@ -1 +1 @@
a12bb2a73165cb22feb7fb45a7c4a555e9a1f7bf7a25491d8acacb1534adab7d
c6cd9f4633b158c32016a5f98f1dadad0c6a22eee2fd22b98add79a96d97b995
+1 -1
View File
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 497;
/// 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 = 1996;
pub const RUNTIME_VERSION: u32 = 1997;
/// 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