Memory policy: VICTORY_KEEP_FREED keeps freed copies 300 s while 12 GB of RAM is free, whatever the process size #234
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#234
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@kekonn on GitHub · 2026-11-26 12:13 UTC · original
crates/victory-gpu/src/host.rs:389-412:keep_freed()is on unlessVICTORY_KEEP_FREED=0. While at least 12 GiB of physical RAM is free (avail_phys >= 12 * GIB), the idle lifetime isKEPT_MS= 300 s. That covers window copies (shadow.rs~2995), texture staging (texture.rs~525) and the pipeline library trim (pipeline/library.rs~379).The threshold is the PC's free RAM, not this process's size. On a 64 GB PC the process can grow to about 50 GB before anything is let go sooner. With
VICTORY_RESIDENCYoff (the default), commit headroom is not considered.An audit found no single unbounded leak large enough to explain the 35-46 GB of private memory the README reports. Retention like this, plus the capped pools (spare scratch 1 GiB,
send.rs768 MiB, snapshots 512 MiB, idle lists 256 MiB, staging 8×64 MiB), is the likely bulk. The placed-view shape growth fixed by #206 is the exception.Not a quick change. This trades memory against device-loss risk, so it needs measurement on real hardware. Options that reuse tested helpers:
shadow::let_go_idle, always compute the RAM band fromram_sample()(private vs commit limit, with hysteresis;host.rs~442-483), and apply the idle-time clamp even when no window budget is set.private*10 < commit_limit*7beforeram_idle_msreturnsKEPT_MS.A quick test: run once with
VICTORY_KEEP_FREED=0and compare private bytes and frame times.Related:
Generated by Claude Code
github-bot referenced this issue2026-11-26 14:00:52 +00:00