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 |
|
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). 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, and logs a clear warning if parsing or job assignment fails. 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:CommitCapJob,apply_commit_cap_mb,apply_commit_cap_from_envwired intohost_mainbefore title load, plus subprocess synthetic tests verifying uncapped vs64MB cappedVirtualAlloc(ERROR_COMMITMENT_LIMIT/ERROR_NOT_ENOUGH_MEMORY) andVec::try_reservefailure.README.md: documentXCL_TITLE_COMMIT_CAP_MB=N.Tested
32.0.15.9144), AMD Ryzen 5 7500F 6-Core Processor, Microsoft Windows NT 10.0.26200.0,rustc 1.100.0 (0ef1bc386 2026-11-09), debug (cargo test) and release (cargo build --release -p xcl).cargo test -p xcl --lib title_commit_cap -- --nocapture: 2 passed, 0 failed, 0 ignored (930 filtered out); before implementingapply_commit_cap_mb, thecappedchild check failed as expected.cargo test -p xcl --lib -- --test-threads=4: 910 passed, 1 failed (gpu::recomp::tests::gpu_clamp_and_omod_per_instruction, also fails identically onmain177cd407on RTX 3060), 22 ignored;SKIPPEDGPU/driver-cache tests: 16no wave64(gpu::recomp::lower::tests,gpu::recomp::lower_dxil::tests,gpu::recomp::tests), 3refused(gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu,f32_programs_on_the_gpu), 1cannot disable the driver cache(shaders::tests::pso_measurement_compiles_an_exact_synthetic_record).cargo test -p xcl --test e2e -- --test-threads=4: 3 passed, 0 failed, 0 ignored.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).fetch_updatedeprecation warnings inreal.rsandxgameruntime/mod.rs).Regression run
Not tested
XCL_SAMPLE_*retail test inputs, and long multi-minute retail runs with a positiveXCL_TITLE_COMMIT_CAP_MBset.AI use
README.mdnote, and PR description; ran builds, tests, and smoke runs.