xcl run: add opt-in XCL_TITLE_COMMIT_CAP_MB job memory limit (#1566) #1831

Open
github-bot wants to merge 2 commits from github-bot/gh-1831 into main AGit
Owner

@⁠fixgep on GitHub · 2026-11-24 21:34 UTC · original
fixgep:feat/title-commit-cap-mb → main · +820 −15 · 12 files · 2 commits · open

Adds an opt-in process commit cap via XCL_TITLE_COMMIT_CAP_MB (disabled when unset or 0) as an outer native-Windows safety fuse against runaway commit, plus OOM diagnostics when the cap is active. When set to a positive MiB value on native Windows, the host verifies JOB_OBJECT_LIMIT_PROCESS_MEMORY enforcement (failing closed on Wine via ntdll!wine_get_version or when a guarded xcl.exe child probe shows VirtualAlloc is not constrained), creates and assigns a Windows Job Object (ProcessMemoryLimit = cap_mb * 1024 * 1024) before mapping or starting the title, keeps the handle alive for the host run, logs a clear diagnostic naming XCL_TITLE_COMMIT_CAP_MB and current process commit on D3D12 heap OOM refusals, and records allocation-free failure details in xcl.log and report.json before fatal Rust OOM fail-fast (0xc0000409). When enforcement is unsupported (such as Wine/Linux), XCL warns and leaves the cap inactive so logs and crash/OOM reports never advertise an unenforced limit. Part of #1566.

What is in it

  • crates/xcl/src/config.rs: ENV_TITLE_COMMIT_CAP_MB, parse_title_commit_cap_mb, title_commit_cap_mb_from_env, documentation noting native Windows Job Object dependency vs Linux cgroup MemoryMax / external free-RAM guards, and unit tests for unset/zero/positive/invalid values.
  • crates/xcl/src/host.rs, crates/xcl/src/main.rs, crates/xcl/src/util.rs: CommitCapJob, apply_commit_cap_mb, apply_commit_cap_from_env, check_commit_cap_enforcement (under_wine() check + XCL_COMMIT_CAP_PROBE child probe via commit_cap_probe_main), active_commit_cap_mb, current_process_commit_bytes / current_process_commit_mb, format_commit_cap_oom, log_commit_cap_if_active, StackBuf, and unit/subprocess tests verifying uncapped vs 64 MB capped VirtualAlloc/Vec::try_reserve, unsupported/Wine fail-closed behavior, probe exit status, and OOM formatting.
  • crates/xcl/src/hle/d3d12x/vram.rs, crates/xcl/src/hle/d3d12x/sparse.rs, crates/xcl/src/hle/d3d12x/real.rs: log XCL_TITLE_COMMIT_CAP_MB, the configured cap MiB, and current process commit MiB when CreateHeap / CreateHeap1 fails with OOM while the cap is active.
  • crates/xcl/src/hooks.rs, crates/xcl/src/eh.rs, crates/xcl/src/log.rs, crates/xcl/src/report.rs: hook std::alloc::handle_alloc_error via hook_addr, write an allocation-free emergency line to xcl.log (write_emergency) and an allocation-free report.json (write_emergency_alloc_error using pre-cached startup metadata and StackBuf) before 0xc0000409 fail-fast, with unit and subprocess tests (asserting active cap reporting on native Windows and no inactive cap advertisement on Wine).
  • README.md: document XCL_TITLE_COMMIT_CAP_MB=N, its hard-limit outer safety-fuse behavior, and the requirement for Linux cgroup MemoryMax and/or external free-RAM guards under Wine/Linux.

Tested

  • Hardware & toolchain: NVIDIA GeForce RTX 3060 (driver 32.0.15.9144), AMD Ryzen 5 7500F 6-Core Processor, Windows 10.0.26200.0, rustc 1.100.0 (0ef1bc386 2026-11-09), debug (cargo test) & release (cargo build --release -p xcl).
  • cargo build --workspace: succeeded with zero new compiler warnings (3 pre-existing warnings: Atomic::fetch_update deprecation in real.rs and xgameruntime/mod.rs, RetiringBatch::heaps dead-code warning in vram.rs).
  • Targeted unit/subprocess tests on 3a435628:
    • cargo test -p xcl --lib commit_cap -- --nocapture --test-threads=1: 7 passed, 0 failed, 0 ignored (title_commit_cap_mb_parsing, alloc_error_hook_logs_active_commit_cap_and_writes_report, commit_cap_probe_reports_host_enforcement, commit_cap_query_and_oom_formatting, rejects_zero_and_overflow_commit_cap, title_commit_cap_enforced_only_when_positive, unsupported_commit_cap_enforcement_fails_closed).
    • cargo test -p xcl --lib host -- --test-threads=4: 8 passed, 0 failed, 0 ignored.
    • cargo test -p xcl --lib emergency_oom_report -- --test-threads=1: 1 passed, 0 failed, 0 ignored.
    • XCL_COMMIT_CAP_PROBE=1 on release xcl.exe: exited 0.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1442 passed, 1 failed (gpu::recomp::tests::gpu_clamp_and_omod_per_instruction on lane 0 v_pk_add_i16 clamp, pre-existing on RTX 3060), 47 ignored (SKIPPED GPU/driver-cache/heap tests: 21 no wave64, 3 refused wave32 per-lane in gpu::recomp::lower_dxil::tests, 1 cannot disable the driver cache in shaders::tests::pso_measurement_compiles_an_exact_synthetic_record, 1 no heap windows in heap_window_out_of_memory_falls_back_to_the_switch_form; XCL_SAMPLE_* tests skipped sample bodies because those env vars are unset).

Regression run

main:


xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 3060
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1609 (PresentX 1609)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13968 MB

PR:


xcl-smoke v1
commit: 3a435628168f1732bb0345b7fd3150ff40c3a59c
gpu: NVIDIA GeForce RTX 3060
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1589 (PresentX 1589)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13939 MB

Not tested

  • Wine / Linux host run on the updated code (the Wine branches in host.rs and eh.rs were verified on Windows via unsupported_commit_cap_enforcement_fails_closed, and native under_wine() == false paths ran end-to-end).
  • AMD / wave64 GPUs (no wave64 on RTX 3060) and XCL_SAMPLE_* retail test inputs.
  • Long multi-minute retail runs hitting a positive XCL_TITLE_COMMIT_CAP_MB limit (covered via synthetic 64 MiB subprocess tests).

AI use

  • Antigravity (Gemini 4 Hydrogen): rebased onto upstream/main, implemented Wine/unsupported enforcement detection and fail-closed diagnostics, updated unit/subprocess tests and documentation, ran builds, workspace/targeted tests, and smoke runs, and updated the PR description.
**@⁠fixgep** on GitHub · 2026-11-24 21:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831) `fixgep:feat/title-commit-cap-mb` → `main` · +820 −15 · 12 files · 2 commits · open Adds an opt-in process commit cap via `XCL_TITLE_COMMIT_CAP_MB` (disabled when unset or `0`) as an outer native-Windows safety fuse against runaway commit, plus OOM diagnostics when the cap is active. When set to a positive MiB value on native Windows, the host verifies `JOB_OBJECT_LIMIT_PROCESS_MEMORY` enforcement (failing closed on Wine via `ntdll!wine_get_version` or when a guarded `xcl.exe` child probe shows `VirtualAlloc` is not constrained), creates and assigns a Windows Job Object (`ProcessMemoryLimit = cap_mb * 1024 * 1024`) before mapping or starting the title, keeps the handle alive for the host run, logs a clear diagnostic naming `XCL_TITLE_COMMIT_CAP_MB` and current process commit on D3D12 heap OOM refusals, and records allocation-free failure details in `xcl.log` and `report.json` before fatal Rust OOM fail-fast (`0xc0000409`). When enforcement is unsupported (such as Wine/Linux), XCL warns and leaves the cap inactive so logs and crash/OOM reports never advertise an unenforced limit. Part of #1566. **What is in it** - `crates/xcl/src/config.rs`: `ENV_TITLE_COMMIT_CAP_MB`, `parse_title_commit_cap_mb`, `title_commit_cap_mb_from_env`, documentation noting native Windows Job Object dependency vs Linux cgroup `MemoryMax` / external free-RAM guards, and unit tests for unset/zero/positive/invalid values. - `crates/xcl/src/host.rs`, `crates/xcl/src/main.rs`, `crates/xcl/src/util.rs`: `CommitCapJob`, `apply_commit_cap_mb`, `apply_commit_cap_from_env`, `check_commit_cap_enforcement` (`under_wine()` check + `XCL_COMMIT_CAP_PROBE` child probe via `commit_cap_probe_main`), `active_commit_cap_mb`, `current_process_commit_bytes` / `current_process_commit_mb`, `format_commit_cap_oom`, `log_commit_cap_if_active`, `StackBuf`, and unit/subprocess tests verifying uncapped vs `64` MB capped `VirtualAlloc`/`Vec::try_reserve`, unsupported/Wine fail-closed behavior, probe exit status, and OOM formatting. - `crates/xcl/src/hle/d3d12x/vram.rs`, `crates/xcl/src/hle/d3d12x/sparse.rs`, `crates/xcl/src/hle/d3d12x/real.rs`: log `XCL_TITLE_COMMIT_CAP_MB`, the configured cap MiB, and current process commit MiB when `CreateHeap` / `CreateHeap1` fails with OOM while the cap is active. - `crates/xcl/src/hooks.rs`, `crates/xcl/src/eh.rs`, `crates/xcl/src/log.rs`, `crates/xcl/src/report.rs`: hook `std::alloc::handle_alloc_error` via `hook_addr`, write an allocation-free emergency line to `xcl.log` (`write_emergency`) and an allocation-free `report.json` (`write_emergency_alloc_error` using pre-cached startup metadata and `StackBuf`) before `0xc0000409` fail-fast, with unit and subprocess tests (asserting active cap reporting on native Windows and no inactive cap advertisement on Wine). - `README.md`: document `XCL_TITLE_COMMIT_CAP_MB=N`, its hard-limit outer safety-fuse behavior, and the requirement for Linux cgroup `MemoryMax` and/or external free-RAM guards under Wine/Linux. **Tested** - Hardware & toolchain: NVIDIA GeForce RTX 3060 (driver `32.0.15.9144`), AMD Ryzen 5 7500F 6-Core Processor, Windows `10.0.26200.0`, `rustc 1.100.0 (0ef1bc386 2026-11-09)`, debug (`cargo test`) & release (`cargo build --release -p xcl`). - `cargo build --workspace`: succeeded with zero new compiler warnings (3 pre-existing warnings: `Atomic::fetch_update` deprecation in `real.rs` and `xgameruntime/mod.rs`, `RetiringBatch::heaps` dead-code warning in `vram.rs`). - Targeted unit/subprocess tests on `3a435628`: - `cargo test -p xcl --lib commit_cap -- --nocapture --test-threads=1`: 7 passed, 0 failed, 0 ignored (`title_commit_cap_mb_parsing`, `alloc_error_hook_logs_active_commit_cap_and_writes_report`, `commit_cap_probe_reports_host_enforcement`, `commit_cap_query_and_oom_formatting`, `rejects_zero_and_overflow_commit_cap`, `title_commit_cap_enforced_only_when_positive`, `unsupported_commit_cap_enforcement_fails_closed`). - `cargo test -p xcl --lib host -- --test-threads=4`: 8 passed, 0 failed, 0 ignored. - `cargo test -p xcl --lib emergency_oom_report -- --test-threads=1`: 1 passed, 0 failed, 0 ignored. - `XCL_COMMIT_CAP_PROBE=1` on release `xcl.exe`: exited `0`. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1442 passed, 1 failed (`gpu::recomp::tests::gpu_clamp_and_omod_per_instruction` on `lane 0 v_pk_add_i16 clamp`, pre-existing on RTX 3060), 47 ignored (`SKIPPED` GPU/driver-cache/heap tests: 21 `no wave64`, 3 `refused` wave32 per-lane in `gpu::recomp::lower_dxil::tests`, 1 `cannot disable the driver cache` in `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record`, 1 `no heap windows` in `heap_window_out_of_memory_falls_back_to_the_switch_form`; `XCL_SAMPLE_*` tests skipped sample bodies because those env vars are unset). **Regression run** main: ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 3060 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1609 (PresentX 1609) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13968 MB ``` PR: ``` xcl-smoke v1 commit: 3a435628168f1732bb0345b7fd3150ff40c3a59c gpu: NVIDIA GeForce RTX 3060 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1589 (PresentX 1589) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13939 MB ``` **Not tested** - Wine / Linux host run on the updated code (the Wine branches in `host.rs` and `eh.rs` were verified on Windows via `unsupported_commit_cap_enforcement_fails_closed`, and native `under_wine() == false` paths ran end-to-end). - AMD / wave64 GPUs (`no wave64` on RTX 3060) and `XCL_SAMPLE_*` retail test inputs. - Long multi-minute retail runs hitting a positive `XCL_TITLE_COMMIT_CAP_MB` limit (covered via synthetic 64 MiB subprocess tests). **AI use** - Antigravity (Gemini 4 Hydrogen): rebased onto `upstream/main`, implemented Wine/unsupported enforcement detection and fail-closed diagnostics, updated unit/subprocess tests and documentation, ran builds, workspace/targeted tests, and smoke runs, and updated the PR description.
Part of #1566.

