Sampled slots: intersect readback marks with evicted indices before queueing wakes #3129
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3129"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Heldenkrieger01 on 2026-11-29T20:10:10Z.
Related to #2608, which changes readback timing and queue priority. This reduces work per completed sweep when many marks and few wakeable slots intersect. Every sampled slot still gets its last-seen stamp. The eviction bitset and map share a lock so a matching index queues all its heaps.
Synthetic CPU benchmark, 1,048,576 slots, eight matching evictions, median of 31 timed sweeps after four warmups. Dense marks went from 4.02 ms to 1.31 ms. With 128 marks the extra scan raised the time from 23.9 µs to 53.5 µs. Frame rate was unmeasured.
All three sampled tests passed in an isolated rustc harness. Staged asset policy passed. The Windows GNU crate test executable built but exited with STATUS_ACCESS_VIOLATION even on --list.
Reviewed with sol-loop: 2 rounds with GPT-6.2-Sol. Sol verdict: approved.
Created with GPT-6.2-Astra in the Codex harness.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.