D3D12.X: the log shows what memory is left when video memory is refused #2307

Open
427001 wants to merge 1 commit from upstream-pr/2317 into main
427001 commented 2026-11-25 13:53:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by 427001 on 2026-11-25T13:53:14Z.


When a pool heap for title textures is refused, the log says "no video memory for more pages of title textures", and the XCL_ACTIVITY memory line gives the process's commit and the video memory in use. Neither says what ran out: the card, the memory the system shares with it, or the system's commit, which a PC charges video memory to as well. The warning and the memory line now also give the system's free commit with its limit, and the video memory budgets. Logging only. Part of #333.

Correction (same day): this description and the first commit message said the heap was refused "only when its commit was used up". Runs with a larger page file show that was wrong for this machine. The commit is amended (c2f4abc → 70a26dd: corrected message, and the non-local figures added) and the text below is from the new runs.

What the figures show on a 10 GB card with 16 GB of RAM, in three runs to the title's stop at +0x193e00f (#333): the first refusal comes with 779 MB of commit free in one run and with 31 764 MB and 32 252 MB free in the two others, each time at 12 541 – 12 552 MB of local video memory in use against a budget of about 9.3 GB. So there the commit is not what stops it; before, the log could not tell the two cases apart.

What is in it

  • crates/xcl/src/gpu/uma.rs: system_commit(), the system's free commit and its limit.
  • crates/xcl/src/hle/d3d12x/real.rs: video_memory() returns the budget next to the bytes in use, for local and non-local memory; memory_left() puts the figures into one string for a log line.
  • crates/xcl/src/hle/d3d12x/vram.rs: the warning of a refused pool heap ends with memory_left().
  • crates/xcl/src/host.rs: the memory line ends with ; system commit N MB free of M MB; video memory budgets L MB local, K MB non-local. The start of the line, which scripts/smoke.ps1 reads, is unchanged.

Tested

  • NVIDIA GeForce RTX 3080 10 GB (32-lane waves), driver 616.92; Intel Core i9-10900K; 16 GB RAM; Windows 11 Pro 26200.9974; rustc 1.100.0 stable-x86_64-pc-windows-msvc; tests in debug, runs in release.

  • cargo build --workspace + cargo test --workspace --no-fail-fast -- --test-threads=4 on 70a26dd: 1254 passed, 0 failed, 46 ignored. 27 SKIPPED lines of 17 tests: 20 "no wave64", 3 per-lane f16 forms refused, 1 "no heap windows", 2 without the D3D12 debug layer, 1 that cannot turn the driver cache off (no Developer Mode).

  • The new lines at the stop, retail title 1.0.2.1, Series S profile, XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PRESS_A_AT=40,55. These runs are not of this head: main does not get that far on this profile, so they are of this change applied to a local merge of main 379725a + #495 + #615 (runs 1 and 2 with the first version of the change, which had no non-local figures).

    Run 1, system-managed page file, other programs holding about 15 GB of commit:

[  145.248] D3D12.X: no video memory for more pages of title textures (… (0x8007000E)); system commit 779 MB free of 41243 MB, local video memory 12549 MB in use of a 9260 MB budget

Run 2, after a reboot with a fixed 48 GB page file:

[  127.328] D3D12.X: no video memory for more pages of title textures (… (0x8007000E)); system commit 31764 MB free of 65407 MB, local video memory 12541 MB in use of a 9285 MB budget

Run 3, the same machine state, this head's lines:

[  152.262] memory: 26260 MB committed by the process; video memory 12551 MB local, 4708 MB non-local; … ; system commit 31435 MB free of 65407 MB; video memory budgets 9282 MB local, 7465 MB non-local
[  153.475] D3D12.X: no video memory for more pages of title textures (… (0x8007000E)); system commit 32252 MB free of 65407 MB, video memory in use: 12552 MB local of a 9285 MB budget, 4708 MB non-local of a 7465 MB budget

The title stops at +0x193e00f at 145.5 s, 127.4 s and 153.6 s. A run without this change stopped the same way with 12 557 MB of local video memory in use at its last memory line.

Regression run

main (379725a):

xcl-smoke v1
commit: 379725aefffe3023696f2f8c784315f7a6fbc318
gpu: NVIDIA GeForce RTX 3080
title: 7da7e06c
seconds: 60
exit: 0x0
frames shown: 1219 (PresentX 1219)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19462 MB

this PR's head (70a26dd):

xcl-smoke v1
commit: 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6
gpu: NVIDIA GeForce RTX 3080
title: 7da7e06c
seconds: 60
exit: 0x0
frames shown: 1233 (PresentX 1234)
presents per 2 s (last 3): 59 61 60
device removals: 0
crashes: 0
peak commit: 19434 MB

Both with the Series S profile, after the reboot. 60 s stay in the title's first screens: the memory line is reached (30 times), the warning is not.

Not tested

  • The warning on this head itself (see Tested); AMD and Intel GPUs; a machine where the commit is what runs out at the refusal (run 1 came close: 779 MB free, and the same stop).
  • Why the refusal comes at 12.5 GB of local video memory on this 10 GB card. A guess from the figures, not checked: what is over the card's own 10 053 MB (about 2.5 GB) plus the 4.7 GB of non-local memory comes to 7.2 GB, close to the 7.5 GB non-local budget.
  • Other places that report E_OUTOFMEMORY (CreatePlacedResourceX … a resource of its own (0x8007000e), the sparse pools) are unchanged.

