xmem: large reservations are said before the host is asked, not only after #3242
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3242"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by vanatorr on 2026-11-29T20:57:24Z.
VirtualAlloc2of a large range can take a long time, and every line around it is written once it has come back. A run that stops inside it leaves no sign of which reservation it was in: the log simply ends at whatever was said last, which is usually an unrelated small allocation several lines earlier.Reservations of 256 MiB or more now say so before the host is asked. The title's own large ranges are far above that; the many small reservations stay quiet.
Why
Tracking a start that never reaches the world on an RTX 3080 10 GB with DLSS on. The log always ended here, identically, in six runs:
That reads like it stopped at an 82 MB allocation. It did not. With DLSS off the same run carries on, and the very next thing it does is the title's heap:
The 3,977 MB reservation is the call that never comes back, and nothing in the log pointed at it. Working that out took comparing a 32,000-line good log against a 120-line bad one.
What it looks like now
Run on the same machine, this build, DLSS off (so it gets past the point above):
Six lines for a whole start, each paired with the existing line once the call returns. A run that hangs inside one of them now ends on the line that names it.
Tested
cargo check -p victory-hle: clean.Scope
Diagnostics only. It does not fix the DLSS hang described above, which I have not root-caused; it makes that class of hang name itself instead of ending the log at an unrelated line. Happy to change the threshold, the wording, or put it behind a switch.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-29T20:57:34Z.
Review: COMMENTED
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.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.