Repository navigation
Conversation
…#1566) Part of xcl-dev#1566. Assisted-by: Antigravity (Gemini 4 Hydrogen)
|
Independent Windows/NVIDIA validation of the commit cap. I merged PR head
24 SKIPPED messagesThe 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. |
|
Test report on a local merge of Setup: NVIDIA GeForce RTX 4070 Ti SUPER 16 GB, driver 621.01, 31.6 GB RAM, Windows 11 Pro. Retail title, What happened
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
No game data is included. The report was written with Claude Code (Claude Opus 5.5) from the run's |
…l-dev#1566) Part of xcl-dev#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)
|
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 Run: the retail title, 300 s, A pressed at 15-35 s to reach the world,
Not tested: other caps, NVIDIA, a full Written with Claude Code from runs on this machine. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Tested commit Tested
Note / possible follow-up (cross-linked with #1566): Not tested
AI use
|
XCL PR #1831 verificationClean detached head 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 Tested
Workspace failures and skips All 20 libtest summaries in The log had 25 lines beginning with Not tested Matched 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 |
Adds an opt-in process commit cap via
XCL_TITLE_COMMIT_CAP_MB(disabled when unset or0), plus OOM diagnostics when the cap is active. When set to a positive MiB value, the host creates and assigns a Windows Job Object withJOB_OBJECT_LIMIT_PROCESS_MEMORY(ProcessMemoryLimit = cap_mb * 1024 * 1024) before mapping or starting the title, keeps the handle alive for the host run, logs a clear diagnostic namingXCL_TITLE_COMMIT_CAP_MBand current process commit on D3D12 heap OOM refusals, and records allocation-free failure details inxcl.logandreport.jsonbefore fatal Rust OOM fail-fast (0xc0000409). 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, and unit tests for unset/zero/positive/invalid values.crates/xcl/src/host.rs,crates/xcl/src/util.rs:CommitCapJob,apply_commit_cap_mb,apply_commit_cap_from_env,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 vs64MB cappedVirtualAlloc,Vec::try_reserve, and OOM formatting.crates/xcl/src/hle/d3d12x/vram.rs,crates/xcl/src/hle/d3d12x/sparse.rs,crates/xcl/src/hle/d3d12x/real.rs: logXCL_TITLE_COMMIT_CAP_MB, the configured cap MiB, and current process commit MiB whenCreateHeap/CreateHeap1fails 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: hookstd::alloc::handle_alloc_errorviahook_addr, write an allocation-free emergency line toxcl.log(write_emergency) and an allocation-freereport.json(write_emergency_alloc_errorusing pre-cached startup metadata andStackBuf) before0xc0000409fail-fast, with unit and subprocess tests.README.md: documentXCL_TITLE_COMMIT_CAP_MB=N.Tested
32.0.15.9144), AMD Ryzen 5 7500F 6-Core Processor, Windows10.0.26200.0,rustc 1.100.0 (0ef1bc386 2026-11-09), debug (cargo test) & release (cargo build --release -p xcl).commit_cap,emergency_oom_report,alloc_error_hook): all 6 passed (alloc_error_hook_logs_active_commit_cap_and_writes_reportverified0xc0000409exit code,xcl.log, andreport.jsonunderXCL_TITLE_COMMIT_CAP_MB=64).cargo test -p xcl --lib -- --test-threads=4: 913 passed, 1 failed (gpu::recomp::tests::gpu_clamp_and_omod_per_instructiononv_pk_add_i16 clamp, pre-existing onmain177cd407on RTX 3060), 22 ignored (SKIPPEDGPU/driver-cache tests: 18no wave64, 3refusedingpu::recomp::lower_dxil::tests, 1cannot disable the driver cacheinshaders::tests::pso_measurement_compiles_an_exact_synthetic_record).cargo test -p xcl --test '*' -- --test-threads=4: 49 passed, 0 failed, 20 ignored (SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows;XCL_SAMPLE_*tests skipped their sample bodies because those env vars are unset).cargo build --release -p xcl: built cleanly with zero new compiler warnings (only 2 pre-existingAtomic::fetch_updatedeprecation warnings inreal.rsandxgameruntime/mod.rs).Regression run
main:
PR:
Not tested
no wave64on RTX 3060), non-Windows hosts (unsupported),XCL_SAMPLE_*retail test inputs, and other workspace crates outsidexcl(cargo test --workspacewas not run).XCL_TITLE_COMMIT_CAP_MBlimit (covered via synthetic 64 MiB subprocess tests).AI use
xcl.log/report.jsonemergency reporting, unit/subprocess tests,README.mdnote, and PR description; ran builds, tests, and smoke runs.