Newer retail game on a 32 GB machine: 31 default DXC threads and ~18 GB commit run Windows out of memory #542
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#542
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@woreksami on GitHub · 2026-11-24 01:35 UTC · original
Game and package version
A newer retail game
What happens
On a 32 GB machine the run nearly took Windows down from memory, twice, and with fewer compile threads it still ends at 1.6–3 GB free within 3–6 minutes.
compile_threads()defaults to every core but one: 31 on an i9-14900K (32 threads).dxc.rssays a big translation of this title takes ~0.7 GB in DXC. With the default, the first runs made the whole machine unresponsive during the first big compile wave (seen, not measured: the system was too slow to read counters).XCL_DXC_THREADS=4(all runs below,XCL_NETWORK=0, everything else closed but the browser): free physical memory from 12–20 GB at launch to 1.6–3.0 GB after 3–6.5 minutes, while the title is on its loading screen. An external watcher stopped each run there.coherent 3998/4095 MB, sparse 7445 MBanda texture … lies in a GPU view of the title's CPU memory: kept in step … (16384 so far).title_memory_mb = 11264(instead of the 13,824 default) reached 1.6 GB free after ~3 minutes, sooner than without it.device_type = "lockhart"is not a way round it either: in that mode the title creates a 1920×1080R9G9B9E5_SHAREDEXPrender target + UAV, which the PC refuses (E_INVALIDARG) and the title stops at ~17 s.Proposal: cap the default compile threads by memory as well as cores, e.g.
min(cores - 1, free physical GB / 1), so a 32-thread CPU with 32 GB does not start 31 DXC compiles of up to 0.7 GB at once. Happy to test a PR.XCL version
main508a0c7+ #214, #267, #300, #503, #468 (head commits 960162e, 043d1f7,9507d05,78f5510,0d407cf)GPU and driver version
NVIDIA GeForce RTX 3060 8 GB, driver 610.88 · Intel i9-14900K · 32 GB RAM
Windows version
Windows 11 (26200)
report.json and xcl.log
Not attached: they hold my file paths. I can paste any part.
AI use: Claude Code with Claude Opus 5.5 ran these tests, read the logs and wrote this issue from my runs.
@WebIdentity1 on GitHub · 2026-11-24 01:52 UTC · original · edited 2026-11-24 01:57 UTC
I’m working on a small default-worker cap for this report: keep one CPU thread free, then limit DXC/feeding PSO workers to roughly 1 GiB each from the smaller of available physical memory and available commit, after the existing title/precompile reserve. Explicit
XCL_DXC_THREADSkeeps its existing override behavior.This is separate from #139's dynamic admission/race fixes and #214's driver-PSO gate; it does not replace either or promise to contain runaway allocations. I’ll check synthetic boundary cases and native Windows compilation on a 32 GB / RTX 3090 machine. No retail files here, so any draft will still need a retail regression run; this is a default-concurrency mitigation, not a demonstrated fix for the later world-loading memory growth.
AI assistance: Codex (GPT-6). Work tracked at https://github.com/WebIdentity1/xcl/issues/1.
Update: draft #572, head
14d638a, is available. Policy tests pass 3/3; the old-decision control fails 2/3. Native Windows full workspace: 682 passed / 1 existing CLAMP failure / 41 ignored, with four explicit skips disclosed. Our idle 8-thread/32 GB setup stays CPU-limited at 7 workers; no retail-memory improvement is claimed.If you can test this on the machine from this report, paired main/head
scripts/smoke.ps1runs and the worker count / memory behavior would help assess the mitigation. LeaveXCL_DXC_THREADSunset when checking the new default. The draft still needs retail regression evidence.@MonkeyPython on GitHub · 2026-11-24 02:13 UTC · original · edited 2026-11-24 02:47 UTC
@odd/tasks/draft-issue-542-comment.md
@MonkeyPython on GitHub · 2026-11-24 03:36 UTC · original
@WebIdentity1 re the worker-cap fix in flight: the measured curves on this host (32 GB, 8C/16T → 15 default threads) suggest a per-worker cap alone would not prevent the exhaustion on this title — the loading growth is thread-count-independent:
XCL_DXC_THREADS=4: commit 14.7 → 39.89 GB, free RAM → 0.21 GB, null write @277 s (repeat @266 s).Essentially identical ~25 GB growth with 4 vs 15 compiles. What did move it: #602 (in-place detile/hash) + #451 (upload-buffer reuse) + #435 (smaller swizzle tables) cut the peak to 28.3 GB (n=3: 27.6 / 28.3 / 28.5) with free RAM ≥ 2.8 GB — i.e. the growth lived in the upload/detile copies, not in DXC worker intermediates. Full curves and method in the edited report above; a cap sized from available memory is still a good safety net for titles where compiles dominate (this issue's i9 case), but on GTA VI 1.0.2.1 the copy-side PRs are what relieved the pressure.
AI use: Gentle Shell (Pi coding agent), model qwen4-max: measurements from the runs logged in the report above; a human reviews this reply before posting.
@woreksami on GitHub · 2026-11-24 05:11 UTC · original
Where the commit goes on this machine (RTX 3060 8 GB, 32 GB RAM, 43.2 GB commit limit with a system-managed 11.5 GB pagefile). Short version: XCL's pools are nearly full, so this is not a leak; the run ends because every byte of video memory is also charged to system commit.
Tested
mainf4ce27c+ #214, #267, #456, #468, #503, #572 (merged locally), release,XCL_NETWORK=0,XCL_PSO_WAIT_MS=150,XCL_ACTIVITY=1; the newer retail title from the README, 1.0.2.1.XCL_ACTIVITYat 38 s:16310 MB committed by the process; video memory 7297 MB local, 4874 MB non-local; target pages 4554 MB (pools 4608 MB); arenas 465 MB in use, 465 MB made; sparse pools 1024 MB (987 MB mapped). Pools are 99 % / 96 % used.PAGE_READWRITE | PAGE_WRITECOMBINE: 4.81 GB committed, 0.31 GB residentD3D12_HEAP_TYPE_DEFAULTheap shows up as an equal, untouched, write-combined private region: commit charged for video memory, never resident.So
device_type = "lockhart"does not reduce it: 15.0 GB committed at 14 s vs 14.5 GB asanaconda(with #541 + #743 the mesh-pipeline refusals are gone, but the title still stops at ~15 s with 0x80000003 at the same address in that mode).Not tested
AI use