Assisted-by: Antigravity (Gemini 4 Hydrogen)
Part of #1566.

Record the active XCL_TITLE_COMMIT_CAP_MB limit and current process commit in MiB on D3D12 heap OOM warnings and before fatal Rust alloc-error fail-fast (writing allocation-free diagnostics to xcl.log and report.json).

Assisted-by: Antigravity (Gemini 4 Hydrogen)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:06:41 +00:00
Author
Owner

@⁠gabrielsteglich on GitHub · 2026-11-24 22:21 UTC · original

Independent Windows/NVIDIA validation of the commit cap.

I merged PR head f0dbb087f3ec781bc740c816404f723fd7cd4e20 onto main at 1d027e5c76c9a86a7ee2ca1cc677edf0be95d331 locally, producing 1336bdceaa1ba6063b941d6132a51ff44df694af.

  • Windows 11 Pro build 26300, Intel Core i9-13900K, NVIDIA GeForce RTX 3090 (621.01), Rust 1.97.0 MSVC, and DXC 1.9.2602.17. Debug builds.
  • cargo test --offline --locked -p xcl --lib title_commit_cap -- --test-threads=4 --show-output passed both tests. title_commit_cap_mb_parsing and title_commit_cap_enforced_only_when_positive passed, including the capped and uncapped subprocess cases.
  • cargo build --offline --locked --workspace succeeded. cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output reported 962 passed, 0 failed, and 43 ignored. Cargo's pass count includes cases that returned early. Optional sample-data tests were disabled.
