Memory: the machine's memory in the log and the texture cap, a warning while commit is nearly spent #241
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!241
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-241"
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?
@MamaLeVrai on GitHub · 2026-11-26 08:56 UTC · original
MamaLeVrai:memory-pressure→main· +173 −6 · 3 files · 2 commits · openWhat
The memory log and the streamed texture cap now take the whole machine's memory into account, not only the card's:
machine: memory X of Y MiB in use, commit X of Y MiB in use(GlobalMemoryStatusEx: physical memory, and the commit limit, which is physical memory plus the paging files).streamed texture size cap changed).Files:
memstat.rs(system_memory,system_memory_percent,commit_is_low,warn_if_commit_low),resource.rs(texture_cap,video_pressure_of,over_cap),host.rs(log_preemption).Why
On a 32 GB machine with an RX 6950 XT (system-managed paging file), each host device loss so far (
0x887A0007, then the title's int3 withE_OUTOFMEMORYfromlist.rs) came with the commit limit nearly reached:4f62c2a+ #144 + #110 + #214 + this branch: the last memory line before the loss readcommit 58743 of 59369 MiB in use, and the title reported 373 MB free. The loss came about 6 s after the world came on screen. The DRED data (#214) showed no page fault and no list in flight (breadcrumbs (done/count, list) []), and the System event log had no display driver reset.That the loss is caused by the commit running out is not proven. But nothing in the log said memory was the tight resource: video memory was at 6.7 of 15.6 GiB. The new figures and the warning make that visible. Over the run, the commit limit grew from 52 to 59 GiB: Windows grew the paging file and could not keep up.
Tests
memstat::tests::commit_is_low_below_four_gib_left(new): the 4 GiB edge, and in use above the limit.resource::tests::texture_cap_falls_as_memory_fills(new): the steps, and that the fuller of video and machine memory picks the cap.resource::tests::the_machine_reports_its_memory(new): the figures are sane on the host (in use within total, commit limit at least physical memory).cargo test --release -p victory-gpu --lib, twice: 115 passed, 1 failed, 4 ignored. The failure islist::tests::lists_are_cut_at_waits_that_follow_work, which fails the same way on main in release runs (fixed in #210).cargo clippy --release -p victory-gpu --all-targets --no-deps: nothing inmemstat.rs.The log lines (1, 2 and 4) were seen in a game run on the machine above. The cap went to 256 four seconds after start, because commit was already at 87 %. The warning (3) has not run in the game yet.
Not measured
AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-26 08:56 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
@MamaLeVrai on GitHub · 2026-11-26 08:58 UTC · original
Note: this PR is against
main. The default branch is nowrx9070xt, which already has part of this in its own form:xmem::commit_refusedwrites the commit in use and the limit tocrashes.logwhen a commit is refused at the limit, andcopystatreads the machine's free memory. What is not there is the texture cap following the machine's commit, and a warning before the limit is reached. If that is wanted onrx9070xt, I can port it there.AI-assisted (Claude Code); no game data.
@MamaLeVrai on GitHub · 2026-11-26 19:27 UTC · original
Update: the run with the 64 GiB paging file (device lost with commit at 42.7 of 98.2 GiB) is not clean. A
victory-shadertest run of mine, which dispatches on the same card, was going on for the whole game session, so that loss may have been caused from outside the game. It neither confirms nor refutes the commit link. I have corrected the note at the top of the description, and I will post a clean run.AI-assisted (Claude Code); no game data.
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.