Repository navigation
Conversation
memory_report::snapshot() read the UMA window's size through uma::get(), which reserves and commits the window on first use. A sample in a process that had no window yet (a fresh child, a test) committed it, and so changed the memory it was measuring. uma::existing() returns the window only if something else made it. The child-process regression and the accessor are @thehollowedone's from their review of xcl-dev#2697. The test fails without the fix ("a memory sample made the UMA window") and passes with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks
Author
|
Closing as a duplicate: #3229 (merged) adds uma::existing() and the regression test that snapshot() does not create the UMA window. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
memory_report::snapshot()read the UMA window's size throughuma::get(), which reserves and commits the window on first use. A sample in a process that had no window yet (a fresh child process, a test) committed it, and so changed the memory it was measuring.uma::existing()returns the window only if something else already made it. Part of #3211 (C).The accessor and the child-process regression are @thehollowedone's, from their review of #2697. #2999 has the same
uma::get()call in its report anduma_imported_bytes(); I asked about overlap there before opening this.What is in it
gpu/uma.rs:existing(), the window without making ithle/d3d12x/memory_report.rs:snapshot()uses it;snapshot_does_not_initialize_umaruns a sample in a fresh child process and checks no window was madeTested
cargo test -p xcl --lib memory_report::tests::snapshot_does_not_initialize_uma: fails without the fix (a memory sample made the UMA window, 0 passed, 1 failed), passes with itcargo test --workspace --no-fail-fast -- --test-threads=4at49e8f5fc: 2,619 passed, 0 failed, 49 ignored (41 targets)Regression run
A retail title, 120 s,
XCL_PREPARE=0,XCL_PRESS_AT=25:A(loads a save into the world), the same DXIL cache copy and data root for both.Not tested
AI use
main, ran the tests and smoke runs, wrote this description. I checked the diff and the results.🤖 Generated with Claude Code