Memory guard: a pipeline put off again and again is made on a lower commit floor #2886
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!2886
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2886"
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?
@gabrielecabrini on GitHub · 2026-11-29 18:33 UTC · original
gabrielecabrini:fix/memguard-starved-pipelines→main· +903 −825 · 34 files · 11 commits · openWhat
The memory guard puts off a driver compile while it would leave commit under 4096 MB (
VICTORY_COMMIT_FLOOR_MB), and the pipeline is tried again a second later. When free commit stays under that floor for minutes, every new pipeline is put off for good: its draws are dropped at every frame, with no end.Evidence
Linux run, Proton Experimental, i5-14600KF, 31 GB RAM + 8 GB swap, RTX 4070 SUPER, Series S, 2026-11-29:
Fix
pipeline/make.rs:Pendingcounts how many times its compile was put off (put_off). From the third put-off on, its build runs insidememguard::starved_compile. That is about three seconds of draws still asking for it.memguard.rs:floors_now()gives this thread's floors: the run's floors, with the commit floor lowered for a starved build toVICTORY_STARVED_COMMIT_FLOOR_MB(default 1024).catch_unwindleaves the worker on the ordinary floor.compilemem::begintakesfloors_now()instead offloors().Tests
memguard::a_starved_compile_has_the_lower_commit_floor:pipeline::make::a_pipeline_put_off_again_and_again_is_made_on_the_starved_floor: the lower floor holds for the starved build only.memguard::a_starved_build_that_panics_gives_the_floor_back.cargo xwin):memguard::8 pass;pipeline::make::30 pass;a_waiting_draw_raises_the_worker_making_its_pipelinefails with and without this change, onmaintoo.clippy -p victory-gpu --all-targetsreports nothing in the changed files.@Lyrnc on GitHub · 2026-11-29 23:20 UTC · original
Tested on an RTX 5080 + 9800X3D with 32 GB RAM and a system-managed page file. Series S, DLSS Quality, FG and RT off, standing still in the world, 300 s per run, all on
829188e9. Cold means the driver pipeline cache was deleted first. The columns are fps, compiles put off, and pipelines failed with0x8007000E.829188e9On this PC, free commit sits at 0.3–2 GB in the world, and #2392 is what lifts it over the commit floor. Even with #2392, free physical memory stays under the 1 GB soft floor. The lower floor here for pipelines put off again and again is what gets those through. Together they fix the cold-start stall; alone, neither does. The default-off alternative and its numbers are in #3347.
AI use: Claude Code (Claude Opus 5.5) ran these runs and wrote this comment.
@Lyrnc on GitHub · 2026-11-29 23:26 UTC · original
A note on the method above: the builds shared one cargo target dir, and that turned out to leave out a branch's victory-shader changes when the checkout's files were older than the last build. Every change that matters here (
memguard.rs,compilemem.rs) is in victory-gpu and was compiled into these builds, so the guard numbers stand. #2886's own victory-shader commits were not in its build. They don't affect the compile admission.b50bc1a33cto0ce44ecb04View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.