gpu: coalesce concurrent failed low-memory window searches #3293
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3293
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3293"
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?
@spk-c on GitHub · 2026-11-29 21:22 UTC · original
spk-c:perf/upload-reservation-backoff→main· +54 −9 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCWhat it changes
The one-second backoff in
upload::reservechecks an atomic before VirtualAlloc2, so simultaneous requests can enter expensive searches of a full address window. The cooldown also starts before the potentially long failed search.Serialize only the slow fallback search and start the cooldown when a failure completes. Early and pooled allocations remain outside the new mutex. Successful fallback searches may now queue behind one another; the trade-off needs measurement.
How it was tested
cargo testpassed for the crates it touches: no, not yet run. Added tests for a slow failed search and concurrent callers.victory-loader::unwind_copyis unused, outside the changed file. No successful test run is claimed.cargo test -p victory-gpu upload --locked, then compare low-window warnings, successful allocation latency, p95/p99 and worst frame time on the same streaming route.Checked for overlap
AI assistance
Prepared with AI assistance; gameplay validation and human review remain pending.
VirtualAlloc2never returns for the 3977 MB reservation when no gap below 128 GiB fits it (TITLE_TOP_BITS = 37) #3234