24 SKIPPED messages
SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll
SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))

The validation used synthetic tests. Startup and world loading with the cap enabled remain untested on this machine.

AI use — OpenAI's coding agent with GPT-6 ran the local validation and drafted this report.

**@⁠gabrielsteglich** on GitHub · 2026-11-24 22:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7146121551) Independent Windows/NVIDIA validation of the commit cap. I merged PR head `f0dbb087f3ec781bc740c816404f723fd7cd4e20` onto `main` at `1d027e5c76c9a86a7ee2ca1cc677edf0be95d331` locally, producing `1336bdceaa1ba6063b941d6132a51ff44df694af`. - Windows 11 Pro build 26300, Intel Core i9-13900K, NVIDIA GeForce RTX 3090 (621.01), Rust 1.97.0 MSVC, and DXC 1.9.2602.17. Debug builds. - `cargo test --offline --locked -p xcl --lib title_commit_cap -- --test-threads=4 --show-output` passed both tests. `title_commit_cap_mb_parsing` and `title_commit_cap_enforced_only_when_positive` passed, including the capped and uncapped subprocess cases. - `cargo build --offline --locked --workspace` succeeded. `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output` reported **962 passed, 0 failed, and 43 ignored**. Cargo's pass count includes cases that returned early. Optional sample-data tests were disabled. <details> <summary>24 SKIPPED messages</summary> ``` SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64 SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)) ``` </details> The validation used synthetic tests. Startup and world loading with the cap enabled remain untested on this machine. AI use — OpenAI's coding agent with GPT-6 ran the local validation and drafted this report.
Author
Owner