AI use

  • Claude Code with Claude Fable 5.2: wrote the change and this description, made the test and title runs reported here, and drew the first, wrong conclusion that the correction above takes back.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5492672269 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317). Originally posted by [427001](https://github.com/427001) on 2026-11-25T13:53:14Z. --- When a pool heap for title textures is refused, the log says "no video memory for more pages of title textures", and the `XCL_ACTIVITY` memory line gives the process's commit and the video memory in use. Neither says what ran out: the card, the memory the system shares with it, or the system's commit, which a PC charges video memory to as well. The warning and the memory line now also give the system's free commit with its limit, and the video memory budgets. Logging only. Part of #333. **Correction (same day):** this description and the first commit message said the heap was refused "only when its commit was used up". Runs with a larger page file show that was wrong for this machine. The commit is amended (`c2f4abc` → `70a26dd`: corrected message, and the non-local figures added) and the text below is from the new runs. What the figures show on a 10 GB card with 16 GB of RAM, in three runs to the title's stop at `+0x193e00f` (#333): the first refusal comes with **779 MB** of commit free in one run and with **31 764 MB** and **32 252 MB** free in the two others, each time at 12 541 – 12 552 MB of local video memory in use against a budget of about 9.3 GB. So there the commit is not what stops it; before, the log could not tell the two cases apart. **What is in it** - `crates/xcl/src/gpu/uma.rs`: `system_commit()`, the system's free commit and its limit. - `crates/xcl/src/hle/d3d12x/real.rs`: `video_memory()` returns the budget next to the bytes in use, for local and non-local memory; `memory_left()` puts the figures into one string for a log line. - `crates/xcl/src/hle/d3d12x/vram.rs`: the warning of a refused pool heap ends with `memory_left()`. - `crates/xcl/src/host.rs`: the memory line ends with `; system commit N MB free of M MB; video memory budgets L MB local, K MB non-local`. The start of the line, which `scripts/smoke.ps1` reads, is unchanged. **Tested** - NVIDIA GeForce RTX 3080 10 GB (32-lane waves), driver 616.92; Intel Core i9-10900K; 16 GB RAM; Windows 11 Pro 26200.9974; rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; tests in debug, runs in release. - `cargo build --workspace` + `cargo test --workspace --no-fail-fast -- --test-threads=4` on `70a26dd`: 1254 passed, 0 failed, 46 ignored. 27 `SKIPPED` lines of 17 tests: 20 "no wave64", 3 per-lane f16 forms refused, 1 "no heap windows", 2 without the D3D12 debug layer, 1 that cannot turn the driver cache off (no Developer Mode). - The new lines at the stop, retail title 1.0.2.1, Series S profile, `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PRESS_A_AT=40,55`. **These runs are not of this head:** `main` does not get that far on this profile, so they are of this change applied to a local merge of `main` `379725a` + #495 + #615 (runs 1 and 2 with the first version of the change, which had no non-local figures). Run 1, system-managed page file, other programs holding about 15 GB of commit: ``` [ 145.248] D3D12.X: no video memory for more pages of title textures (… (0x8007000E)); system commit 779 MB free of 41243 MB, local video memory 12549 MB in use of a 9260 MB budget ``` Run 2, after a reboot with a fixed 48 GB page file: ``` [ 127.328] D3D12.X: no video memory for more pages of title textures (… (0x8007000E)); system commit 31764 MB free of 65407 MB, local video memory 12541 MB in use of a 9285 MB budget ``` Run 3, the same machine state, this head's lines: ``` [ 152.262] memory: 26260 MB committed by the process; video memory 12551 MB local, 4708 MB non-local; … ; system commit 31435 MB free of 65407 MB; video memory budgets 9282 MB local, 7465 MB non-local [ 153.475] D3D12.X: no video memory for more pages of title textures (… (0x8007000E)); system commit 32252 MB free of 65407 MB, video memory in use: 12552 MB local of a 9285 MB budget, 4708 MB non-local of a 7465 MB budget ``` The title stops at `+0x193e00f` at 145.5 s, 127.4 s and 153.6 s. A run without this change stopped the same way with 12 557 MB of local video memory in use at its last memory line. **Regression run** `main` (`379725a`): ``` xcl-smoke v1 commit: 379725aefffe3023696f2f8c784315f7a6fbc318 gpu: NVIDIA GeForce RTX 3080 title: 7da7e06c seconds: 60 exit: 0x0 frames shown: 1219 (PresentX 1219) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 19462 MB ``` this PR's head (`70a26dd`): ``` xcl-smoke v1 commit: 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6 gpu: NVIDIA GeForce RTX 3080 title: 7da7e06c seconds: 60 exit: 0x0 frames shown: 1233 (PresentX 1234) presents per 2 s (last 3): 59 61 60 device removals: 0 crashes: 0 peak commit: 19434 MB ``` Both with the Series S profile, after the reboot. 60 s stay in the title's first screens: the memory line is reached (30 times), the warning is not. **Not tested** - The warning on this head itself (see **Tested**); AMD and Intel GPUs; a machine where the commit is what runs out at the refusal (run 1 came close: 779 MB free, and the same stop). - Why the refusal comes at 12.5 GB of local video memory on this 10 GB card. A guess from the figures, not checked: what is over the card's own 10 053 MB (about 2.5 GB) plus the 4.7 GB of non-local memory comes to 7.2 GB, close to the 7.5 GB non-local budget. - Other places that report `E_OUTOFMEMORY` (`CreatePlacedResourceX … a resource of its own (0x8007000e)`, the sparse pools) are unchanged. **AI use** - Claude Code with Claude Fable 5.2: wrote the change and this description, made the test and title runs reported here, and drew the first, wrong conclusion that the correction above takes back. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
oni-swr commented 2026-11-25 14:10:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-25T14:09:21Z.


CPU-only review and test report for c2f4abc82c37b70f2c6e873d722e5bfe4bab8a6a (this PR's head), for #1607. GPU tests and scripts/smoke.ps1 were not run.

Tested

  • Windows 11 build 26200, AMD Ryzen 7 5700X3D, rustc/cargo 1.100.0 MSVC, debug, own target dir.
  • Read the full diff (4 files, +35/-7). It merges with main 06c9f55 without conflicts (the PR's base is 379725a; only host.rs auto-merged).
  • On that merge: cargo test -p xcl --lib --no-run builds, and cargo check --workspace --all-targets finishes with no new warning in the changed files. video_memory() has no other caller than host.rs and memory_left().
  • cargo test -p xcl --lib -- gpu::uma::tests hle::d3d12x::real::big_compile_tests --skip gpu_: 23 passed, 0 failed, 0 ignored, no SKIPPED line. I picked these two modules because they hold the changed uma.rs/real.rs code's neighbours and I checked that none of them creates a D3D12 device. The PR adds no test (logging only), so these show it breaks nothing there, not that the new strings are right.
  • scripts/smoke.ps1 still matches the changed line: it reads memory: N MB committed, and the start of the line is unchanged.

Review notes (not blockers)

  • host.rs prints system commit 0 MB free of 0 MB when system_commit() is None, while memory_left() says system commit not known.
  • memory_left() makes a DXGI factory on each refused heap. The description reports 170 refusals in one run; that is cheap next to the failed CreateHeap, but it is a call per refusal.

Not tested

  • Any GPU test, any D3D12 path, a smoke run, the refusal path itself, AMD/Intel behaviour of QueryVideoMemoryInfo. The xcl-smoke blocks in the description were not checked by me.

AI use

  • Claude Code (Claude Sonnet 5.5) read the diff, ran the commands and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7164841785 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7164841785). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T14:09:21Z. --- CPU-only review and test report for `c2f4abc82c37b70f2c6e873d722e5bfe4bab8a6a` (this PR's head), for #1607. **GPU tests and `scripts/smoke.ps1` were not run.** **Tested** - Windows 11 build 26200, AMD Ryzen 7 5700X3D, rustc/cargo 1.100.0 MSVC, debug, own target dir. - Read the full diff (4 files, +35/-7). It merges with `main` `06c9f55` without conflicts (the PR's base is `379725a`; only `host.rs` auto-merged). - On that merge: `cargo test -p xcl --lib --no-run` builds, and `cargo check --workspace --all-targets` finishes with no new warning in the changed files. `video_memory()` has no other caller than `host.rs` and `memory_left()`. - `cargo test -p xcl --lib -- gpu::uma::tests hle::d3d12x::real::big_compile_tests --skip gpu_`: 23 passed, 0 failed, 0 ignored, no `SKIPPED` line. I picked these two modules because they hold the changed `uma.rs`/`real.rs` code's neighbours and I checked that none of them creates a D3D12 device. The PR adds no test (logging only), so these show it breaks nothing there, not that the new strings are right. - `scripts/smoke.ps1` still matches the changed line: it reads `memory: N MB committed`, and the start of the line is unchanged. **Review notes (not blockers)** - `host.rs` prints `system commit 0 MB free of 0 MB` when `system_commit()` is `None`, while `memory_left()` says `system commit not known`. - `memory_left()` makes a DXGI factory on each refused heap. The description reports 170 refusals in one run; that is cheap next to the failed `CreateHeap`, but it is a call per refusal. **Not tested** - Any GPU test, any D3D12 path, a smoke run, the refusal path itself, AMD/Intel behaviour of `QueryVideoMemoryInfo`. The `xcl-smoke` blocks in the description were not checked by me. **AI use** - Claude Code (Claude Sonnet 5.5) read the diff, ran the commands and wrote this report.
upstream-sync changed title from [PR #2317] D3D12.X: the log shows the system's commit when video memory is refused to [PR #2317] D3D12.X: the log shows what memory is left when video memory is refused 2026-11-25 15:07:30 +00:00
nnonno91 commented 2026-11-25 15:07:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T14:29:39Z.


Independent Windows activity-log verification of 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6 on Radeon integrated graphics and RTX 5090.

Tested

  • Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC, SDK DXC/DXIL 1.8.2502.11, unoptimized profile. AMD Radeon(TM) Graphics driver 32.0.21042.62 and RTX 5090 driver 32.0.16.1742.
  • cargo build --locked --workspace passed. I temporarily held the bundled test title for 2.6 s at its normal exit and added an assertion on the activity log to the existing e2e fixture. XCL runtime source was unchanged. Ran cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1 with XCL_ACTIVITY=1, XCL_NETWORK=0 and each adapter selected by XCL_ADAPTER. Each run gave 1 passed, 0 failed, 0 ignored and no skips. Both temporary test edits were restored.
  • Each run emitted two memory lines with the existing usage figures followed by free/total system commit and both video memory budgets. At the first sample the Radeon reported 3587 MB free of 68630 MB and budgets of 15665 MB local, 0 MB non-local. The RTX 5090 reported 3016 MB free of 68630 MB and budgets of 24086 MB local, 15179 MB non-local.

Not tested

A refused heap allocation, a retail title and the full workspace suite.

AI use

OpenAI Codex (GPT-6.2 Sol) adapted the test fixture, ran the checks and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7165364039 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7165364039). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-25T14:29:39Z. --- Independent Windows activity-log verification of `70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6` on Radeon integrated graphics and RTX 5090. **Tested** - Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC, SDK DXC/DXIL 1.8.2502.11, unoptimized profile. AMD Radeon(TM) Graphics driver 32.0.21042.62 and RTX 5090 driver 32.0.16.1742. - `cargo build --locked --workspace` passed. I temporarily held the bundled test title for 2.6 s at its normal exit and added an assertion on the activity log to the existing e2e fixture. XCL runtime source was unchanged. Ran `cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1` with `XCL_ACTIVITY=1`, `XCL_NETWORK=0` and each adapter selected by `XCL_ADAPTER`. Each run gave 1 passed, 0 failed, 0 ignored and no skips. Both temporary test edits were restored. - Each run emitted two memory lines with the existing usage figures followed by free/total system commit and both video memory budgets. At the first sample the Radeon reported `3587 MB free of 68630 MB` and budgets of `15665 MB local, 0 MB non-local`. The RTX 5090 reported `3016 MB free of 68630 MB` and budgets of `24086 MB local, 15179 MB non-local`. **Not tested** A refused heap allocation, a retail title and the full workspace suite. **AI use** OpenAI Codex (GPT-6.2 Sol) adapted the test fixture, ran the checks and wrote this report.
DavidM1911 commented 2026-11-25 18:04:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T17:52:53Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7170129892 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7170129892). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T17:52:53Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Lum7nt commented 2026-11-25 19:09:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-25T19:01:56Z.


RX 9070 XT retail verification of exact head 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6 and current main 3ceb5507a05355719ff1d7b5c29bc52aff142000.

Hardware: AMD Radeon RX 9070 XT, Windows, retail GTA 6 Xbox 1.0.2.1. Built release xcl with Rust 1.100.0 MSVC and the bundled DXC. Both 60-second scripts/smoke.ps1 runs exited 0 with no device removals or crashes.

PR head:

xcl-smoke v1
commit: 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6
gpu: AMD Radeon RX 9070 XT
title: GTA6-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 830 (PresentX 830)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16144 MB

Current main:

xcl-smoke v1
commit: 3ceb5507a05355719ff1d7b5c29bc52aff142000
gpu: AMD Radeon RX 9070 XT
title: GTA6-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1029 (PresentX 1029)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14601 MB

The PR log emitted system commit and local/non-local video-memory budgets on this AMD adapter. The 60-second title run did not hit a refused-heap path, so it does not verify the refusal warning itself.

I also ran cargo test --workspace -- --test-threads=4 on the PR head: 1,183 passed, 2 failed, 26 ignored; 7 runtime SKIPPED lines. The failures were GPU fuzz seeds 722 and 1599. On current main, the focused fuzz_validate_and_gpu_ run reproduced the same two seeds (2 passed, 2 failed), so these failures are present on the baseline too. The PR test command stopped at -p xcl --lib and did not finish the other workspace targets.

AI use: OpenAI Codex (GPT-6; exact variant not exposed in this session) ran these checks and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7171727757 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7171727757). Originally posted by [Lum7nt](https://github.com/Lum7nt) on 2026-11-25T19:01:56Z. --- RX 9070 XT retail verification of exact head `70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6` and current `main` `3ceb5507a05355719ff1d7b5c29bc52aff142000`. Hardware: AMD Radeon RX 9070 XT, Windows, retail GTA 6 Xbox 1.0.2.1. Built release `xcl` with Rust 1.100.0 MSVC and the bundled DXC. Both 60-second `scripts/smoke.ps1` runs exited 0 with no device removals or crashes. PR head: ``` xcl-smoke v1 commit: 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6 gpu: AMD Radeon RX 9070 XT title: GTA6-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 830 (PresentX 830) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16144 MB ``` Current main: ``` xcl-smoke v1 commit: 3ceb5507a05355719ff1d7b5c29bc52aff142000 gpu: AMD Radeon RX 9070 XT title: GTA6-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1029 (PresentX 1029) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14601 MB ``` The PR log emitted system commit and local/non-local video-memory budgets on this AMD adapter. The 60-second title run did not hit a refused-heap path, so it does not verify the refusal warning itself. I also ran `cargo test --workspace -- --test-threads=4` on the PR head: 1,183 passed, 2 failed, 26 ignored; 7 runtime `SKIPPED` lines. The failures were GPU fuzz seeds 722 and 1599. On current main, the focused `fuzz_validate_and_gpu_` run reproduced the same two seeds (2 passed, 2 failed), so these failures are present on the baseline too. The PR test command stopped at `-p xcl --lib` and did not finish the other workspace targets. AI use: OpenAI Codex (GPT-6; exact variant not exposed in this session) ran these checks and wrote this report.
bmjask commented 2026-11-25 21:35:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T21:35:17Z.

Review: COMMENTED


No concrete source defect found. Commit/DXGI diagnostics fail cleanly and preserve existing log prefixes; current Windows CI is green. Warning-at-head, AMD/Intel, and actual commit-exhaustion scenarios remain untested, but this logging-only improvement appears merge-ready.

<!-- greyfinch-sync:ivall/xcl:review:6065295040 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#pullrequestreview-6065295040). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T21:35:17Z. **Review:** COMMENTED --- No concrete source defect found. Commit/DXGI diagnostics fail cleanly and preserve existing log prefixes; current Windows CI is green. Warning-at-head, AMD/Intel, and actual commit-exhaustion scenarios remain untested, but this logging-only improvement appears merge-ready.
luckyteagirl commented 2026-11-26 09:07:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T09:07:22Z.

Review: COMMENTED


On 70a26dd, the new system_commit() helper labels MEMORYSTATUSEX.ullAvailPageFile / ullTotalPageFile as system commit in the activity and refusal logs. Microsoft documents ullAvailPageFile as the amount the current process can still commit, and ullTotalPageFile as the lesser of the process and system limits (MEMORYSTATUSEX). If XCL runs under a tighter Job Object/process commit cap, the log can report nearly exhausted "system commit" while the machine still has substantial headroom, misleading the diagnosis this PR adds.

Could this new system-wide diagnostic use GetPerformanceInfo / K32GetPerformanceInfo (CommitLimit - CommitTotal, multiplied by PageSize), as the Microsoft reference recommends? The existing free_commit() can keep its process-oriented meaning. A Windows CPU-only fixture in a capped child process could compare the helper with GetPerformanceInfo, allowing for sampling drift. Source/documentation review only; I did not run that capped-process fixture.

<!-- greyfinch-sync:ivall/xcl:review:6071209851 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#pullrequestreview-6071209851). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T09:07:22Z. **Review:** COMMENTED --- On `70a26dd`, the new `system_commit()` helper labels `MEMORYSTATUSEX.ullAvailPageFile` / `ullTotalPageFile` as **system** commit in the activity and refusal logs. Microsoft documents `ullAvailPageFile` as the amount the *current process* can still commit, and `ullTotalPageFile` as the lesser of the process and system limits ([MEMORYSTATUSEX](https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-memorystatusex)). If XCL runs under a tighter Job Object/process commit cap, the log can report nearly exhausted "system commit" while the machine still has substantial headroom, misleading the diagnosis this PR adds. Could this new system-wide diagnostic use `GetPerformanceInfo` / `K32GetPerformanceInfo` (`CommitLimit - CommitTotal`, multiplied by `PageSize`), as the Microsoft reference recommends? The existing `free_commit()` can keep its process-oriented meaning. A Windows CPU-only fixture in a capped child process could compare the helper with `GetPerformanceInfo`, allowing for sampling drift. Source/documentation review only; I did not run that capped-process fixture.
upipibi commented 2026-11-26 20:40:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-26T20:40:29Z.


NVIDIA report, exact head 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6, merge-base 379725aefffe3023696f2f8c784315f7a6fbc318. RTX 3070 8 GB (Ampere, wave32), driver 616.56, Windows 11, rustc 1.100.0.

  • cargo test -p xcl --lib gpu::uma -- --test-threads=1 x3: head 12/12 passed each run, base 12/12. The PR adds no test (no control for the log text).
  • cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: head 1243 passed, 0 failed, 46 ignored; base 1243 passed, 0 failed, 46 ignored. Two e2e tests (test_title_runs_and_game_folder_is_untouched, test_title_draws_with_a_root_signature_under_the_debug_layer) did not run on either side because I had not built xcl_testtitle.exe first (cargo build --workspace); that is my setup, not this PR.
  • SKIPPED, same on both: 20 wave64, 3 f16 per-lane refusals, 1 devmode, 1 no heap windows.
  • No nvlddmkm resets.

AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).

