Residency: count what the pagefiles can still grow by as commit left (port of VIctory-NVIDIA) #277
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!277
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-277"
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?
@LuvAbyss on GitHub · 2026-12-01 08:36 UTC · original
LuvAbyss:pagefile-growth→main· +145 −75 · 2 files · 68 commits · closed without mergingWhat
The layer decides "host memory pressure" from what is left under the commit limit of the moment. Windows raises that limit by growing a system-managed pagefile, so a PC with plenty of free RAM was told it is short of memory: texture prefetch, spare blocks and scratch chunks are then cut down. This counts what the pagefiles in use can still grow by as commit left.
e8e2dfcd, code unchanged, its author kept.K32EnumPageFilesW). The port took?:\pagefile.systo be on the system drive; on this PC it is on D:.VICTORY_COMMIT_GROWTHjoins the launcher's list of switches that do not change a shader.Whatever cannot be read (registry, volume, another path form) counts as no growth.
VICTORY_COMMIT_GROWTH=0is the limit of the moment alone, as before.Why
RTX 3080 10 GB, 32 GB RAM, Windows 11, system-managed pagefile: all 58 logs of long runs up to 2026-11-30 enter pressure, mostly about a minute in, with 7 to 17 GiB of RAM free and 0.2 to 4 GiB left under the limit of the moment. None says it cleared; one of them is a 37-minute session.
What it does not do
Tested
cargo clippyboth ways as in CI,cargo xtask policy, all workspace tests outsidevictory-gpu(642) pass. New unit tests cover the registry entries, the per-volume room and the floor; the 768 MiB exit has none.watchtests ofvictory-gpufail at random on this PC, with and without this change, which touches nowatchcode. Test program run directly, the two builds by turns: plain297f58afailed 12 of 30 runs, this branch 5 of 30 (one or twowatchtests each, not always the same, nothing else; 40 each were planned, stopped early, with one more failure of plain297f58abehind these). Throughcargo testit looked the other way round, plain297f58apassed 12 of 12 and this branch 3 of 4, and why is not known.🤖 Generated with Claude Code
@Aniseto on GitHub · 2026-12-01 09:20 UTC · original
Ran the
residency::testsmodule atd7229fe8on an NVIDIA Blackwell desktop part with 16 GB of VRAM.Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, detached worktree at the exact PR head, own
CARGO_TARGET_DIR, no local patches.All seven unit tests in that module pass here, including the new pagefile-registry, per-volume growth, commit-limit floor and pressure-recovery cases. The description notes that the
watchtests of this crate fail at random on its host with and without this change; those were not run here, so this is only theresidencymodule.Not tested: the full workspace suite, the
watchgroup, a title run, a PC with several pagefiles or volumes, Windows actually growing a pagefile during play, AMD adapters, Wine, release profile, game data.AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
@bannnned on GitHub · 2026-12-01 09:52 UTC · original · reviewed
Two suggestions for keeping texture admission consistent with the currently available commit while still accounting for pagefile growth in the pressure heuristic.
@ -51,3 +232,3 @@&& let Some(status) = memory_status(){AVAILABLE_COMMIT.store(status.ullAvailPageFile, Ordering::Relaxed);AVAILABLE_COMMIT.store(available_commit(&status), Ordering::Relaxed);@bannnned on GitHub · 2026-12-01 09:52 UTC · original
[P2] Use current commit for new staging blocks
With 600 MiB available now and 20 GiB of potential pagefile growth, this makes
allow_staging_growth(false)pass its 1 GiB reserve check before Windows has grown the file. If growth is slow, speculative staging allocations can compete with the title for the remaining commit.Could we keep the current commit sample for
allow_staging_growth(false)and use the growth estimate for the pressure heuristic? A regression case with 600 MiB of current commit and positive estimated growth should still reject a new speculative staging block.@ -18,0 +52,4 @@static GROWTH: AtomicU64 = AtomicU64::new(0);let now = crate::host::coarse_ms();let next = NEXT.load(Ordering::Relaxed);if now >= next && NEXT.compare_exchange(next, now.saturating_add(5000), Ordering::Relaxed, Ordering::Relaxed).is_ok() {@bannnned on GitHub · 2026-12-01 09:52 UTC · original
[P3] Refresh the growth estimate when the system commit limit changes
The current commit sample can already reflect an expanded pagefile while
GROWTHstill includes those same bytes. For example, after a 1 GiB expansion the estimate can overstate the remaining capacity by 1 GiB until the next five-second refresh.Could we invalidate the cached growth estimate when the observed system commit limit changes, and use current commit while the estimate is being refreshed?
@readmet3xt-lab on GitHub · 2026-12-01 11:38 UTC · original
Checked: nothing harmful in it, it merges and passes the lint check. Because it changes a run at default settings (or code on the submission path), it is not merged to main directly: it is on the batch being tested for the next release, as one commit with you as its author. Nothing is needed from you now; the result of the run will be posted here.
Pull request closed