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!2717
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2717"
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?
@HailLucifer666 on GitHub · 2026-11-29 16:32 UTC · original
HailLucifer666:fix/memguard-commit-tiers→main· +396 −62 · 4 files · 2 commits · openPartially addresses #2319 and #2308 (fixes the
memguardbinary-cliff livelock; does not claim to fix the separate+9 GBcommit growth or warm submit-thread regression in #2319).What it changes
On 16–24 GB hosts under
v2026.11.29.01,memguard::decide()treatedVICTORY_COMMIT_FLOOR_MB(4096 MiB) as a binary hard refuse (Verdict::Commit) andmemguard::figures_now()read rawullAvailPageFileinstead ofresidency::available_commit()(#339). When free commit sat around ~2.1 GiB (#2319), every compile was refused indefinitely (0.1–0.2 FPS) even with 0 compiles running, severing Windows' managed-pagefile growth feedback loop.Built directly on existing
memguard.rs+compilemem.rs(Mutex<State>+Condvar+Estimator):Allow(>= 4096 MiBsoft floor), 1-at-a-timeThrottle([1024 MiB critical, 4096 MiB soft)), and hardCommitrefuse (< 1024 MiBcritical floor) to prevent unrecoverableptxasOOM.memguard::figures_now()now usesresidency::available_commit(&m)(still honoringVICTORY_COMMIT_GROWTH=0).VICTORY_COMMIT_FLOOR_MB=0disables only the soft floor; disabling the critical floor requires setting bothVICTORY_COMMIT_FLOOR_MB=0andVICTORY_COMMIT_CRITICAL_MB=0(withtracing::warn!).VICTORY_MEMGUARD_TIERS=0restores legacy binary 4096 MiB behavior. Invalid values logtracing::warn!.RECLAIM_REQUESTEDatomic consumed byhost::sweep()on the sweep owner thread (zero lock-order inversion).How it was tested
[Confirmed]:memguard::tests::issue_2319_soft_commit_band_throttles_instead_of_hard_refusingfailed on untouched829188e9(left: Commit, right: Throttle).cargo test -p victory-gpu --lib memguard:: -- --test-threads=1→ 10 passed, 0 failed.cargo test -p victory-gpu --lib compilemem::→ 13 passed, 0 failed (includes 4-thread soft-band 1-at-a-time serialization,Permit::droppanic-unwind, and bounded solo refusal).cargo clippy -p victory-gpu --lib --tests→ exit 0, 0 warnings in touched files. (Note:--all-features/diagnosticshas pre-existing upstream compile errors on829188e9atcopystat.rs:1349andhost.rs:9127, untouched.)Commit, (b) removing solo-progress upgrade incompilemem, (c) removingPermit::dropfinish()all verified red (exit 101) before restore.cargo testpassed for the crates it touches: yesChecked for overlap
trustno1-coder/VIctory-NVIDIAat829188e9formemguard/compilemem/#2319/#2308. Related: #2334 (touchesmemguard.rs, different scope).b43b8771a2tof50927f486View 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.