Skip to content

[upstream #1097] xcl run: report process memory under Wine - #61

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1097
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1097

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

The activity log reports zero process memory on Wine because K32GetProcessMemoryInfo leaves PrivateUsage unset. Reusing the existing PagefileUsage fallback gives Wine users a process-memory estimate while troubleshooting streaming and allocation failures.

What is in it

  • Share the existing kernelx::process_private_bytes helper with host.rs. Keep the activity log format consumed by the smoke script.
  • Document XCL_ACTIVITY=1 and what the Wine memory figure measures.

Tested

  • RTX 5060 Laptop GPU (8 GB, NVIDIA 615.78.08), Intel Core 7 240H, Bazzite 44 Testing F44.20261011, kernel 7.2.9-ogc2.1.fc44.x86_64. Windows MSVC release binaries cross-built with Rust 1.98.1 and run on Proton Experimental 11.0-20261112, vkd3d-proton v3.1 4522cc1 with the [upstream #1899] D3D12.X: forget released command queues from vram::Pages::waited #257 compatibility changes and dxil-spirv 1dc543f.
  • cargo xwin test --locked --release --target x86_64-pc-windows-msvc --workspace --no-run, then all 18 Windows test binaries under Proton with --test-threads=4 --nocapture. Main and head each reported 736 passed, 5 failed and 41 ignored. Both failed the same five checks on this setup: the Opus and XMA2 source-voice lifetime tests, the hidden-window check, PLS missing-path error code, and native GPU copy predication. Four tests counted as passing reported SKIPPED: two wave64 tests and two D3D12 debug-layer tests. Optional retail fixtures were unset. title_memory_status_reports_budget passed on both builds.
  • With the same offline title and 25-second run, peak memory was 0 MB on main and 4022 MB with the fix. Both builds exited normally on the RTX 5060. PowerShell ran the repository's smoke script with a launcher wrapper for Proton and host log paths.

Regression run

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 5060 Laptop GPU
title: package
seconds: 25
exit: 0x0
frames shown: 418 (PresentX 418)
presents per 2 s (last 3): 6 60 60
device removals: 0
crashes: 0
peak commit: 0 MB
xcl-smoke v1
commit: 54221a06832467622d78af242796e4adf43414f8
gpu: NVIDIA GeForce RTX 5060 Laptop GPU
title: package
seconds: 25
exit: 0x0
frames shown: 432 (PresentX 432)
presents per 2 s (last 3): 15 23 60
device removals: 0
crashes: 0
peak commit: 4022 MB

Not tested

Native Windows and AMD hardware were unavailable locally. The retail smoke run covered early startup only.

AI use

OpenAI Codex with GPT-6.2-Sol high investigated the Wine memory API, wrote the change, ran the validation and drafted this report.


Mirror of xcl-dev#1097 (auto-synced, do not edit).

Wine leaves PrivateUsage unset, which makes the activity log report zero process memory. Reuse the existing title-memory fallback to PagefileUsage so pressure is visible during a run.

Assisted-by: OpenAI Codex (GPT-6.2-Sol high)
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1097 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1097 branch November 25, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants