residency: read a single-string PagingFiles value (system-managed pagefile growth counted) #4066
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4066"
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 jebaczydow on 2026-11-30T15:26:01Z.
What it changes
pagefiles()incrates/victory-gpu/src/residency.rsasks the registry forPagingFilesasREG_MULTI_SZonly. On a system-managed pagefile, Windows can store that value as a singleREG_SZ(?:\pagefile.sys). Then the read fails, the pagefile list is empty andcommit_growth()is 0, soavailable_commit()equals the rawullAvailPageFileagain.available_commit()is what the memory guard has used since #2392.The change adds
RRF_RT_REG_SZto the type filter of the twoRegGetValueWcalls (size query and read). The parsing after the read is unchanged: it already splits on\0.How it was tested
PagingFilesunderHKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Managementis aREG_SZwith the value?:\pagefile.sys.cargo build --release --locked -p victorybuilds onc71899d9.c71899d9and have not measured a before/after there.cargo testfor the crate: not run. Thevictory-gpulib test target does not compile onc71899d9(with and without this change):host.rs:20302andhost.rs:20328call a function that takes 6 arguments with 5.Checked for overlap
pagefiles()reads the registry. Related: #339 and #2392 (merged), #2717, #3379.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by jebaczydow on 2026-11-30T19:47:33Z.
Still the case on v2026.11.30.03 (this PR is not in it).
On this PC the
PagingFilesregistry value is a singleREG_SZ(?:\pagefile.sys, system managed), notREG_MULTI_SZ. Two play logs from v2026.11.30.03 (Windows 11 10.0.26300, RTX 5070 Ti, 32 GB RAM) both show:residency: pagefiles: commit can grow beyond the limit of the moment ... pagefiles=[] commit_limit_mib=43124memguard: a compile is put off ... reason="the commit left would fall under its floor": 11 times in one run, 10 in the other, each with about 3.9 GB of free commit.The change here applies cleanly on top of v2026.11.30.03 (
residency.rsis the same as in v2026.11.30.01) and builds. I have not yet played with it on v2026.11.30.03, so I do not claim what it changes in the game.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.