<!-- greyfinch-sync:ivall/xcl:comment:7202958583 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7202958583). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T20:40:29Z. --- NVIDIA report, exact head `70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6`, merge-base `379725aefffe3023696f2f8c784315f7a6fbc318`. RTX 3070 8 GB (Ampere, wave32), driver 616.56, Windows 11, rustc 1.100.0. - `cargo test -p xcl --lib gpu::uma -- --test-threads=1` x3: head 12/12 passed each run, base 12/12. The PR adds no test (no control for the log text). - `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2`: head 1243 passed, 0 failed, 46 ignored; base 1243 passed, 0 failed, 46 ignored. Two `e2e` tests (`test_title_runs_and_game_folder_is_untouched`, `test_title_draws_with_a_root_signature_under_the_debug_layer`) did not run on either side because I had not built `xcl_testtitle.exe` first (`cargo build --workspace`); that is my setup, not this PR. - SKIPPED, same on both: 20 wave64, 3 f16 per-lane refusals, 1 devmode, 1 no heap windows. - No nvlddmkm resets. AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
JJAutoCompare commented 2026-11-27 00:59:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T00:59:42Z.


Tested

Clean PR head 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6 and parent 379725aefffe3023696f2f8c784315f7a6fbc318. Windows 11 build 26200, Ryzen 7 3800X, Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC debug. Each revision passed 10 Rust tests with zero failures, ignores or skips, and one smoke-log parsing control.

  • cargo test --locked --offline -j 2 -p xcl --lib hle::d3d12x::vram::tests::tile_pool -- --nocapture --test-threads=1 passed 2 tests per revision.
  • The scratch runner compiled pinned source excerpts with rustc --edition=2021 --test and ran synthetic.exe --nocapture --test-threads=1, passing 7 cases per revision. The simulated heap-refusal branches preserved existing output and the PR appended budget fields, with zeroes for unavailable readings. The checked-in smoke regex extracted 91 MB from both activity controls on both revisions.
  • After cargo build --locked --offline -j 2 -p xcl --lib, ran each scratch Arc probe with XCL_ADAPTER=A770 and --exact arc_budget_snapshot --nocapture --test-threads=1 in separate shared-lock acquisitions. One real Arc test passed per revision. Both reported 3,932,160 bytes local and 1,400,832 bytes non-local usage. On the PR repeat, the formatter printed local/non-local budgets of 15,489/31,980 MB and system commit of 48,975 MB free out of 56,300 MB at sample time. The wrapper and probe hashes matched before, under and after the lock.