@⁠tikD1337 on GitHub · 2026-11-24 23:52 UTC · original

Test report on a local merge of main 20cf130 + #1809, #1852, #1798 and this PR (release build).

Setup: NVIDIA GeForce RTX 4070 Ti SUPER 16 GB, driver 621.01, 31.6 GB RAM, Windows 11 Pro. Retail title, XCL_TITLE_COMMIT_CAP_MB=24000.

What happened

  • xcl.log confirms the cap: process commit cap: 24000 MB (XCL_TITLE_COMMIT_CAP_MB).
  • At 61.15–61.25 s, 28 × CreateHeap(0x4000000 bytes, type 1, alignment 0x0, flags 0x0) refused (0x8007000e), each followed by no video memory for more pages of title textures (0x8007000E). Those are the last lines of the log.
  • Then the process ended with 0xC0000409. There is no process ends with status line and no thread dump in xcl.log, and report.json has "crash": null, "exit_code": null.

What it does not show: whether the 24 GB was really reached or the limit counts more than the title's own commit. The same build without the cap grew by about 30 GB of commit in 100 s in the next two runs, and an external guard stopped them. So the cap likely did stop real growth here.

Two points for this PR

  1. A refusal by the job limit reaches the log as "no video memory", and the cap is not named. A line saying that an allocation failed while the cap is set, with the process's commit at that moment, would tell the two apart.
  2. Reaching the cap ends the title with a fail-fast and no report, so xcl.log and report.json do not say why the run ended.

No game data is included. The report was written with Claude Code (Claude Opus 5.5) from the run's xcl.log and report.json; the run was done by the person posting.

**@⁠tikD1337** on GitHub · 2026-11-24 23:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7147896431) Test report on a local merge of `main` `20cf130` + #1809, #1852, #1798 and this PR (release build). **Setup:** NVIDIA GeForce RTX 4070 Ti SUPER 16 GB, driver 621.01, 31.6 GB RAM, Windows 11 Pro. Retail title, `XCL_TITLE_COMMIT_CAP_MB=24000`. **What happened** - `xcl.log` confirms the cap: `process commit cap: 24000 MB (XCL_TITLE_COMMIT_CAP_MB)`. - At 61.15–61.25 s, 28 × `CreateHeap(0x4000000 bytes, type 1, alignment 0x0, flags 0x0) refused (0x8007000e)`, each followed by `no video memory for more pages of title textures (0x8007000E)`. Those are the last lines of the log. - Then the process ended with `0xC0000409`. There is no `process ends with status` line and no thread dump in `xcl.log`, and `report.json` has `"crash": null, "exit_code": null`. **What it does not show:** whether the 24 GB was really reached or the limit counts more than the title's own commit. The same build without the cap grew by about 30 GB of commit in 100 s in the next two runs, and an external guard stopped them. So the cap likely did stop real growth here. **Two points for this PR** 1. A refusal by the job limit reaches the log as "no video memory", and the cap is not named. A line saying that an allocation failed while the cap is set, with the process's commit at that moment, would tell the two apart. 2. Reaching the cap ends the title with a fail-fast and no report, so `xcl.log` and `report.json` do not say why the run ended. No game data is included. The report was written with Claude Code (Claude Opus 5.5) from the run's `xcl.log` and `report.json`; the run was done by the person posting.
Author
Owner

@⁠zorde23 on GitHub · 2026-11-25 00:40 UTC · original

Test report on an AMD RX 6750 XT (12 GB, driver 32.0.21045.29003), Ryzen 7 5700X, 32 GB RAM (45 GB commit limit), Windows build 26200, release build.

