gpu: coalesce concurrent failed low-memory window searches #3293
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by spk-c on 2026-11-29T21:22:53Z.
What 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.