perf(gpu/submit): always lock-free pre-filter unchanged refresh spans #390
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!390
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-390"
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?
@Androtim on GitHub · 2026-12-03 12:59 UTC · original
Androtim:perf/submit-lockfree-nothing-new→main· +407 −125 · 4 files · 2 commits · merged 2026-12-03 13:47 UTCSummary
Eliminates the legacy \FEW = 32\ pre-filter bypass on the submit thread so large refresh batches (e.g. hundreds to thousands of buffer views per submission) always filter out provably unchanged spans lock-free before querying write-watches or waking worker chunks.
Changes
- Remove the FEW = 32 bypass in Batch::refresh_front and Batch::flush_all (and pre-filter Batch::refresh_ahead) via shared Batch::filter_unchanged and Batch::ask_ahead_and_filter helpers so provably clean spans never trigger ask_ahead or wake wide_each_scoped workers. - Optimize Shadow::gaps_nothing_new with a whole-range lock-free check before locking self.pending, enforce crate:⌚:light() in Shadow::nothing_new_with, and evaluate ranged_lockfree lazily inside PageEpochs::all_within_with only after published/ahead and copied-epoch checks require it. - Add unit tests in shadow::hash_pool_tests and host::refresh_tests covering clean/dirty/unwatched/pending/ranged_seq-changed pre-filtering above 32 spans.github-bot referenced this pull request2026-12-03 13:04:55 +00:00
@Androtim on GitHub · 2026-12-03 13:33 UTC · original
Triage (
0b700caa, CIcheckPASS):#282comment7379381558):VERIFIED CLEAN (0 P0, 0 P1).--releaseA/B vsmain(69d73a85) showing win/non-regression with0crashes/DRED. Ready to merge immediately once posted!