residency: read a single-string PagingFiles value (system-managed pagefile growth counted) #4066
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!4066
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@jebaczydow on GitHub · 2026-11-30 15:26 UTC · original
jebaczydow:regsz-pagefile→main· +5 −3 · 1 files · 1 commits · openWhat 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
On a system-managed pagefile Windows can store PagingFiles as one REG_SZ ("?:\pagefile.sys"), not as REG_MULTI_SZ. pagefiles() asked the registry for REG_MULTI_SZ only, so the read failed, the list came back empty and commit_growth() was 0. available_commit() (used by the memory guard since #2392) then equalled the raw ullAvailPageFile again. Accept both types in the same RegGetValueW calls. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>@jebaczydow on GitHub · 2026-11-30 19:47 UTC · original
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.