GPU: prevent pipeline starvation under constrained host commit #3426
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!3426
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3426"
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?
@dexifried on GitHub · 2026-11-29 23:12 UTC · original
dexifried:fix/32gib-pipeline-memory-admission→main· +990 −857 · 34 files · 15 commits · closed without merging## What it changes
On a 32 GiB host with an 8 GiB NVIDIA card, title loading and concurrent pipeline creation compete for commit. In the tested .04 run, the memory guard deferred new compiles while screen-pass waits and missing pipelines left the world black.
This retains the existing memory guard rather than lowering or disabling it.
How it was tested
warm --usedpath with locally recorded pipeline recipes/early list, matching play shader switches and sampler ordering,VICTORY_WARM_SHARED=1,VICTORY_WARM_LIBRARY_THREADS=4, and--jobs 4, with the game closed. No cache included.victory-gputests on the patched .04 tag: residency (8), memguard (7), compilemem (10): 25 passed. Release build passed. The identical patch applies cleanly to current main; staged asset policy passed. Full crate/workspace suite and runtime testing of the rebased head have not been performed.Checked for overlap
The intent is to offer a small integrated, hardware-tested alternative and reproducible evidence, not claim these individual ideas are new. Happy for maintainers to take only the non-overlapping parts or use the results to evaluate existing PRs. AI-assisted implementation and validation.
@upipibi on GitHub · 2026-11-30 05:32 UTC · original
Test report for #3426 (head
609376d1), merged onto main41adb551. Synthetic tests only: no title run, no game files, so this does not show the world loading on a 32 GB PC.Setup: RTX 3070 8 GB, driver 621.40, 32 GB RAM, Windows 11 (10.0.26100), rustc 1.98.1.
The two new tests and the changed
worker_counttest: 3 passed, 0 failed, 3/3 runs. They are logic tests and make no device.Negative controls, one line changed each:
memguard::defer_oomno longer checks forE_OUTOFMEMORY(every failure is put off)allocation_failure_is_retryable_but_invalid_argument_is_notmemguard.rs:264:!super::defer_oom(&invalid)residency::admission_commitcounts page-file growth on limited hosts tooconstrained_hosts_do_not_spend_unallocated_pagefile_growthresidency.rs:434: left 96636764160, right 2147483648cargo test -p victory-gpu --lib --locked, three runs of each tree in turn41adb551Every failure is one main has too:
shader_cache::tests::every_switch_of_the_translator_is_in_the_keyin all six runs, andhost::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue,host::card_steps::tests::places_written_after_sending_are_learnedandhost::menu::tests::a_change_is_saved_at_once_however_the_game_was_startednow and then on both trees. None is in this PR's code.Overlap: #3474 (head
92fa4133) is aimed at the same stall and also changesmemguard.rsandpipeline/make.rs. A trial merge of the two heads conflicts incrates/victory-gpu/src/pipeline/make.rs, so whichever goes in second needs a rebase. Both make a pipeline that was refused for memory retryable; this one also has limited hosts count only current commit, where #3474 lets one compile through under the floor.Not tested: the memory guard in a title, and the worker and cache sizes on a limited-RAM host under load.
Tested with the help of Claude Code (Claude Fable 5.2).
Pull request closed