What was tested: f0dbb08 cherry-picked onto main 80f4819 (one conflict in config.rs, where #1053 added parse_device_type at the same place; kept both). XCL_TITLE_COMMIT_CAP_MB=20480. The same build also had local diagnostics (memory by kind, a commit guard), which are also in the main run it is compared with.

Run: the retail title, 300 s, A pressed at 15-35 s to reach the world, XCL_PSO_PRELOAD=0, XCL_ACTIVITY=1.

main 80f4819 with #1831 at 20,480 MB
end stopped by my guard at 150 s (system commit) exit 0xC0000409 at 110 s
frames drop to 0-20 per 2 s at 76 s 79 s
process commit at 96 s 21.9 GB 20.5 GB
local video memory at 96 s 10.5 GB 9.2 GB
  • Same exit as one of @⁠tugasky's runs at this cap in #1566 (0xC0000409 at 101 s), here at 110 s.
  • On this driver XCL's video memory is part of the process commit (#1566, comment of today): about 9.4 of 20.9 GB at 96 s in a main run. So with this cap the texture pages and pools count against the 20,480 MB too.
  • The frames drop at the same time as on main, before the cap is reached.

Not tested: other caps, NVIDIA, a full cargo test --workspace on this build.

Written with Claude Code from runs on this machine.

**@⁠zorde23** on GitHub · 2026-11-25 00:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7148760672) Test report on an AMD RX 6750 XT (12 GB, driver 32.0.21045.29003), Ryzen 7 5700X, 32 GB RAM (45 GB commit limit), Windows build 26200, release build. **What was tested:** f0dbb08 cherry-picked onto `main` 80f4819 (one conflict in `config.rs`, where #1053 added `parse_device_type` at the same place; kept both). `XCL_TITLE_COMMIT_CAP_MB=20480`. The same build also had local diagnostics (memory by kind, a commit guard), which are also in the `main` run it is compared with. **Run:** the retail title, 300 s, A pressed at 15-35 s to reach the world, `XCL_PSO_PRELOAD=0`, `XCL_ACTIVITY=1`. | | `main` 80f4819 | with #1831 at 20,480 MB | |---|---|---| | end | stopped by my guard at 150 s (system commit) | exit `0xC0000409` at 110 s | | frames drop to 0-20 per 2 s at | 76 s | 79 s | | process commit at 96 s | 21.9 GB | 20.5 GB | | local video memory at 96 s | 10.5 GB | 9.2 GB | - Same exit as one of @⁠tugasky's runs at this cap in #1566 (`0xC0000409` at 101 s), here at 110 s. - On this driver XCL's video memory is part of the process commit (#1566, comment of today): about 9.4 of 20.9 GB at 96 s in a `main` run. So with this cap the texture pages and pools count against the 20,480 MB too. - The frames drop at the same time as on `main`, before the cap is reached. **Not tested:** other caps, NVIDIA, a full `cargo test --workspace` on this build. Written with Claude Code from runs on this machine.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 00:50 UTC · original

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

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

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 00:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7148944692) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠thiagocalile on GitHub · 2026-11-25 01:19 UTC · original

Tested commit f0dbb08 locally merged onto main 62265d3 (1-spot conflict in crates/xcl/src/config.rs with #1053's parse_device_type) on an AMD Radeon RX 6600 (8 GB VRAM, native wave64).

Tested

  • Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, driver 32.0.21045.29003; XCL_ADAPTER=radeon), Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (26200), Rust 1.100.0 MSVC, DXC 1.8.2502.11.
  • XCL_ADAPTER=radeon cargo test -p xcl --lib title_commit_cap -- --nocapture: 2 passed, 0 failed, 0 ignored (0.04 s).
  • 90 s scripts/smoke.ps1 world-load sweep (release, XCL_DIRECT_DXIL=1, XCL_PRESS_A_AT=15,25,35):
    • Uncapped: exit 0x0, 2,348 frames (60 60 60), peak commit 23,979 MB, 0 crashes.
    • XCL_TITLE_COMMIT_CAP_MB=20480: exit 0x80000003, peak commit 20,241 MB (CreateHeap(64 MiB) refused 0x8007000E at 58.1 s).
    • XCL_TITLE_COMMIT_CAP_MB=16384: exit 0xc0000409, peak commit 16,224 MB (silent __fastfail inside XCL/CRT).

