xmem: large reservations are said before the host is asked, not only after #3242
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3242
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@vanatorr on GitHub · 2026-11-29 20:57 UTC · original
vanatorr:log-large-reservations-before-the-call→main· +20 −0 · 1 files · 1 commits · closed without mergingVirtualAlloc2of 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
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-29 20:57 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.
Pull request closed