D3D12.X: the activity log says who holds the target pages #2896

Manually merged
github merged 1 commit from gh-pr/2896/head into gh-pr/2896/base 2026-11-27 01:15:17 +00:00
Owner

@⁠Prime1997 on GitHub · 2026-11-26 22:16 UTC · original
Prime1997:contrib/nv-target-page-owners-line → nvidia-dev · +27 −0 · 2 files · 1 commits · merged 2026-11-26 22:58 UTC

Requested by Prime · project thread

The activity log gets a line next to the memory line that says who holds the target pages: textures with all their pages and sampled textures with pages by level (XCL_TEXTURE_LEVEL_PAGES), a shared page counted for each texture on it, and the idle pages waiting to go back to the pools. Logged only when there are target pages. No behaviour change.

Part of #2688 (workstream 1 owns the full owner table; this is one row of it for vram::Pages).

Why
Target pages grew from 1,910 MB at a retail title's menu to 6,408 MB while its world loaded (RTX 3060 Ti 8 GB); with this line the growth showed up as 54,678 sampled textures with pages by level holding 2,431 MB, which is what XCL_TEXTURE_LEVEL_PAGES was then measured against.

What is in it

  • crates/xcl/src/hle/d3d12x/vram.rs: page_owners.
  • crates/xcl/src/host.rs: the line under XCL_ACTIVITY, after the memory line.

Tested

  • NVIDIA GeForce RTX 3060 Ti 8 GB (driver 32.0.16.1714), Intel Core i5-10400, Windows 11 26200, rustc 1.100.0; debug tests, release smoke.
  • cargo test --locked --workspace --no-fail-fast -- --test-threads=4 with XCL_DXC_DIR set to DXC 1.9.2609.5: 1816 passed, 9 failed, 48 ignored. The 9 failures are the same tests that fail on nvidia-dev eae01502 itself (1816 passed, 9 failed, 48 ignored there, same command): async_compute_pso_registers_real_pso_and_not_standin, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, gpu::recomp::tests::gpu_compute_thread_limits_leave_the_lanes_past_them_out, hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays, hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels, split_compute_prefers_the_offline_whole_pipeline, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs.
  • SKIPPED on this adapter: 28 (no wave64: 21, per-lane f16 form refused: 3, no dxc.exe: 1, no heap windows (opt-in: XCL_HEAP_WINDOWS=1): 1, cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depend: 1, no heap windows: 1).
  • GitHub's Build and test (Windows, no GPU) fails here on hle::d3d12x::sparse::tests::a_gpu_write_into_a_gpu_view_lands_in_its_cpu_view (the WARP device is removed, 0x887a0005). That test passes on the card above, on this branch and on eae01502, and fails the same way on the other open pull requests against nvidia-dev (#2905, for one).

