feat(diagnostics): trace Xbox physical page backing lifetimes #1545
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!1545
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1545"
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?
@jeremygold02 on GitHub · 2026-11-28 21:28 UTC · original
jeremygold02:codex/xmem-backing-section-diagnostics→main· +22 −0 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCWhy
The existing memory-pressure log reports when the host is low on RAM. It gives little visibility into the lifetime of an individual Windows backing section, including whether the game has returned its physical pages while VIctory still holds the section. Correlating these events can help investigate RAM retention during scene transitions.
What changed
Set
VICTORY_XMEM_SECTIONS=1to emit info-level events when Xbox physical pages are allocated or freed and when VIctory is about to close its Windows backing-section handle. The events share a process-local section handle. Free events aggregate removed pages by section, and logging runs outside the page-table lock.The flag defaults to off. Allocation, mapping, and cleanup behavior are unchanged. This is diagnostic instrumentation. Section size describes its allocation span, while resident RAM needs a separate measurement.
Verification
cargo build --release --locked -p victorypassed.VICTORY_XMEM_SECTIONS=1was set forcargo test --release --locked -p victory-hle physical_pages_map_alias_and_unmap. The focused test passed.[pr-diagnostics][memory][NVIDIA] Trace Xbox physical page backing lifetimesto Trace Xbox physical page backing lifetimesTrace Xbox physical page backing lifetimesto feat(diagnostics): trace Xbox physical page backing lifetimesframe chain:line per frame, and refreshed bytes by backing (VICTORY_BACKING_STATS=1) #4378