16 GB PCs: idle host lists sized by the memory shared with the card, refused upload buffers retried after letting go of what is kept #255
No reviewers
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!255
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-255"
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?
@Zayfway on GitHub · 2026-11-26 13:22 UTC · original
Zayfway:memory-relief-16gb→main· +132 −3 · 4 files · 1 commits · openOn a PC with 16 GB of RAM, the memory Windows lets the card share (
QueryVideoMemoryInfonon-local budget) is 7,488 MiB. In the first mission it fills up. NVIDIA then refuses upload buffers, a host list fails to close withE_OUTOFMEMORY, and the run ends.Most of what sits there is kept on purpose:
This PR lets go of these when that memory runs short. Nothing changes while there is room.
Change
list.rs: the idle pool's limit follows the shared budget, read every 250 ms:Lists over a new, lower limit are freed at once.
VICTORY_LIST_POOL_MOST=<n>fixes the limit.host.rs: whenupload_bufferis refused, it lets go of the idle lists, the spare scratch chunks and the empty staging blocks (pool::relieve_staging), then tries once more. A warning says what was freed and whether the retry worked.pool.rs/texture.rs:relieve_staging().Measurements
PC: RTX 3060 12 GB, Ryzen 7 5700X, 16 GB RAM, Windows 11, Series S profile.
Build and settings:
list.rs/upload_buffer. A run from the start to the first mission takes about 25 minutes there, and I have not repeated it on0dec5dc.CARD_BUFFERS_MIN_KB=64andCARD_BUFFERS_MB=1536, as in #225.no upload buffer0x8007000E, then "a host command list did not close (0x8007000E)": run endedSHADER_LOOP_LIMIT=4096,JOIN_PARTS=1So this turns a certain crash at that point into a slow but live game. It does not make the memory fit: the refusals keep coming. The next thing to look at is what else lives in that memory, such as windows of title memory, which are about 4.7 GB at that point.
Tests
cargo test -p victory-gpu --lib list: 13 passed, 3 ignored.cargo clippy -p victory-gpu --lib -- -D warnings: clean.0dec5dc.🤖 Generated with Claude Code
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.