Not tested

Native driver heap refusal, VRAM exhaustion, title activity logging, retail smoke or full workspace suite.

AI use

Codex in T3 Code (gpt-6.2-sol for the worker run) wrote the scratch harness, ran the tests and drafted the report. Codex in the coordinator session reproduced both revisions' checks.

<!-- greyfinch-sync:ivall/xcl:comment:7206921737 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7206921737). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-27T00:59:42Z. --- **Tested** Clean PR head `70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6` and parent `379725aefffe3023696f2f8c784315f7a6fbc318`. Windows 11 build 26200, Ryzen 7 3800X, Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC debug. Each revision passed 10 Rust tests with zero failures, ignores or skips, and one smoke-log parsing control. - `cargo test --locked --offline -j 2 -p xcl --lib hle::d3d12x::vram::tests::tile_pool -- --nocapture --test-threads=1` passed 2 tests per revision. - The scratch runner compiled pinned source excerpts with `rustc --edition=2021 --test` and ran `synthetic.exe --nocapture --test-threads=1`, passing 7 cases per revision. The simulated heap-refusal branches preserved existing output and the PR appended budget fields, with zeroes for unavailable readings. The checked-in smoke regex extracted 91 MB from both activity controls on both revisions. - After `cargo build --locked --offline -j 2 -p xcl --lib`, ran each scratch Arc probe with `XCL_ADAPTER=A770` and `--exact arc_budget_snapshot --nocapture --test-threads=1` in separate shared-lock acquisitions. One real Arc test passed per revision. Both reported 3,932,160 bytes local and 1,400,832 bytes non-local usage. On the PR repeat, the formatter printed local/non-local budgets of 15,489/31,980 MB and system commit of 48,975 MB free out of 56,300 MB at sample time. The wrapper and probe hashes matched before, under and after the lock. **Not tested** Native driver heap refusal, VRAM exhaustion, title activity logging, retail smoke or full workspace suite. **AI use** Codex in T3 Code (`gpt-6.2-sol` for the worker run) wrote the scratch harness, ran the tests and drafted the report. Codex in the coordinator session reproduced both revisions' checks.
thehollowedone commented 2026-11-27 16:01:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T16:01:35Z.