Note / possible follow-up (cross-linked with #1566):
We also tested adding a 2 GiB soft title-only headroom in kernelx.rs (VirtualAlloc MEM_COMMIT, XMemAllocDefault, AllocateTitlePhysicalPages) below the hard job cap so XCL's own allocations don't trigger silent 0xC0000409 (full table & snippet in #1566). That turned 0xC0000409 into a clean logged refusal at 16,384 MB (42.9 s), while confirming that above ~18.4 GB the remaining climb is XCL's own vram::Pages CreateHeap(64 MiB) pools — so #1831 is best documented as an outer safety fuse against runaway commit (and needs a quick rebase on config.rs).

Not tested

  • Full workspace suite at the merged commit, NVIDIA / Intel GPUs, Linux / Wine.

AI use

  • Antigravity (Gemini 4 Neon) ran the unit tests and 90 s RX 6600 smoke sweep and drafted this report; I checked the output before posting.
**@⁠thiagocalile** on GitHub · 2026-11-25 01:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7149429584) Tested commit `f0dbb08` locally merged onto `main` `62265d3` (1-spot conflict in `crates/xcl/src/config.rs` with #1053's `parse_device_type`) on an **AMD Radeon RX 6600 (8 GB VRAM, native wave64)**. **Tested** - Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, driver `32.0.21045.29003`; `XCL_ADAPTER=radeon`), Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (`26200`), Rust `1.100.0` MSVC, DXC `1.8.2502.11`. - `XCL_ADAPTER=radeon cargo test -p xcl --lib title_commit_cap -- --nocapture`: **2 passed, 0 failed, 0 ignored** (`0.04 s`). - 90 s `scripts/smoke.ps1` world-load sweep (release, `XCL_DIRECT_DXIL=1`, `XCL_PRESS_A_AT=15,25,35`): - **Uncapped**: `exit 0x0`, **2,348 frames** (`60 60 60`), peak commit **`23,979 MB`**, 0 crashes. - **`XCL_TITLE_COMMIT_CAP_MB=20480`**: `exit 0x80000003`, peak commit **`20,241 MB`** (`CreateHeap(64 MiB)` refused `0x8007000E` at `58.1 s`). - **`XCL_TITLE_COMMIT_CAP_MB=16384`**: `exit 0xc0000409`, peak commit **`16,224 MB`** (silent `__fastfail` inside XCL/CRT). **Note / possible follow-up (cross-linked with #1566):** We also tested adding a 2 GiB soft title-only headroom in `kernelx.rs` (`VirtualAlloc` `MEM_COMMIT`, `XMemAllocDefault`, `AllocateTitlePhysicalPages`) below the hard job cap so XCL's own allocations don't trigger silent `0xC0000409` (full table & snippet in #1566). That turned `0xC0000409` into a clean logged refusal at `16,384 MB` (`42.9 s`), while confirming that above ~18.4 GB the remaining climb is XCL's own `vram::Pages` `CreateHeap(64 MiB)` pools — so #1831 is best documented as an outer safety fuse against runaway commit (and needs a quick rebase on `config.rs`). **Not tested** - Full workspace suite at the merged commit, NVIDIA / Intel GPUs, Linux / Wine. **AI use** - Antigravity (Gemini 4 Neon) ran the unit tests and 90 s RX 6600 smoke sweep and drafted this report; I checked the output before posting.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 04:25 UTC · original

XCL PR #1831 verification

Clean detached head f0dbb087f3ec781bc740c816404f723fd7cd4e20. The diff changes README.md, crates/xcl/src/config.rs, and crates/xcl/src/host.rs.

STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 build 26200 on a Ryzen 7 3800X with Intel Arc A770 (16 GiB, driver 32.0.101.9175). DXC reported 1.9.2609.5. Rust was rustc 1.100.0 (0ef1bc386 2026-11-09), x86_64-pc-windows-msvc. Cargo used unoptimized dev/test profiles with debug info and incremental compilation disabled.

Tested

  • cargo build --workspace and cargo test --workspace --no-run both succeeded outside the Arc lock. The latter compiled 19 test binaries.
  • cargo test -p xcl --lib commit_cap with XCL_ADAPTER=NONE_CPU_ONLY outside the lock yielded 3 passed, 0 failed, 0 ignored, and 0 explicit skips. The tests covered unset, blank, zero, positive, and invalid input plus zero and overflow rejection by the Windows cap helper. Child processes committed 128 MiB via VirtualAlloc with the cap unset or zero. Under the 64 MiB cap, Windows rejected that allocation with a memory-limit error accepted by the test, and Vec::try_reserve also failed.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 ran once under Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. Cargo exited 1. All three PR tests passed again.

Workspace failures and skips

All 20 libtest summaries in pr1831-suite.log (19 binaries and one doctest run) total 941 passed, 19 failed, 42 ignored. The 18 library failures were in GPU DXIL and recompiler tests, including pipeline creation errors and result mismatches. The synthetic-title e2e failed its RSSetDepthBiasX check when a blue pixel was expected to be green.

The log had 25 lines beginning with SKIPPED . Reasons included missing wave64 (17), refused wave32 per-lane cases (3), tiled resources tier below 2 (1), driver cache control (1), unavailable heap windows (1), and missing D3D12 debug-layer support (2). These are excluded from coverage.

Not tested

Matched main baseline, retail-title smoke run, and positive-cap enforcement through a live xcl run title launch. The XCL_SAMPLE_* variables were unset, so game-data paths were outside coverage.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1831-suite.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 04:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7152836144) # XCL PR #1831 verification Clean detached head `f0dbb087f3ec781bc740c816404f723fd7cd4e20`. The diff changes `README.md`, `crates/xcl/src/config.rs`, and `crates/xcl/src/host.rs`. STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 build 26200 on a Ryzen 7 3800X with Intel Arc A770 (16 GiB, driver 32.0.101.9175). DXC reported 1.9.2609.5. Rust was `rustc 1.100.0 (0ef1bc386 2026-11-09)`, `x86_64-pc-windows-msvc`. Cargo used unoptimized dev/test profiles with debug info and incremental compilation disabled. **Tested** - `cargo build --workspace` and `cargo test --workspace --no-run` both succeeded outside the Arc lock. The latter compiled 19 test binaries. - `cargo test -p xcl --lib commit_cap` with `XCL_ADAPTER=NONE_CPU_ONLY` outside the lock yielded 3 passed, 0 failed, 0 ignored, and 0 explicit skips. The tests covered unset, blank, zero, positive, and invalid input plus zero and overflow rejection by the Windows cap helper. Child processes committed 128 MiB via `VirtualAlloc` with the cap unset or zero. Under the 64 MiB cap, Windows rejected that allocation with a memory-limit error accepted by the test, and `Vec::try_reserve` also failed. - `cargo test --workspace --no-fail-fast -- --test-threads=4` ran once under `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`. Cargo exited 1. All three PR tests passed again. **Workspace failures and skips** All 20 libtest summaries in `pr1831-suite.log` (19 binaries and one doctest run) total **941 passed, 19 failed, 42 ignored**. The 18 library failures were in GPU DXIL and recompiler tests, including pipeline creation errors and result mismatches. The synthetic-title e2e failed its `RSSetDepthBiasX` check when a blue pixel was expected to be green. The log had **25** lines beginning with `SKIPPED `. Reasons included missing wave64 (17), refused wave32 per-lane cases (3), tiled resources tier below 2 (1), driver cache control (1), unavailable heap windows (1), and missing D3D12 debug-layer support (2). These are excluded from coverage. **Not tested** Matched `main` baseline, retail-title smoke run, and positive-cap enforcement through a live `xcl run` title launch. The `XCL_SAMPLE_*` variables were unset, so game-data paths were outside coverage. **AI use** T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1831-suite.log` and published.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-26 03:23 UTC · original

Wine 11.0 / Linux, 16 GiB system RAM, RTX 4060 Laptop GPU (no GPU exercised by these tests): I built the exact PR head e8d71df7cd9cd3b4f4dfa88c9d999c6307f53764 for x86_64-pc-windows-msvc and ran cargo test --locked --target x86_64-pc-windows-msvc -p xcl --lib commit_cap -- --nocapture --test-threads=1 under Wine. Result: 3 passed, 2 failed.

host::tests::title_commit_cap_enforced_only_when_positive: the child successfully creates/assigns a 64 MiB Job Object with JOB_OBJECT_LIMIT_PROCESS_MEMORY, but its 128 MiB MEM_RESERVE|MEM_COMMIT VirtualAlloc succeeds (host.rs:339), so the cap is not enforced in this Wine environment. eh::tests::alloc_error_hook_logs_active_commit_cap_and_writes_report: the 128 MiB allocation also succeeds, the child panics (allocation unexpectedly succeeded under 64 MB cap, eh.rs:1235), and the parent sees exit 101 instead of 0xc0000409. The OOM hook/report path was therefore not exercised, not independently shown broken. The other three tests (parsing, commit query/formatting, zero/overflow rejection) pass. This is a Wine Job Object limitation observed here, not a native Windows regression or retail-title result.

Please do not report the Windows job cap as an effective Linux/Wine host limit merely because assignment succeeds. Suggested fix: detect unsupported enforcement (small guarded child allocation probe, or explicit Wine detection), warn/fail closed for XCL_TITLE_COMMIT_CAP_MB rather than advertising an active safety cap, and document that Linux cgroup MemoryMax + external free-RAM guard remain necessary. Even with a working cap, low hard limits refuse allocations instead of throttling loading (#1566). Full local log: .compat-xcl/logs/verify-pr1831-wine-commit-cap.log (path on this machine; not attached). No title was launched.

**@⁠pickles976** on GitHub · 2026-11-26 03:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7181679304) Wine 11.0 / Linux, 16 GiB system RAM, RTX 4060 Laptop GPU (no GPU exercised by these tests): I built the exact PR head `e8d71df7cd9cd3b4f4dfa88c9d999c6307f53764` for `x86_64-pc-windows-msvc` and ran `cargo test --locked --target x86_64-pc-windows-msvc -p xcl --lib commit_cap -- --nocapture --test-threads=1` under Wine. Result: **3 passed, 2 failed**. `host::tests::title_commit_cap_enforced_only_when_positive`: the child successfully creates/assigns a 64 MiB Job Object with `JOB_OBJECT_LIMIT_PROCESS_MEMORY`, but its 128 MiB `MEM_RESERVE|MEM_COMMIT` `VirtualAlloc` **succeeds** (`host.rs:339`), so the cap is not enforced in this Wine environment. `eh::tests::alloc_error_hook_logs_active_commit_cap_and_writes_report`: the 128 MiB allocation also succeeds, the child panics (`allocation unexpectedly succeeded under 64 MB cap`, `eh.rs:1235`), and the parent sees exit 101 instead of `0xc0000409`. The OOM hook/report path was therefore **not exercised**, not independently shown broken. The other three tests (parsing, commit query/formatting, zero/overflow rejection) pass. This is a Wine Job Object limitation observed here, not a native Windows regression or retail-title result. Please do not report the Windows job cap as an effective Linux/Wine host limit merely because assignment succeeds. Suggested fix: detect unsupported enforcement (small guarded child allocation probe, or explicit Wine detection), warn/fail closed for `XCL_TITLE_COMMIT_CAP_MB` rather than advertising an active safety cap, and document that Linux cgroup `MemoryMax` + external free-RAM guard remain necessary. Even with a working cap, low hard limits refuse allocations instead of throttling loading (#1566). Full local log: `.compat-xcl/logs/verify-pr1831-wine-commit-cap.log` (path on this machine; not attached). No title was launched.
github-bot force-pushed github-bot/gh-1831 from e8d71df7cd to 3a43562816 2026-11-26 06:16:01 +00:00 Compare
Author
Owner

@⁠fixgep on GitHub · 2026-11-26 04:32 UTC · original

Thanks for testing this under Wine 11.0 / Linux and catching that JOB_OBJECT_LIMIT_PROCESS_MEMORY assignment succeeds there without constraining VirtualAlloc, @pickles976. I've rebased onto main (b49be183) and updated feat/title-commit-cap-mb (3a435628) to address this:

  • Unsupported / Wine enforcement detection & fail-closed behavior (host.rs, main.rs): apply_commit_cap_mb now checks crate::util::under_wine() (ntdll!wine_get_version) before creating/assigning a Job Object or setting ACTIVE_COMMIT_CAP_MB, and host_main additionally runs a guarded child-process probe (XCL_COMMIT_CAP_PROBE=1 via commit_cap_probe_main) to verify VirtualAlloc is actually rejected by JOB_OBJECT_LIMIT_PROCESS_MEMORY. When enforcement is unsupported, XCL logs a warning pointing to Linux cgroup MemoryMax / external free-RAM guards and leaves the cap inactive (active_commit_cap_mb() == 0), so neither xcl.log nor report.json advertises an active limit.
  • Test updates (host.rs, eh.rs): Native Windows still runs the strict 64 MiB VirtualAlloc / Vec::try_reserve and real-OOM alloc_error_hook assertions; under Wine, title_commit_cap_enforced_only_when_positive verifies fail-closed refusal, alloc_error_hook_logs_active_commit_cap_and_writes_report exercises handle_alloc_error emergency logging/reporting while asserting XCL_TITLE_COMMIT_CAP_MB is not advertised, and unsupported_commit_cap_enforcement_fails_closed + commit_cap_probe_reports_host_enforcement cover detection directly.
  • Docs (README.md, config.rs): Clarified that XCL_TITLE_COMMIT_CAP_MB is a native Windows outer safety fuse (low hard limits refuse allocations rather than throttling loading), that XCL disables it with a warning when Job Object limits are not enforced, and that Linux cgroup MemoryMax / external free-RAM guards remain necessary under Wine/Linux.
**@⁠fixgep** on GitHub · 2026-11-26 04:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7182682955) Thanks for testing this under Wine 11.0 / Linux and catching that `JOB_OBJECT_LIMIT_PROCESS_MEMORY` assignment succeeds there without constraining `VirtualAlloc`, `@pickles976`. I've rebased onto `main` (`b49be183`) and updated `feat/title-commit-cap-mb` (`3a435628`) to address this: - **Unsupported / Wine enforcement detection & fail-closed behavior (`host.rs`, `main.rs`):** `apply_commit_cap_mb` now checks `crate::util::under_wine()` (`ntdll!wine_get_version`) before creating/assigning a Job Object or setting `ACTIVE_COMMIT_CAP_MB`, and `host_main` additionally runs a guarded child-process probe (`XCL_COMMIT_CAP_PROBE=1` via `commit_cap_probe_main`) to verify `VirtualAlloc` is actually rejected by `JOB_OBJECT_LIMIT_PROCESS_MEMORY`. When enforcement is unsupported, XCL logs a warning pointing to Linux cgroup `MemoryMax` / external free-RAM guards and leaves the cap inactive (`active_commit_cap_mb() == 0`), so neither `xcl.log` nor `report.json` advertises an active limit. - **Test updates (`host.rs`, `eh.rs`):** Native Windows still runs the strict 64 MiB `VirtualAlloc` / `Vec::try_reserve` and real-OOM `alloc_error_hook` assertions; under Wine, `title_commit_cap_enforced_only_when_positive` verifies fail-closed refusal, `alloc_error_hook_logs_active_commit_cap_and_writes_report` exercises `handle_alloc_error` emergency logging/reporting while asserting `XCL_TITLE_COMMIT_CAP_MB` is *not* advertised, and `unsupported_commit_cap_enforcement_fails_closed` + `commit_cap_probe_reports_host_enforcement` cover detection directly. - **Docs (`README.md`, `config.rs`):** Clarified that `XCL_TITLE_COMMIT_CAP_MB` is a native Windows outer safety fuse (low hard limits refuse allocations rather than throttling loading), that XCL disables it with a warning when Job Object limits are not enforced, and that Linux cgroup `MemoryMax` / external free-RAM guards remain necessary under Wine/Linux.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 06:28 UTC · original

Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current main on the new head — needs another rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-26 06:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7184457334) Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
Author
Owner

@⁠fixgep on GitHub · 2026-11-26 11:47 UTC · original

GitHub shows no conflicts with current main and all CI checks are green on 3a435628

**@⁠fixgep** on GitHub · 2026-11-26 11:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/1831#issuecomment-7191163902) GitHub shows no conflicts with current `main` and all CI checks are green on `3a435628`
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1831/head:github-bot/gh-1831'
git switch 'github-bot/gh-1831'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1831'
git switch 'github-bot/gh-1831'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1831'
git switch 'github-bot/gh-1831'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1831'
git switch 'main'
git merge --squash 'github-bot/gh-1831'
git switch 'main'
git merge --ff-only 'github-bot/gh-1831'
git switch 'main'
git merge 'github-bot/gh-1831'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.