Regression run
A commit of main (b49be183, the last one before the shader preparation screen of #2555, which prepares every record before the title and so does not fit a 60 s run):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 3060 Ti
title: 419239bf
seconds: 60
exit: 0x0
frames shown: 363 (PresentX 363)
presents per 2 s (last 3): 16 17 16
device removals: 0
crashes: 0
peak commit: 15320 MB

The base of this PR, nvidia-dev eae01502:

xcl-smoke v1
commit: eae015021c639866ab061cdff2e9daf8ba9daac5
gpu: NVIDIA GeForce RTX 3060 Ti
title: 419239bf
seconds: 60
exit: 0x0
frames shown: 459 (PresentX 459)
presents per 2 s (last 3): 16 17 17
device removals: 0
crashes: 0
peak commit: 15366 MB

This PR's head:

xcl-smoke v1
commit: 33c18fafbfddbf97414a6e53ce794fb54e9fe6f2
gpu: NVIDIA GeForce RTX 3060 Ti
title: 419239bf
seconds: 60
exit: 0x0
frames shown: 432 (PresentX 432)
presents per 2 s (last 3): 17 17 16
device removals: 0
crashes: 0
peak commit: 15467 MB

Not tested

  • The sums count a shared page once for each texture on it, so they can pass the pages in all; the line says so.

AI use
Claude Code (Claude Fable 5.2 and Claude Opus 5.5) wrote the code, ran the suite and the regression runs on the hardware above, and wrote this description; Prime asked for it and owns the account. We coordinate the 8 GB work on the XCL Discord too: https://discord.gg/gK3y7WRRY

🤖 Generated with Claude Code

**@⁠Prime1997** on GitHub · 2026-11-26 22:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/2896) `Prime1997:contrib/nv-target-page-owners-line` → `nvidia-dev` · +27 −0 · 2 files · 1 commits · merged 2026-11-26 22:58 UTC <!-- claude-projects-attribution: {"github_login":"Prime1997"} --> _Requested by **Prime** · [project thread](https://claude.ai/code/project/chan_014ndQaTcZS9FWDAjYnDD1nA?thread=cmsg_014ndQaTcZS9FWDAjYnDD1nAWExb2NNMvZydbxWCtgmJcT)_ The activity log gets a line next to the memory line that says who holds the target pages: textures with all their pages and sampled textures with pages by level (`XCL_TEXTURE_LEVEL_PAGES`), a shared page counted for each texture on it, and the idle pages waiting to go back to the pools. Logged only when there are target pages. No behaviour change. Part of #2688 (workstream 1 owns the full owner table; this is one row of it for `vram::Pages`). **Why** Target pages grew from 1,910 MB at a retail title's menu to 6,408 MB while its world loaded (RTX 3060 Ti 8 GB); with this line the growth showed up as 54,678 sampled textures with pages by level holding 2,431 MB, which is what `XCL_TEXTURE_LEVEL_PAGES` was then measured against. **What is in it** - `crates/xcl/src/hle/d3d12x/vram.rs`: `page_owners`. - `crates/xcl/src/host.rs`: the line under `XCL_ACTIVITY`, after the memory line. **Tested** - NVIDIA GeForce RTX 3060 Ti 8 GB (driver 32.0.16.1714), Intel Core i5-10400, Windows 11 26200, rustc 1.100.0; debug tests, release smoke. - `cargo test --locked --workspace --no-fail-fast -- --test-threads=4` with `XCL_DXC_DIR` set to DXC 1.9.2609.5: 1816 passed, 9 failed, 48 ignored. The 9 failures are the same tests that fail on `nvidia-dev` `eae01502` itself (`1816` passed, `9` failed, `48` ignored there, same command): `async_compute_pso_registers_real_pso_and_not_standin`, `console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly`, `gpu::recomp::tests::gpu_compute_thread_limits_leave_the_lanes_past_them_out`, `hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays`, `hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels`, `split_compute_prefers_the_offline_whole_pipeline`, `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`. - SKIPPED on this adapter: 28 (no wave64: 21, per-lane f16 form refused: 3, no dxc.exe: 1, no heap windows (opt-in: XCL_HEAP_WINDOWS=1): 1, cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depend: 1, no heap windows: 1). - GitHub's `Build and test (Windows, no GPU)` fails here on `hle::d3d12x::sparse::tests::a_gpu_write_into_a_gpu_view_lands_in_its_cpu_view` (the WARP device is removed, 0x887a0005). That test passes on the card above, on this branch and on `eae01502`, and fails the same way on the other open pull requests against `nvidia-dev` (#2905, for one). **Regression run** A commit of `main` (`b49be183`, the last one before the shader preparation screen of #2555, which prepares every record before the title and so does not fit a 60 s run): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 3060 Ti title: 419239bf seconds: 60 exit: 0x0 frames shown: 363 (PresentX 363) presents per 2 s (last 3): 16 17 16 device removals: 0 crashes: 0 peak commit: 15320 MB ``` The base of this PR, `nvidia-dev` `eae01502`: ``` xcl-smoke v1 commit: eae015021c639866ab061cdff2e9daf8ba9daac5 gpu: NVIDIA GeForce RTX 3060 Ti title: 419239bf seconds: 60 exit: 0x0 frames shown: 459 (PresentX 459) presents per 2 s (last 3): 16 17 17 device removals: 0 crashes: 0 peak commit: 15366 MB ``` This PR's head: ``` xcl-smoke v1 commit: 33c18fafbfddbf97414a6e53ce794fb54e9fe6f2 gpu: NVIDIA GeForce RTX 3060 Ti title: 419239bf seconds: 60 exit: 0x0 frames shown: 432 (PresentX 432) presents per 2 s (last 3): 17 17 16 device removals: 0 crashes: 0 peak commit: 15467 MB ``` **Not tested** - The sums count a shared page once for each texture on it, so they can pass the pages in all; the line says so. **AI use** Claude Code (Claude Fable 5.2 and Claude Opus 5.5) wrote the code, ran the suite and the regression runs on the hardware above, and wrote this description; Prime asked for it and owns the account. We coordinate the 8 GB work on the XCL Discord too: https://discord.gg/gK3y7WRRY 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Target pages grew from 1,910 MB at a retail title's menu to 6,408 MB while its
world loaded (Series S profile, RTX 3060 Ti 8 GB), and the memory line gives
one figure for them. The new line splits them into textures with all their
pages and sampled textures with pages by level (XCL_TEXTURE_LEVEL_PAGES), a
shared page counted for each texture on it, and counts the idle pages waiting
to go back to the pools. Logged next to the memory line, only when there are
target pages. No behaviour change.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:15:17 +00:00
github manually merged commit 33c18fafbf into gh-pr/2896/base 2026-11-27 01:15:17 +00:00
Author
Owner

@⁠saintwolf on GitHub · 2026-11-26 22:55 UTC · original

Tested and reviewed commit 33c18faf (merged cleanly onto nvidia-dev eae01502 alongside #2892–#2895, #2897, zero conflicts).

Tested

  • Hardware: NVIDIA GeForce RTX 4070 SUPER (12 GiB, driver 32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 build 26300, rustc 1.100.0, debug test build
  • Built cleanly as part of cargo test -p xcl --lib on the merged nvidia-dev stack (#2892–#2897).

Review notes

  • Pure diagnostic addition (vram::page_owners() logged from host.rs), zero behavioral change. Clean.

Not tested

  • Full workspace test suite or retail-title smoke run on this PR

AI use

  • Antigravity (exact model name not provided to the agent): reviewed the diff, built the merged tree, and drafted this report (checked before posting).
**@⁠saintwolf** on GitHub · 2026-11-26 22:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/2896#issuecomment-7205100154) Tested and reviewed commit `33c18faf` (merged cleanly onto `nvidia-dev` `eae01502` alongside `#2892`–`#2895`, `#2897`, zero conflicts). **Tested** - Hardware: NVIDIA GeForce RTX 4070 SUPER (12 GiB, driver `32.0.16.2140`), AMD Ryzen 7 7800X3D, Windows 11 build 26300, `rustc 1.100.0`, debug test build - Built cleanly as part of `cargo test -p xcl --lib` on the merged `nvidia-dev` stack (`#2892`–`#2897`). **Review notes** - Pure diagnostic addition (`vram::page_owners()` logged from `host.rs`), zero behavioral change. Clean. **Not tested** - Full workspace test suite or retail-title smoke run on this PR **AI use** - Antigravity (exact model name not provided to the agent): reviewed the diff, built the merged tree, and drafted this report (checked before posting).
This discussion has been locked. Commenting is limited to contributors.
No description provided.