xcl run: report process memory under Wine #1088

Open
Filip722 wants to merge 1 commit from upstream-pr/1097 into main
Filip722 commented 2026-11-24 11:32:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Filip722 on 2026-11-24T11:32:20Z.


On Linux Wine, XCL's activity log and smoke summary still report 0 MB while title memory use grows. The activity snapshot now uses Wine's estimate from anonymous resident memory and swap when private usage is unavailable.

What is in it

  • Apply the Linux-only PagefileUsage fallback at memory_report::process_commit, the shared source for the memory lines. Keep native Windows private usage, the CrossOver behavior and the guest memory-budget APIs unchanged.
  • Test counter selection, including the CrossOver case that would incorrectly count virtual reservations. #2362 remains an alternative with a different measurement and guest API scope.

Tested

  • Bazzite 44.20261011.0, kernel 7.2.9-ogc2.1.fc44.x86_64, Intel Core 7 240H, RTX 5060 Laptop GPU (8 GiB), NVIDIA 615.78.08. Rust 1.98.1 with the Windows MSVC target. Proton Experimental 11.0-20261112 with the same vkd3d-proton/DXVK prefix seeded independently on both arms.
  • Windows MSVC debug library under Proton, one test thread. memory_report::tests reported 5 / 0 / 0, 0 runtime skips (passed / failed / ignored).
  • Windows MSVC debug library under Proton, one test thread. title_memory_status_reports_budget reported 1 / 0 / 0, 0 runtime skips (passed / failed / ignored).

Regression run

Both Windows MSVC release builds ran the same 20-second offline startup smoke with independent title data and caches.

Main

xcl-smoke v1
commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f
gpu: NVIDIA GeForce RTX 5060 Laptop GPU
title: retail-offline-pr-refresh
seconds: 20
exit: 0x0
frames shown: 416 (PresentX 416)
presents per 2 s (last 3): 60 60 44
device removals: 0
crashes: 0
peak commit: 0 MB

PR head

xcl-smoke v1
commit: 6a57fd78574a967fc827a0ea0280cb616350f0ad
gpu: NVIDIA GeForce RTX 5060 Laptop GPU
title: retail-offline-pr-refresh
seconds: 20
exit: 0x0
frames shown: 375 (PresentX 375)
presents per 2 s (last 3): 60 43 53
device removals: 0
crashes: 0
peak commit: 3947 MB

Not tested

The refreshed head was not tested on native Windows or CrossOver. The increase from 0 MB is a change in measurement, not an increase in allocated memory. A complete workspace comparison is pending. The clean main workspace attempt hit a device removal in the parallel library harness (NVIDIA Xid 109 here). The matched retail smoke ran separately with no device removals.

AI use

Codex GPT-6.2-Sol High refreshed the change on main, ran the tests and smoke, and updated this description.

<!-- greyfinch-sync:ivall/xcl:issue:5471319722 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-24T11:32:20Z. --- On Linux Wine, XCL's activity log and smoke summary still report 0 MB while title memory use grows. The activity snapshot now uses Wine's estimate from anonymous resident memory and swap when private usage is unavailable. **What is in it** - Apply the Linux-only `PagefileUsage` fallback at `memory_report::process_commit`, the shared source for the memory lines. Keep native Windows private usage, the CrossOver behavior and the guest memory-budget APIs unchanged. - Test counter selection, including the CrossOver case that would incorrectly count virtual reservations. #2362 remains an alternative with a different measurement and guest API scope. **Tested** - Bazzite 44.20261011.0, kernel 7.2.9-ogc2.1.fc44.x86_64, Intel Core 7 240H, RTX 5060 Laptop GPU (8 GiB), NVIDIA 615.78.08. Rust 1.98.1 with the Windows MSVC target. Proton Experimental 11.0-20261112 with the same vkd3d-proton/DXVK prefix seeded independently on both arms. - Windows MSVC debug library under Proton, one test thread. `memory_report::tests` reported 5 / 0 / 0, 0 runtime skips (passed / failed / ignored). - Windows MSVC debug library under Proton, one test thread. `title_memory_status_reports_budget` reported 1 / 0 / 0, 0 runtime skips (passed / failed / ignored). **Regression run** Both Windows MSVC release builds ran the same 20-second offline startup smoke with independent title data and caches. Main ``` xcl-smoke v1 commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f gpu: NVIDIA GeForce RTX 5060 Laptop GPU title: retail-offline-pr-refresh seconds: 20 exit: 0x0 frames shown: 416 (PresentX 416) presents per 2 s (last 3): 60 60 44 device removals: 0 crashes: 0 peak commit: 0 MB ``` PR head ``` xcl-smoke v1 commit: 6a57fd78574a967fc827a0ea0280cb616350f0ad gpu: NVIDIA GeForce RTX 5060 Laptop GPU title: retail-offline-pr-refresh seconds: 20 exit: 0x0 frames shown: 375 (PresentX 375) presents per 2 s (last 3): 60 43 53 device removals: 0 crashes: 0 peak commit: 3947 MB ``` **Not tested** The refreshed head was not tested on native Windows or CrossOver. The increase from 0 MB is a change in measurement, not an increase in allocated memory. A complete workspace comparison is pending. The clean main workspace attempt hit a device removal in the parallel library harness (NVIDIA Xid 109 here). The matched retail smoke ran separately with no device removals. **AI use** Codex GPT-6.2-Sol High refreshed the change on main, ran the tests and smoke, and updated this description.
ezamelczyk commented 2026-11-24 14:06:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ezamelczyk on 2026-11-24T13:21:59Z.


