Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by HailLucifer666 on 2026-11-29T16:32:56Z.
Partially 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).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.