Follow-up to the existing API review, checked at head 70a26dd. I ran a synthetic child with a 1 GiB JOB_OBJECT_LIMIT_PROCESS_MEMORY cap. The cap was enforced: a 1.5 GiB VirtualAlloc(MEM_COMMIT) request was refused. On this Windows 11 build, however, GlobalMemoryStatusEx still reported the same approximately 64 GiB commit limit and 39 GiB free as GetPerformanceInfo. Thus this machine does not reproduce the review's predicted process-scoped log values under that cap. The local capped-child test passed both before and after the helper change; it is an API observation, not a red/green regression.

The Microsoft MEMORYSTATUSEX contract still defines those page-file fields relative to the calling process when its limit is smaller and directs system-wide queries to GetPerformanceInfo. The narrow correction below changes only system_commit() to use the system's CommitLimit and CommitTotal in pages. It leaves free_commit() process-aware for allocation decisions. A regression for a platform where the two APIs differ should verify the log reports the system values, rather than assume this Job Object cap changes GlobalMemoryStatusEx everywhere.

The source-only candidate passed cargo build --offline --locked -j 4 --workspace and the local capped-child check (1 passed, 0 failed). cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 --quiet recorded 1,254 passed, 1 failed, 46 ignored, and 24 GPU skip notices. The sole failure, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (DXIL not compiled yet), reproduced with a focused command on the PR's exact base 06c9f550. I did not run a title or a clean-commit smoke for this uncommitted logging candidate.

