Sampled slots: intersect readback marks with evicted indices before queueing wakes #3129

Open
github-bot wants to merge 1 commit from github-bot/gh-3129 into main AGit
Owner

@⁠Heldenkrieger01 on GitHub · 2026-11-29 20:10 UTC · original
Heldenkrieger01:t3/optimize-readback-eviction → main · +83 −24 · 1 files · 1 commits · open

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.

**@⁠Heldenkrieger01** on GitHub · 2026-11-29 20:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3129) `Heldenkrieger01:t3/optimize-readback-eviction` → `main` · +83 −24 · 1 files · 1 commits · open 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 20:12:58 +00:00
github-bot force-pushed github-bot/gh-3129 from 90de8c4560 to f96d5ba533 2026-11-30 14:25:39 +00:00 Compare
github-bot force-pushed github-bot/gh-3129 from f96d5ba533 to 8a91912199 2026-11-30 14:36:58 +00:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3129/head:github-bot/gh-3129'
git switch 'github-bot/gh-3129'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3129'
git switch 'github-bot/gh-3129'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3129'
git switch 'github-bot/gh-3129'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3129'
git switch 'main'
git merge --squash 'github-bot/gh-3129'
git switch 'main'
git merge --ff-only 'github-bot/gh-3129'
git switch 'main'
git merge 'github-bot/gh-3129'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3129
No description provided.