GPU: a list gives its scratch chunks back when its submission lands, not after the bury lag (546 -> 0 MB in the memory bench) #474
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!474
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-474"
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?
@simbaui4life on GitHub · 2026-11-27 16:17 UTC · original
simbaui4life:fix/scratch-at-landing→main· +896 −4 · 5 files · 2 commits · openBuilds on #473 (the memory bench): its commit is included, and only the last commit is new.
Cause: a host list kept every scratch chunk it took until its reset, and a list that has run is reset only after the bury lag (64 submissions;
host.rsland()/bury_lag()). In the relay modescripts/play.ps1sets (VICTORY_RELAY=2), the memory bench, at only 8 lists a frame, had 170 landed lists holding 546.5 MB of 4 MiB chunks. In a game run with about a hundred host lists a frame this is likely much more; that is not measured here. It may be part of the "uploads" share indocs/findings.md, also unverified.What this does
release_tables(), a list hands its chunks to the spare pool (HostList::release_scratch). The card has read them for the last time, and a landed host list is never run again, only reset later. This is the same reasoning as for the early release of descriptor slots.SPARE_KEPT/SPARE_MOST) stay with the list and are freed at its reset after the bury lag, as before (spare_what_fits).VICTORY_SCRATCH_POOL, on by default).VICTORY_SCRATCH_AT_LANDING=0turns it off.memory_bench_steady_statenow asserts that landed lists keep no scratch.Tested (RTX 4070 Ti, driver 621.01, debug build; the same build with the switch off and on)
VICTORY_RELAY=2cargo test -p victory-gpu: 394 passed, 0 failed (37 ignored).Not tested: in the game (no game data here). That covers the real saving and whether anything reads scratch after landing that the bench does not exercise (read-backs run before the release). AMD and other GPUs are not tested either.
No game data in the commits.
🤖 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.