Candidate system-commit helper diff
diff --git a/crates/xcl/src/gpu/uma.rs b/crates/xcl/src/gpu/uma.rs
--- a/crates/xcl/src/gpu/uma.rs
+++ b/crates/xcl/src/gpu/uma.rs
@@ -825,10 +825,16 @@ fn free_commit() -> usize {
 /// The system's commit: (free, limit) bytes. A PC charges video memory to it too, so video
 /// memory can be refused with room left on the card. None when it is not known.
 pub fn system_commit() -> Option<(u64, u64)> {
-    use windows_sys::Win32::System::SystemInformation::{GlobalMemoryStatusEx, MEMORYSTATUSEX};
-    let mut m: MEMORYSTATUSEX = unsafe { std::mem::zeroed() };
-    m.dwLength = std::mem::size_of::<MEMORYSTATUSEX>() as u32;
-    (unsafe { GlobalMemoryStatusEx(&mut m) } != 0).then_some((m.ullAvailPageFile, m.ullTotalPageFile))
+    use windows_sys::Win32::System::ProcessStatus::{GetPerformanceInfo, PERFORMANCE_INFORMATION};
+    let mut p: PERFORMANCE_INFORMATION = unsafe { std::mem::zeroed() };
+    p.cb = std::mem::size_of_val(&p) as u32;
+    (unsafe { GetPerformanceInfo(&mut p, p.cb) } != 0).then(|| {
+        let page = p.PageSize as u64;
+        (
+            (p.CommitLimit.saturating_sub(p.CommitTotal) as u64).saturating_mul(page),
+            (p.CommitLimit as u64).saturating_mul(page),
+        )
+    })
 }
 
 /// The title has asked for `bytes` of graphics memory XCL places in the coherent window: the

AI use: Codex (GPT-6.2 Sol) ran the capped-child comparison and tested the candidate; Codex (GPT-6.2 Astra) independently reviewed the API boundary.

<!-- greyfinch-sync:ivall/xcl:comment:7222765983 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7222765983). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-27T16:01:35Z. --- Follow-up to [the existing API review](https://github.com/xcl-dev/xcl/pull/2317#pullrequestreview-6071209851), checked at [head `70a26dd`](https://github.com/xcl-dev/xcl/commit/70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6). I ran a synthetic child with a **1 GiB `JOB_OBJECT_LIMIT_PROCESS_MEMORY` cap**. The cap was enforced: a 1.5 GiB `VirtualAlloc(MEM_COMMIT)` request was refused. On this Windows 11 build, however, `GlobalMemoryStatusEx` still reported the same approximately 64 GiB commit limit and 39 GiB free as `GetPerformanceInfo`. Thus this machine does **not** reproduce the review's predicted process-scoped log values under that cap. The local capped-child test passed both before and after the helper change; it is an API observation, not a red/green regression. The [Microsoft `MEMORYSTATUSEX` contract](https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-memorystatusex) still defines those page-file fields relative to the calling process when its limit is smaller and directs system-wide queries to `GetPerformanceInfo`. The narrow correction below changes only `system_commit()` to use the system's `CommitLimit` and `CommitTotal` in pages. It leaves `free_commit()` process-aware for allocation decisions. A regression for a platform where the two APIs differ should verify the log reports the system values, rather than assume this Job Object cap changes `GlobalMemoryStatusEx` everywhere. The source-only candidate passed `cargo build --offline --locked -j 4 --workspace` and the local capped-child check (1 passed, 0 failed). `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 --quiet` recorded 1,254 passed, 1 failed, 46 ignored, and 24 GPU skip notices. The sole failure, `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` (`DXIL not compiled yet`), reproduced with a focused command on the [PR's exact base `06c9f550`](https://github.com/xcl-dev/xcl/commit/06c9f5505f63f10c5ec49ef932d75b2c28177324). I did not run a title or a clean-commit smoke for this uncommitted logging candidate. <details><summary>Candidate system-commit helper diff</summary> ```diff diff --git a/crates/xcl/src/gpu/uma.rs b/crates/xcl/src/gpu/uma.rs --- a/crates/xcl/src/gpu/uma.rs +++ b/crates/xcl/src/gpu/uma.rs @@ -825,10 +825,16 @@ fn free_commit() -> usize { /// The system's commit: (free, limit) bytes. A PC charges video memory to it too, so video /// memory can be refused with room left on the card. None when it is not known. pub fn system_commit() -> Option<(u64, u64)> { - use windows_sys::Win32::System::SystemInformation::{GlobalMemoryStatusEx, MEMORYSTATUSEX}; - let mut m: MEMORYSTATUSEX = unsafe { std::mem::zeroed() }; - m.dwLength = std::mem::size_of::<MEMORYSTATUSEX>() as u32; - (unsafe { GlobalMemoryStatusEx(&mut m) } != 0).then_some((m.ullAvailPageFile, m.ullTotalPageFile)) + use windows_sys::Win32::System::ProcessStatus::{GetPerformanceInfo, PERFORMANCE_INFORMATION}; + let mut p: PERFORMANCE_INFORMATION = unsafe { std::mem::zeroed() }; + p.cb = std::mem::size_of_val(&p) as u32; + (unsafe { GetPerformanceInfo(&mut p, p.cb) } != 0).then(|| { + let page = p.PageSize as u64; + ( + (p.CommitLimit.saturating_sub(p.CommitTotal) as u64).saturating_mul(page), + (p.CommitLimit as u64).saturating_mul(page), + ) + }) } /// The title has asked for `bytes` of graphics memory XCL places in the coherent window: the ``` </details> AI use: Codex (GPT-6.2 Sol) ran the capped-child comparison and tested the candidate; Codex (GPT-6.2 Astra) independently reviewed the API boundary.
thehollowedone commented 2026-11-27 20:08:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T20:08:45Z.


merge-check
base: 6089122a1c96dff16e93b6fdf04c8ed20cfb6102
head: 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6
merge: Clean local merge, no commit.
build: cargo build --workspace -> ok.
tests: XCL_ADAPTER=nvidia cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1,464 passed, 1 failed, 47 ignored; 25 GPU skip notices. The sole failure is gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (DXIL not compiled), also reproduced on this untouched base in the current-base #671 check.
review: The diagnostic semantics still need two small corrections. First, system_commit() labels GlobalMemoryStatusEx page-file fields as system commit. Microsoft's contract permits those values to reflect a smaller per-process limit and points to GetPerformanceInfo for system-wide commit. The earlier review and tested candidate diff cover the narrow replacement; this head still uses the old API. Second, host.rs prints 0 MB when either query is unavailable. The activity thread can sample before a D3D12 device exists, so zero budgets can mean “not measured.” Print unknown for missing values while preserving the existing memory: N MB committed prefix used by log parsers. This second point was also noted earlier. No new runtime OOM was induced in this check.
performance: These are periodic activity queries and an additional query on a refused heap; no frame-time or OOM-path latency measurement here.
verdict: not yet for a diagnostic PR: distinguish system from process commit and unavailable counters from measured zero. The existing linked diff addresses the first item.
hardware / tool and model: Windows 11 build 26300; Ryzen 7 9800X3D; RTX 3080 Ti 12 GiB / NVIDIA 621.35; rustc 1.99.1 MSVC; DXC 1.8.2502.11. AI use: Codex (GPT-6.2 Sol) built, tested and checked the merged diff; Codex (GPT-6.2 Astra) independently checked the counter semantics.

<!-- greyfinch-sync:ivall/xcl:comment:7227218511 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7227218511). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-27T20:08:45Z. --- merge-check base: [`6089122a1c96dff16e93b6fdf04c8ed20cfb6102`](https://github.com/xcl-dev/xcl/commit/6089122a1c96dff16e93b6fdf04c8ed20cfb6102) head: [`70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6`](https://github.com/xcl-dev/xcl/commit/70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6) merge: Clean local merge, no commit. build: `cargo build --workspace` -> ok. tests: `XCL_ADAPTER=nvidia cargo test --workspace --no-fail-fast -- --test-threads=4` -> 1,464 passed, 1 failed, 47 ignored; 25 GPU skip notices. The sole failure is `gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` (DXIL not compiled), also reproduced on this untouched base in the [current-base #671 check](https://github.com/xcl-dev/xcl/pull/671#issuecomment-7223888221). review: The diagnostic semantics still need two small corrections. First, [`system_commit()`](https://github.com/xcl-dev/xcl/blob/70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6/crates/xcl/src/gpu/uma.rs#L825-L835) labels `GlobalMemoryStatusEx` page-file fields as **system** commit. [Microsoft's contract](https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-memorystatusex) permits those values to reflect a smaller per-process limit and points to `GetPerformanceInfo` for system-wide commit. The [earlier review and tested candidate diff](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7222765983) cover the narrow replacement; this head still uses the old API. Second, [`host.rs`](https://github.com/xcl-dev/xcl/blob/70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6/crates/xcl/src/host.rs#L65-L83) prints `0 MB` when either query is unavailable. The activity thread can sample before a D3D12 device exists, so zero budgets can mean “not measured.” Print `unknown` for missing values while preserving the existing `memory: N MB committed` prefix used by log parsers. This second point was also [noted earlier](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7164841785). No new runtime OOM was induced in this check. performance: These are periodic activity queries and an additional query on a refused heap; no frame-time or OOM-path latency measurement here. verdict: **not yet** for a diagnostic PR: distinguish system from process commit and unavailable counters from measured zero. The existing linked diff addresses the first item. hardware / tool and model: Windows 11 build 26300; Ryzen 7 9800X3D; RTX 3080 Ti 12 GiB / NVIDIA 621.35; rustc 1.99.1 MSVC; DXC 1.8.2502.11. AI use: Codex (GPT-6.2 Sol) built, tested and checked the merged diff; Codex (GPT-6.2 Astra) independently checked the counter semantics.
throny commented 2026-11-27 20:17:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:17:38Z.


merge-check claim
head: 70a26dd652

<!-- greyfinch-sync:ivall/xcl:comment:7227362360 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7227362360). Originally posted by [throny](https://github.com/throny) on 2026-11-27T20:17:38Z. --- merge-check claim head: 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6
throny commented 2026-11-27 20:32:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:32:04Z.


merge-check
base: 6089122a
head: 70a26dd652
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1465 passed, 0 failed, 47 ignored (26 SKIPPED lines); the PR adds no test (log only); base alone: 1465 passed, 0 failed, 47 ignored
review: no defect. The periodic line runs only under XCL_ACTIVITY, memory_left only on the heap-refusal path. Minor: system_commit repeats free_commit. Open from the thread, wording only: the page-file figures used are limited per process, so the label "system commit" is wrong under a job-object cap.
performance: none by default: one GlobalMemoryStatusEx every 2 s with XCL_ACTIVITY, plus the error path (reasoned).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7227597126 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7227597126). Originally posted by [throny](https://github.com/throny) on 2026-11-27T20:32:04Z. --- merge-check base: 6089122a head: 70a26dd652a6e2e7d8cd3b5519b42b3240bf2ad6 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1465 passed, 0 failed, 47 ignored (26 SKIPPED lines); the PR adds no test (log only); base alone: 1465 passed, 0 failed, 47 ignored review: no defect. The periodic line runs only under XCL_ACTIVITY, memory_left only on the heap-refusal path. Minor: system_commit repeats free_commit. Open from the thread, wording only: the page-file figures used are limited per process, so the label "system commit" is wrong under a job-object cap. performance: none by default: one GlobalMemoryStatusEx every 2 s with XCL_ACTIVITY, plus the error path (reasoned). verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Foniass commented 2026-12-01 07:49:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:49:08Z.


Triage (#1607) – head 70a26dd

Main already has half of this: since e9b56ad0 the periodic memory line in host.rs ends with the system commit, and it also logs the local video memory budget and a per-owner line (memory_report) with both segments against their budgets. The host.rs hunk here duplicates that and conflicts with it.
The part main does not have is the warning in vram.rs alloc_pool_heap: on main it still logs only the HRESULT when CreateHeap fails. Rebased, the PR could shrink to that warning and reuse main's system_commit in host.rs and memory_report::snapshot() / Segment instead of a new uma::system_commit and a changed real::video_memory signature.
#782 and #2357 (same issue #333) change the page budget itself, not the log; no overlap.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304517057 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2317#issuecomment-7304517057). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:49:08Z. --- **Triage (#1607)** – head 70a26dd Main already has half of this: since e9b56ad0 the periodic memory line in host.rs ends with the system commit, and it also logs the local video memory budget and a per-owner line (`memory_report`) with both segments against their budgets. The host.rs hunk here duplicates that and conflicts with it. The part main does not have is the warning in vram.rs `alloc_pool_heap`: on main it still logs only the HRESULT when CreateHeap fails. Rebased, the PR could shrink to that warning and reuse main's `system_commit` in host.rs and `memory_report::snapshot()` / `Segment` instead of a new `uma::system_commit` and a changed `real::video_memory` signature. #782 and #2357 (same issue #333) change the page budget itself, not the log; no overlap. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2317:upstream-pr/2317'
git switch 'upstream-pr/2317'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2317'
git switch 'upstream-pr/2317'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2317'
git switch 'upstream-pr/2317'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2317'
git switch 'main'
git merge --squash 'upstream-pr/2317'
git switch 'main'
git merge --ff-only 'upstream-pr/2317'
git switch 'main'
git merge 'upstream-pr/2317'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2307
No description provided.