Test report for 54221a0 (this PR's head) against main 47efa2e, on AMD RDNA4 under Linux. Your runs were on NVIDIA; this covers AMD / RADV.

Tested

  • AMD Radeon RX 9070 XT (RADV GFX1201, Mesa 26.3.1), 12 threads, 32 GB RAM, CachyOS, kernel 7.3.6
  • Wine from GE-Proton 11-14 (has kernel write watches), vkd3d-proton v3.1 + the #257 patch (-Db_ndebug=true), DXVK from GE-Proton 11-14, VKD3D_CONFIG=ignore_shared_fence, DXC 1.9.2609.5
  • rustc 1.99.1, x86_64-pc-windows-msvc cross-built with clang + lld and an xwin SDK; tests debug, smoke runs release
  • cargo test --workspace --no-fail-fast --target x86_64-pc-windows-msvc -- --test-threads=4 with wine as the runner:
    • head 54221a0: 734 passed, 7 failed, 41 ignored
    • main 47efa2e: 731 passed, 10 failed, 41 ignored. That is the same 7, plus placed_title_textures_share_vram_and_preserve_pixels (#718, flaky) and two tests that hit its poisoned lock. All three pass when run on their own.
    • The 7 fail on both and are Wine / RADV differences with existing issues or PRs: gpu_f64_roots and gpu_f64_math_random (rsq of a negative f64 gives 0, not NaN; #530), gpu_nonfused_mad_and_mac_prevent_fma_contraction (#472), xma2_source_voice_decodes_and_manages_lifetime and the e2e XMA2 / hidden-window checks (#890, #794), disk_free_space_ex_reports_pls_quota (#810), set_predication_buffer_state_and_kickoff.
    • SKIPPED: none printed. Output was captured, so this is not a full list.
  • Retail title 1.0.2.1, 60 s smoke runs (scripts/linux/smoke.sh from #257), main then head, back to back. The commit line is the point of this PR: main reports 0 MB and the head reports real numbers.

Regression run (from smoke.sh under Wine)

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: AMD Radeon RX 9070 XT (RADV GFX1201)
title: game_dump
seconds: 60
exit: 0x0
frames shown: 10 (PresentX 14)
presents per 2 s (last 3): 0 0 1
device removals: 0
crashes: 0
peak commit: 0 MB
xcl-smoke v1
commit: 54221a06832467622d78af242796e4adf43414f8
gpu: AMD Radeon RX 9070 XT (RADV GFX1201)
title: game_dump
seconds: 60
exit: 0x0
frames shown: 12 (PresentX 15)
presents per 2 s (last 3): 0 1 0
device removals: 0
crashes: 0
peak commit: 6571 MB

An earlier pair of head runs gave 6243 MB. The first main run on a fresh data folder showed 603 frames. Later runs of both builds show 10–15, so the frame count depends on the title's saved state, not on this change.

Not tested

  • Windows. On Windows PrivateUsage is set, so the fallback is not used there.
  • Whether PagefileUsage under Wine tracks the commit charge as closely as PrivateUsage does on Windows. I only checked that it is non-zero and grows over the run (4277 → 6179 MB).

AI use

  • Claude Code (Claude Opus 5.5) set up the Wine environment, ran the builds, tests and smoke runs on this machine, and wrote this report. I checked the results.
<!-- greyfinch-sync:ivall/xcl:comment:7132726452 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1097#issuecomment-7132726452). Originally posted by [ezamelczyk](https://github.com/ezamelczyk) on 2026-11-24T13:21:59Z. --- Test report for `54221a0` (this PR's head) against `main` `47efa2e`, on AMD RDNA4 under Linux. Your runs were on NVIDIA; this covers AMD / RADV. **Tested** - AMD Radeon RX 9070 XT (RADV GFX1201, Mesa 26.3.1), 12 threads, 32 GB RAM, CachyOS, kernel 7.3.6 - Wine from GE-Proton 11-14 (has kernel write watches), vkd3d-proton v3.1 + the #257 patch (`-Db_ndebug=true`), DXVK from GE-Proton 11-14, `VKD3D_CONFIG=ignore_shared_fence`, DXC 1.9.2609.5 - rustc 1.99.1, `x86_64-pc-windows-msvc` cross-built with clang + lld and an xwin SDK; tests debug, smoke runs release - `cargo test --workspace --no-fail-fast --target x86_64-pc-windows-msvc -- --test-threads=4` with `wine` as the runner: - head `54221a0`: **734 passed, 7 failed, 41 ignored** - `main` `47efa2e`: 731 passed, 10 failed, 41 ignored. That is the same 7, plus `placed_title_textures_share_vram_and_preserve_pixels` (#718, flaky) and two tests that hit its poisoned lock. All three pass when run on their own. - The 7 fail on both and are Wine / RADV differences with existing issues or PRs: `gpu_f64_roots` and `gpu_f64_math_random` (rsq of a negative f64 gives 0, not NaN; #530), `gpu_nonfused_mad_and_mac_prevent_fma_contraction` (#472), `xma2_source_voice_decodes_and_manages_lifetime` and the e2e XMA2 / hidden-window checks (#890, #794), `disk_free_space_ex_reports_pls_quota` (#810), `set_predication_buffer_state_and_kickoff`. - SKIPPED: none printed. Output was captured, so this is not a full list. - Retail title 1.0.2.1, 60 s smoke runs (`scripts/linux/smoke.sh` from #257), `main` then head, back to back. The commit line is the point of this PR: `main` reports 0 MB and the head reports real numbers. **Regression run** (from `smoke.sh` under Wine) ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: AMD Radeon RX 9070 XT (RADV GFX1201) title: game_dump seconds: 60 exit: 0x0 frames shown: 10 (PresentX 14) presents per 2 s (last 3): 0 0 1 device removals: 0 crashes: 0 peak commit: 0 MB ``` ``` xcl-smoke v1 commit: 54221a06832467622d78af242796e4adf43414f8 gpu: AMD Radeon RX 9070 XT (RADV GFX1201) title: game_dump seconds: 60 exit: 0x0 frames shown: 12 (PresentX 15) presents per 2 s (last 3): 0 1 0 device removals: 0 crashes: 0 peak commit: 6571 MB ``` An earlier pair of head runs gave 6243 MB. The first `main` run on a fresh data folder showed 603 frames. Later runs of both builds show 10–15, so the frame count depends on the title's saved state, not on this change. **Not tested** - Windows. On Windows `PrivateUsage` is set, so the fallback is not used there. - Whether `PagefileUsage` under Wine tracks the commit charge as closely as `PrivateUsage` does on Windows. I only checked that it is non-zero and grows over the run (4277 → 6179 MB). **AI use** - Claude Code (Claude Opus 5.5) set up the Wine environment, ran the builds, tests and smoke runs on this machine, and wrote this report. I checked the results.
crastinator commented 2026-11-24 15:44:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by crastinator on 2026-11-24T15:44:16Z.

Review: COMMENTED


Tested on RDNA2 under Proton: no new failures.

Tested (head 54221a0, merged onto main 930e8b4: no conflicts)

  • AMD Radeon RX 6700 XT (RDNA2, gfx1031, RADV NAVI22, Mesa 26.3.1), Ryzen 7 5700X, Linux 7.3.5 (CachyOS)
  • Proton Experimental 11.0-20261112's Wine, vkd3d-proton v3.1 + #257's patch (-Db_ndebug=true, dxil-spirv 53aac418 from #775), DXVK v3.1.1-209 dxgi, DXC 1.9.2609.5, libopus 1.5.2, XCL_REQUIRE_GPU=wave64,mesh (0 SKIPPED)
  • cross-built for x86_64-pc-windows-msvc (clang-cl / lld-link, xwin SDK 10.0.26100), Rust 1.99.1, debug
  • cargo test -p xcl --lib -- --test-threads=1 plus every integration test (--test '*' -- --test-threads=1), compared per test with the same runs on main 930e8b4. main here: 8 stable Wine-lane failures (#530 ×2, #676, #890 ×2, e2e, pls_quota #810, predication_e2e #1272). Separately, title_textures::{placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted} and vram::d32s8_targets… fail together in 2 of 5 main runs (the #718 family), so I do not count a pass of those as a fix either way.
  • PR: 743 passed, 8 failed, 41 ignored (main: 740 / 11 / 41, with the #718 flakes failing in that run). No test fails here that passes on main. The PR adds no test, so none of these runs exercise the Wine PrivateUsage = 0 path itself.

Not tested

  • Anything that needs game files: no XCL_SAMPLE_* was set, so the tests that read them (about 66) pass without running.
  • xcl run's activity log under Wine with a title (no game here), which is what the PR changes.

AI use

  • Claude Code (Claude Opus 5.5) merged, built and ran this and wrote the report; I checked the results.
<!-- greyfinch-sync:ivall/xcl:review:6042508023 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#pullrequestreview-6042508023). Originally posted by [crastinator](https://github.com/crastinator) on 2026-11-24T15:44:16Z. **Review:** COMMENTED --- Tested on RDNA2 under Proton: no new failures. **Tested** (head `54221a0`, merged onto `main` `930e8b4`: no conflicts) - AMD Radeon RX 6700 XT (RDNA2, gfx1031, RADV NAVI22, Mesa 26.3.1), Ryzen 7 5700X, Linux 7.3.5 (CachyOS) - Proton Experimental 11.0-20261112's Wine, vkd3d-proton v3.1 + #257's patch (`-Db_ndebug=true`, dxil-spirv `53aac418` from #775), DXVK v3.1.1-209 `dxgi`, DXC 1.9.2609.5, libopus 1.5.2, `XCL_REQUIRE_GPU=wave64,mesh` (0 SKIPPED) - cross-built for `x86_64-pc-windows-msvc` (clang-cl / lld-link, xwin SDK 10.0.26100), Rust 1.99.1, debug - `cargo test -p xcl --lib -- --test-threads=1` plus every integration test (`--test '*' -- --test-threads=1`), compared per test with the same runs on `main` `930e8b4`. `main` here: 8 stable Wine-lane failures (#530 ×2, #676, #890 ×2, e2e, `pls_quota` #810, `predication_e2e` #1272). Separately, `title_textures::{placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted}` and `vram::d32s8_targets…` fail together in 2 of 5 `main` runs (the #718 family), so I do not count a pass of those as a fix either way. - PR: 743 passed, 8 failed, 41 ignored (`main`: 740 / 11 / 41, with the #718 flakes failing in that run). No test fails here that passes on `main`. The PR adds no test, so none of these runs exercise the Wine `PrivateUsage` = 0 path itself. **Not tested** - Anything that needs game files: no `XCL_SAMPLE_*` was set, so the tests that read them (about 66) pass without running. - `xcl run`'s activity log under Wine with a title (no game here), which is what the PR changes. **AI use** - Claude Code (Claude Opus 5.5) merged, built and ran this and wrote the report; I checked the results.
Lucasyudi commented 2026-11-24 21:30:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Lucasyudi on 2026-11-24T21:21:38Z.


Update for bdf0913 (same Mac, same toolchain):

  • wine_get_host_version under CrossOver 26.3 returns sysname=Darwin release=27.2.0 (a plain probe that calls it the way util::linux_wine does), so linux_wine() is false here and the activity log keeps 0 MB on a Mac, as on main, instead of the virtual size. That is the behaviour the README line now describes.
  • cargo test -p xcl --lib filtered to activity_commit, title_memory_status and util::: 7 passed, 0 failed (activity_commit_uses_pagefile_only_when_allowed included). xcl.exe builds.
  • Still not measured: a memory: line from this build (the test title ends before the first tick here). The title-facing TitleMemoryStatus keeps the PagefileUsage fallback, so on a Mac a title still sees the virtual size there; you kept that on purpose and it is unchanged from main, so only a note.

Test report for 2ba567b (this PR's head) on macOS, since shortside noted on #258 that peak commit reads 0 MB in every Mac smoke block. On CrossOver for macOS the PagefileUsage fallback gives a number, but it is the process's virtual size, reservations included, not commit or resident memory. So on a Mac the figure moves from 0 MB to about 40 GB plus whatever XCL reserves.

Tested

  • Apple M4 Pro, macOS 27.2.1, CrossOver 26.3 (Wine 11.0), Rosetta 2. mingw-w64 (GCC 16.2.0) cross-build.

  • A plain probe (no XCL) calling K32GetProcessMemoryInfo with PROCESS_MEMORY_COUNTERS_EX, the call process_private_bytes makes, after each step, in MB:

    step WorkingSetSize PagefileUsage PrivateUsage
    start 14 41974 0
    VirtualAlloc reserve 8 GB 16 50169 0
    commit 1 GB of it, untouched 16 50169 0
    write the 1 GB 1040 50169 0
    release 16 41977 0

    PagefileUsage follows the reservation (+8 GB) and ignores commit and touch; WorkingSetSize follows the pages written. PeakPagefileUsage reads 0.

  • The PR build itself: cargo build --workspace at 2ba567b, then the test title with XCL_ACTIVITY=1 under CrossOver. It ends before the first 2 s activity tick on this host (the D3DMetal stop in #258), so I have no memory: line from the PR's own log; the numbers above are from the probe only.

What it means here: on Linux Wine the README line in this PR (anonymous resident memory and swap) matches what you measured. On macOS Wine it does not, and with the 125 % peak-commit rule in mind (#1103), a smoke pair on a Mac would compare virtual sizes. Either saying "Linux Wine" in the README line, or not taking PagefileUsage when it is far above the working set, would avoid that; your call, I haven't tried either.

Not tested: Linux, Windows, a retail title, the memory: line from this build on a Mac.

AI use: Claude Code with Claude Opus 5.5 (claude-opus-5-5) wrote the probe, ran it and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7144826153 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7144826153). Originally posted by [Lucasyudi](https://github.com/Lucasyudi) on 2026-11-24T21:21:38Z. --- **Update for `bdf0913`** (same Mac, same toolchain): - `wine_get_host_version` under CrossOver 26.3 returns `sysname=Darwin release=27.2.0` (a plain probe that calls it the way `util::linux_wine` does), so `linux_wine()` is false here and the activity log keeps 0 MB on a Mac, as on `main`, instead of the virtual size. That is the behaviour the README line now describes. - `cargo test -p xcl --lib` filtered to `activity_commit`, `title_memory_status` and `util::`: 7 passed, 0 failed (`activity_commit_uses_pagefile_only_when_allowed` included). `xcl.exe` builds. - Still not measured: a `memory:` line from this build (the test title ends before the first tick here). The title-facing `TitleMemoryStatus` keeps the `PagefileUsage` fallback, so on a Mac a title still sees the virtual size there; you kept that on purpose and it is unchanged from `main`, so only a note. --- Test report for `2ba567b` (this PR's head) on macOS, since shortside noted on #258 that `peak commit` reads 0 MB in every Mac smoke block. On CrossOver for macOS the `PagefileUsage` fallback gives a number, but it is the process's virtual size, reservations included, not commit or resident memory. So on a Mac the figure moves from 0 MB to about 40 GB plus whatever XCL reserves. **Tested** - Apple M4 Pro, macOS 27.2.1, CrossOver 26.3 (Wine 11.0), Rosetta 2. mingw-w64 (GCC 16.2.0) cross-build. - A plain probe (no XCL) calling `K32GetProcessMemoryInfo` with `PROCESS_MEMORY_COUNTERS_EX`, the call `process_private_bytes` makes, after each step, in MB: | step | WorkingSetSize | PagefileUsage | PrivateUsage | |---|---|---|---| | start | 14 | 41974 | 0 | | `VirtualAlloc` reserve 8 GB | 16 | 50169 | 0 | | commit 1 GB of it, untouched | 16 | 50169 | 0 | | write the 1 GB | 1040 | 50169 | 0 | | release | 16 | 41977 | 0 | `PagefileUsage` follows the reservation (+8 GB) and ignores commit and touch; `WorkingSetSize` follows the pages written. `PeakPagefileUsage` reads 0. - The PR build itself: `cargo build --workspace` at `2ba567b`, then the test title with `XCL_ACTIVITY=1` under CrossOver. It ends before the first 2 s activity tick on this host (the D3DMetal stop in #258), so I have no `memory:` line from the PR's own log; the numbers above are from the probe only. **What it means here:** on Linux Wine the README line in this PR (anonymous resident memory and swap) matches what you measured. On macOS Wine it does not, and with the 125 % peak-commit rule in mind (#1103), a smoke pair on a Mac would compare virtual sizes. Either saying "Linux Wine" in the README line, or not taking `PagefileUsage` when it is far above the working set, would avoid that; your call, I haven't tried either. **Not tested:** Linux, Windows, a retail title, the `memory:` line from this build on a Mac. AI use: Claude Code with Claude Opus 5.5 (`claude-opus-5-5`) wrote the probe, ran it and drafted this report.
Filip722 commented 2026-11-25 00:08:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Filip722 on 2026-11-24T23:10:04Z.


Thanks for measuring the reserve, commit and touch steps on CrossOver. In bdf0913, the activity log uses the PagefileUsage fallback only when Wine reports Linux as its host. The regression test uses the 50,169 MiB reservation figure from your probe.

On Linux Proton, committing 32 MiB without touching it left the estimate unchanged. Writing all 32 MiB increased the estimate by exactly that amount. The RTX 5060 Laptop startup smoke reported 0 MB on main and a 4,165 MB estimated peak on the revised head, with both runs exiting normally. macOS validation of the revised head is still open.

OpenAI Codex with GPT-6.2-astra wrote and tested this follow-up.

<!-- greyfinch-sync:ivall/xcl:comment:7147090669 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7147090669). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-24T23:10:04Z. --- Thanks for measuring the reserve, commit and touch steps on CrossOver. In `bdf0913`, the activity log uses the PagefileUsage fallback only when Wine reports Linux as its host. The regression test uses the 50,169 MiB reservation figure from your probe. On Linux Proton, committing 32 MiB without touching it left the estimate unchanged. Writing all 32 MiB increased the estimate by exactly that amount. The RTX 5060 Laptop startup smoke reported 0 MB on main and a 4,165 MB estimated peak on the revised head, with both runs exiting normally. macOS validation of the revised head is still open. OpenAI Codex with GPT-6.2-astra wrote and tested this follow-up.
DavidM1911 commented 2026-11-25 09:08:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:36:45Z.


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:7157253122 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7157253122). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T08:36:45Z. --- 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!
vakaobr commented 2026-11-25 10:10:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by vakaobr on 2026-11-25T09:38:29Z.


@Filip722 the macOS side of this, measured, since this PR leaves it at 0 on purpose: on CrossOver one counter does follow the commit, and the title-memory API has the same problem worse.

What each counter does under CrossOver 26.3 (Wine 11.0) on macOS. A probe commits 256 MB with VirtualAlloc, touches every page, reserves 1 GB more, then frees both:

counter start 256 MB committed pages touched + 1 GB reserved freed
K32GetProcessMemoryInfo PrivateUsage (Wine returns cb = 72, the plain struct) 0 0 0 0 0
PagefileUsage 41991 MB 41991 41991 41991 41991
NtQueryInformationProcess(ProcessVmCounters) VirtualSize 42011 MB 42011 42267 42268 42012
WorkingSetSize 20 MB 20 276 277 21
VirtualQuery sum of MEM_COMMIT + MEM_PRIVATE regions 7 MB 263 263 263 7

Only the VirtualQuery sum follows the commit (+256 MB, back on free). The walk took about 0.1 ms for 146 regions in the test process.

The title-memory side. kernelx::process_private_bytes falls back to PagefileUsage when PrivateUsage is 0, and TitleMemoryStatus / XMemGetWorkingSetStatistics use it. On this Mac that's ~42 GB, so used = min(42 GB, budget) and titles are told 0 bytes of title memory are available. This PR keeps that fallback for the guest APIs, so on a Mac it stays that way.

What I'd suggest: keep your Linux choice, and where PrivateUsage is 0 and the host isn't Linux, use the VirtualQuery sum, for the activity log and for process_private_bytes alike. A unit test that commits 256 MB and expects the counter to rise by at least 192 MB passes with that on the Mac and fails without it (44647677952 -> 44647682048, 4 KB for a 256 MB commit, on main's fallback). One caveat: memory D3DMetal allocates on the macOS side, outside Wine's views, isn't in the sum, so a Mac figure compares with another Mac run (main against a PR, which is what peak commit needs), not with Windows.

If you'd like to fold it in here, the diff (+44/-15 with the test) is ready and I'll post it; otherwise I'll open it as a PR stacked on this one once you're happy with the Linux part. Either way the Mac smoke pairs (peak commit: 0 MB on every Mac block in #258 so far) get a number the merge rule can compare.

Tested: MacBook Pro M5 Pro, macOS 27.2.1, CrossOver 26.3 / Wine 11.0, Rust 1.100.0 x86_64-pc-windows-gnu, debug, main 568e7db; the probe and the two kernelx tests (process_private_bytes_counts_a_commit, title_memory_status_reports_budget) each in their own process. Not tested: Windows, Linux, a title.

AI use: Claude Code. A Claude Opus 5.5 agent wrote the probe and the fix and ran them; Claude Opus 5.5 checked the code paths and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7158604449 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7158604449). Originally posted by [vakaobr](https://github.com/vakaobr) on 2026-11-25T09:38:29Z. --- @Filip722 the macOS side of this, measured, since this PR leaves it at 0 on purpose: on CrossOver one counter does follow the commit, and the title-memory API has the same problem worse. **What each counter does under CrossOver 26.3 (Wine 11.0) on macOS.** A probe commits 256 MB with `VirtualAlloc`, touches every page, reserves 1 GB more, then frees both: | counter | start | 256 MB committed | pages touched | + 1 GB reserved | freed | |---|---|---|---|---|---| | `K32GetProcessMemoryInfo` `PrivateUsage` (Wine returns `cb` = 72, the plain struct) | 0 | 0 | 0 | 0 | 0 | | `PagefileUsage` | 41991 MB | 41991 | 41991 | 41991 | 41991 | | `NtQueryInformationProcess(ProcessVmCounters)` `VirtualSize` | 42011 MB | 42011 | 42267 | 42268 | 42012 | | `WorkingSetSize` | 20 MB | 20 | 276 | 277 | 21 | | `VirtualQuery` sum of `MEM_COMMIT` + `MEM_PRIVATE` regions | 7 MB | **263** | **263** | **263** | **7** | Only the `VirtualQuery` sum follows the commit (+256 MB, back on free). The walk took about 0.1 ms for 146 regions in the test process. **The title-memory side.** `kernelx::process_private_bytes` falls back to `PagefileUsage` when `PrivateUsage` is 0, and `TitleMemoryStatus` / `XMemGetWorkingSetStatistics` use it. On this Mac that's ~42 GB, so `used = min(42 GB, budget)` and titles are told **0 bytes of title memory are available**. This PR keeps that fallback for the guest APIs, so on a Mac it stays that way. **What I'd suggest:** keep your Linux choice, and where `PrivateUsage` is 0 and the host isn't Linux, use the `VirtualQuery` sum, for the activity log and for `process_private_bytes` alike. A unit test that commits 256 MB and expects the counter to rise by at least 192 MB passes with that on the Mac and fails without it (`44647677952 -> 44647682048`, 4 KB for a 256 MB commit, on `main`'s fallback). One caveat: memory D3DMetal allocates on the macOS side, outside Wine's views, isn't in the sum, so a Mac figure compares with another Mac run (main against a PR, which is what `peak commit` needs), not with Windows. If you'd like to fold it in here, the diff (+44/-15 with the test) is ready and I'll post it; otherwise I'll open it as a PR stacked on this one once you're happy with the Linux part. Either way the Mac smoke pairs (`peak commit: 0 MB` on every Mac block in #258 so far) get a number the merge rule can compare. Tested: MacBook Pro M5 Pro, macOS 27.2.1, CrossOver 26.3 / Wine 11.0, Rust 1.100.0 `x86_64-pc-windows-gnu`, debug, `main` `568e7db`; the probe and the two `kernelx` tests (`process_private_bytes_counts_a_commit`, `title_memory_status_reports_budget`) each in their own process. Not tested: Windows, Linux, a title. AI use: Claude Code. A Claude Opus 5.5 agent wrote the probe and the fix and ran them; Claude Opus 5.5 checked the code paths and wrote this comment.
ClosetPie107 commented 2026-11-25 12:19:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-25T12:19:30Z.


Linux / AMD RDNA4 (RADV, Wine + vkd3d-proton): full test suite on 6a57fd7

Merged onto main 5eaadb54 (clean merge) and compared with main run twice on the same machine.

Setup

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS (kernel 7.3.7)
  • Wine 11.23 (system), stock vkd3d-proton v3.1-83-gcae8353ed and DXVK dxgi.dll from GE-Proton11-16, DXC 1.9.2609.5
  • Debug build, cross-compiled for x86_64-pc-windows-msvc with cargo-xwin; test binaries run under Wine

Tested: cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 --skip <31 tests>

passed failed ignored
main 5eaadb54 2769 177 52
this PR merged 2771 176 52
  • Tests that fail with this PR and pass on main: none.
  • Tests this PR adds: 1 of 1 pass (activity_commit_uses_pagefile_only_on_linux_wine).
  • Passing here and failing on main: gpu::recomp::tests::gpu_qsad_and_mqsad (flaky on main under Wine).
About the failures on main and the 31 skipped tests (same for every PR in this batch)
  • Most of main's 177 failures under Wine come from #175: once a test has set up the real device, vkd3d-proton refuses the command allocators XCL adopts (d3d12_command_list_Reset: Invalid command allocator), and later tests get E_INVALIDARG (0x80070057). Running vkd3d-proton master with its vtable check taken out, hle::d3d12x::sparse::tests goes from 106 passed / 38 failed to 144 / 0.
  • The 31 skipped tests make vkd3d-proton's dxil-spirv call std::terminate() (Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private), which kills the whole test binary. They are the split-wave64, dispatch-chain and bridged-mask GPU tests, gpu_compute_mode_dispatch_abi, gpu_compute_thread_limits_leave_the_lanes_past_them_out, the two gpu_mesh_mode_* tests, and console_wave64_compute_through_the_pso_hook_dispatch_and_read_back, plus serialize_root_signature_strips_console_flags_and_preserves_pc_flags, whose null descriptor vkd3d-proton dereferences. The dxil-spirv ones crash the same way with vkd3d-proton master (f8c1cae8, dxil-spirv 93ab44c5).
  • main was run twice: same counts, same failure set. SKIPPED lines (same as main): no heap windows (2), no D3D12 debug layer (2-3), driver cache control not implemented in vkd3d-proton (1).

Not tested: Windows, NVIDIA, a retail title / scripts/smoke.ps1, a review of the diff. This is a test report, not a merge-check.

AI use: omp (Claude Opus 5.5) merged, built and ran the suites on this machine, compared the results with main, and drafted this report. The user asked for it to be posted.


Earlier report (older head)

Linux / AMD RDNA4 (RADV) test report for head bdf0913 merged locally onto main 1a0bbe3 (clean merge).

Environment

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS
  • Proton Experimental (experimental-11.0-20261112), vkd3d-proton v3.1 (#257 + dxil-spirv 53aac418), DXVK v3.1.1-209, DXC 1.9.2609.5, x86_64-pc-windows-gnu cross-compile

Tested (debug test binary under Wine, --test-threads=1 --nocapture)

  • activity: 1 passed, 0 failed, 0 ignored, 0 skipped (hle::kernelx::tests::activity_commit_uses_pagefile_only_when_allowed, 0.00 s).

Not tested: full workspace suite, retail title run on this head, native Windows or macOS.

AI use: T3 Code / Antigravity (Gemini 4 Neon) merged, built, ran the test on this machine, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7162220533 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7162220533). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-25T12:19:30Z. --- **Linux / AMD RDNA4 (RADV, Wine + vkd3d-proton): full test suite on `6a57fd7`** Merged onto `main` `5eaadb54` (clean merge) and compared with `main` run twice on the same machine. **Setup** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS (kernel 7.3.7) - Wine 11.23 (system), stock vkd3d-proton `v3.1-83-gcae8353ed` and DXVK `dxgi.dll` from GE-Proton11-16, DXC 1.9.2609.5 - Debug build, cross-compiled for `x86_64-pc-windows-msvc` with `cargo-xwin`; test binaries run under Wine **Tested:** `cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 --skip <31 tests>` | | passed | failed | ignored | |---|---|---|---| | `main` `5eaadb54` | 2769 | 177 | 52 | | this PR merged | 2771 | 176 | 52 | - **Tests that fail with this PR and pass on `main`:** none. - **Tests this PR adds:** 1 of 1 pass (`activity_commit_uses_pagefile_only_on_linux_wine`). - Passing here and failing on `main`: `gpu::recomp::tests::gpu_qsad_and_mqsad` (flaky on `main` under Wine). <details><summary>About the failures on <code>main</code> and the 31 skipped tests (same for every PR in this batch)</summary> - Most of `main`'s 177 failures under Wine come from #175: once a test has set up the real device, vkd3d-proton refuses the command allocators XCL adopts (`d3d12_command_list_Reset: Invalid command allocator`), and later tests get `E_INVALIDARG` (`0x80070057`). Running vkd3d-proton master with its vtable check taken out, `hle::d3d12x::sparse::tests` goes from 106 passed / 38 failed to 144 / 0. - The 31 skipped tests make vkd3d-proton's dxil-spirv call `std::terminate()` (`Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private`), which kills the whole test binary. They are the split-wave64, dispatch-chain and bridged-mask GPU tests, `gpu_compute_mode_dispatch_abi`, `gpu_compute_thread_limits_leave_the_lanes_past_them_out`, the two `gpu_mesh_mode_*` tests, and `console_wave64_compute_through_the_pso_hook_dispatch_and_read_back`, plus `serialize_root_signature_strips_console_flags_and_preserves_pc_flags`, whose null descriptor vkd3d-proton dereferences. The dxil-spirv ones crash the same way with vkd3d-proton master (`f8c1cae8`, dxil-spirv `93ab44c5`). - `main` was run twice: same counts, same failure set. `SKIPPED` lines (same as `main`): no heap windows (2), no D3D12 debug layer (2-3), driver cache control not implemented in vkd3d-proton (1). </details> **Not tested:** Windows, NVIDIA, a retail title / `scripts/smoke.ps1`, a review of the diff. This is a test report, not a `merge-check`. **AI use:** omp (Claude Opus 5.5) merged, built and ran the suites on this machine, compared the results with `main`, and drafted this report. The user asked for it to be posted. --- <details><summary>Earlier report (older head)</summary> Linux / AMD RDNA4 (RADV) test report for head `bdf0913` merged locally onto `main` `1a0bbe3` (clean merge). **Environment** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS - Proton Experimental (`experimental-11.0-20261112`), vkd3d-proton v3.1 (`#257` + `dxil-spirv` `53aac418`), DXVK `v3.1.1-209`, DXC `1.9.2609.5`, `x86_64-pc-windows-gnu` cross-compile **Tested** (debug test binary under Wine, `--test-threads=1 --nocapture`) - `activity`: **1 passed, 0 failed, 0 ignored, 0 skipped** (`hle::kernelx::tests::activity_commit_uses_pagefile_only_when_allowed`, 0.00 s). **Not tested:** full workspace suite, retail title run on this head, native Windows or macOS. **AI use:** T3 Code / Antigravity (Gemini 4 Neon) merged, built, ran the test on this machine, and drafted this report. </details>
throny commented 2026-11-25 18:04:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-25T17:37:26Z.


Two contributors checked independently and found that #2362 solves the same problem in a different way: #1607, group D103. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7169768174 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7169768174). Originally posted by [throny](https://github.com/throny) on 2026-11-25T17:37:26Z. --- <!-- xcl-1607-hint:D103 --> Two contributors checked independently and found that #2362 solves the same problem in a different way: #1607, group D103. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Filip722 commented 2026-11-25 22:06:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Filip722 on 2026-11-25T21:31:00Z.


I compared #2362's VirtualQuery count with the Linux PagefileUsage fallback on Bazzite 44 under GE-Proton 11-14. A standalone, asset-free probe reserved 1 GiB, committed 256 MiB of it, touched each page, and freed the region. Measured relative to the reserved state:

Step PagefileUsage Committed private regions
Commit 256 MiB +0 MiB +256 MiB
Touch each committed page +256 MiB +256 MiB
Free the region +0 MiB +0 MiB

PrivateUsage stayed zero throughout. This confirms the two methods overlap in the activity log and measure different things under Linux Wine. I'd keep the touched-page estimate for Linux and use the committed-region count on CrossOver, where the reported PagefileUsage follows virtual size. We can share one host-aware helper if we combine the activity and guest API fixes. The guest budget behavior on Linux deserves a separate check before changing its counter.

Codex (GPT-6) ran the synthetic probe and drafted this update.

<!-- greyfinch-sync:ivall/xcl:comment:7175180402 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7175180402). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-25T21:31:00Z. --- I compared #2362's `VirtualQuery` count with the Linux `PagefileUsage` fallback on Bazzite 44 under GE-Proton 11-14. A standalone, asset-free probe reserved 1 GiB, committed 256 MiB of it, touched each page, and freed the region. Measured relative to the reserved state: | Step | `PagefileUsage` | Committed private regions | | --- | ---: | ---: | | Commit 256 MiB | +0 MiB | +256 MiB | | Touch each committed page | +256 MiB | +256 MiB | | Free the region | +0 MiB | +0 MiB | `PrivateUsage` stayed zero throughout. This confirms the two methods overlap in the activity log and measure different things under Linux Wine. I'd keep the touched-page estimate for Linux and use the committed-region count on CrossOver, where the reported `PagefileUsage` follows virtual size. We can share one host-aware helper if we combine the activity and guest API fixes. The guest budget behavior on Linux deserves a separate check before changing its counter. Codex (GPT-6) ran the synthetic probe and drafted this update.
github-actions[bot] commented 2026-11-29 20:44:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:44:08Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262316095 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7262316095). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:44:08Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:48:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:48:12Z.


Triage (#1607) – head bdf0913

#2362 (draft) addresses the same problem, the commit in the memory log reading 0 under Wine, differently: it sums committed private regions with VirtualQuery for both the log and the guest title-memory APIs. This PR uses PagefileUsage only for the activity log and only when Wine reports a Linux host. The two are alternatives, not the same change.
The conflict is real. On main the log line in host.rs now takes its commit from memory_report::process_commit (PrivateUsage only), so the host.rs hunk no longer applies. A rebase has to route process_commit through process_commit_bytes(linux_wine()).
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:7301116797 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7301116797). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:48:12Z. --- **Triage (#1607)** – head bdf0913 #2362 (draft) addresses the same problem, the commit in the memory log reading 0 under Wine, differently: it sums committed private regions with VirtualQuery for both the log and the guest title-memory APIs. This PR uses PagefileUsage only for the activity log and only when Wine reports a Linux host. The two are alternatives, not the same change. The conflict is real. On main the log line in host.rs now takes its commit from `memory_report::process_commit` (PrivateUsage only), so the `host.rs` hunk no longer applies. A rebase has to route `process_commit` through `process_commit_bytes(linux_wine())`. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
mokkamokacaffe commented 2026-12-01 13:14:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-12-01T13:14:06Z.


Independent D103 review at bdf0913. I agree with Foniass on the scope. One detail worth preserving through the conflict repair is the distinction in activity_commit_uses_pagefile_only_when_allowed: with zero private usage and a large pagefile value, the activity estimate must stay zero when the Linux-Wine fallback is disabled. Guest title-memory queries still allow the fallback. #2362 changes those guest queries too.

Group D103 review on #1607. AI use: OpenAI Codex (GPT-6) read and compared both diffs. No builds or tests were run for this review.

<!-- greyfinch-sync:ivall/xcl:comment:7312305619 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7312305619). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-12-01T13:14:06Z. --- Independent D103 review at `bdf0913`. I agree with Foniass on the scope. One detail worth preserving through the conflict repair is the distinction in `activity_commit_uses_pagefile_only_when_allowed`: with zero private usage and a large pagefile value, the activity estimate must stay zero when the Linux-Wine fallback is disabled. Guest title-memory queries still allow the fallback. #2362 changes those guest queries too. [Group D103 review on #1607](https://github.com/xcl-dev/xcl/issues/1607#issuecomment-7181731426). AI use: OpenAI Codex (GPT-6) read and compared both diffs. No builds or tests were run for this review.
Foniass commented 2026-12-02 10:42:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T10:42:14Z.


Follow-up review (head 6a57fd78, since bdf0913, diff read, not a merge-check):

  • Triage (keep open as an alternative to #2362, needs a rebase through process_commit): fixed. The PR is one commit on current main, and memory_report::process_commit (memory_report.rs ~87) now goes through commit_bytes(c.PrivateUsage, c.PagefileUsage, crate::util::linux_wine()), which feeds the memory: line (host.rs ~177 / ~195) and the smoke peak commit. #2362 is still an open draft with another approach in the same file, so whichever merges second rebases.

New: none.

Fine: Linux is detected through Wine's own wine_get_host_version export (util.rs ~136-150), cached in a OnceLock, and false when the export is missing or sysname is null; on native Windows commit_bytes returns PrivateUsage unchanged; a failed query still gives None; the selector has a unit test and the README says the Wine figure is an estimate. Note main's smoke block reads peak commit: 0 MB, so the 125 % peak-commit comparison means nothing for this pair.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7342858335 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1097#issuecomment-7342858335). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T10:42:14Z. --- Follow-up review (head 6a57fd78, since bdf0913, diff read, not a merge-check): - **Triage (keep open as an alternative to #2362, needs a rebase through `process_commit`):** fixed. The PR is one commit on current `main`, and `memory_report::process_commit` (`memory_report.rs` ~87) now goes through `commit_bytes(c.PrivateUsage, c.PagefileUsage, crate::util::linux_wine())`, which feeds the `memory:` line (`host.rs` ~177 / ~195) and the smoke `peak commit`. #2362 is still an open draft with another approach in the same file, so whichever merges second rebases. New: none. Fine: Linux is detected through Wine's own `wine_get_host_version` export (`util.rs` ~136-150), cached in a `OnceLock`, and false when the export is missing or `sysname` is null; on native Windows `commit_bytes` returns `PrivateUsage` unchanged; a failed query still gives `None`; the selector has a unit test and the README says the Wine figure is an estimate. Note `main`'s smoke block reads `peak commit: 0 MB`, so the 125 % peak-commit comparison means nothing for this pair. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
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/1097:upstream-pr/1097'
git switch 'upstream-pr/1097'

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/1097'
git switch 'upstream-pr/1097'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1097'
git switch 'upstream-pr/1097'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1097'
git switch 'main'
git merge --squash 'upstream-pr/1097'
git switch 'main'
git merge --ff-only 'upstream-pr/1097'
git switch 'main'
git merge 'upstream-pr/1097'
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!1088
No description provided.