GPU: prevent pipeline starvation under constrained host commit #3426
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dexifried on 2026-11-29T23:12:23Z.
## 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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by upipibi on 2026-11-30T05:32:51Z.
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).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:52:21Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed