Commit charge grows ~0.3 GB/s in unattributed 64 MiB+ private allocations until the process aborts (RTX 5070, 32 GB RAM) #28

Open
opened 2026-11-27 15:18:48 +00:00 by github-bot · 0 comments
Owner

@⁠denderdim on GitHub · 2026-11-27 15:16 UTC · original

Summary

After the world starts loading (~45 s in), process commit grows by about 0.3 GB/s without stopping. The growth is in private allocations of 64 MiB or more that memdiag cannot attribute ("no two pointers into one image"). They are committed but mostly not resident (~104 GB committed, ~5 GB resident). The run ends when commit is exhausted: memory allocation of N bytes failed, exit code 0xC0000409. Three of three runs ended this way.

Setup

  • XSEmu 5e3a27e (main), built from source: cargo build --release --locked -p xcl
  • Windows 11 Home 10.0.26200, Intel Core i5-14400F, 32 GB RAM, page file on another drive (system-managed)
  • NVIDIA GeForce RTX 5070 12 GB, driver 616.64; waves of 32 lanes
  • DXC 1.9.2602.17 from Windows SDK 10.0.26100
  • Title: Xbox Series build v1.0.2.1, own copy
  • device_type = "lockhart" (Series S), XCL_NETWORK=0, XCL_DATA_ROOT and XCL_DXIL_CACHE on a separate drive
  • One run from the release XSEmuLauncher-windows.zip (v0.1.0-pre.1) gave the same result

What happens

Status lines from the third run, with a warm DXIL cache:

t (s) fps pipelines built pending committed (GB)
30 24.9 35306 0 6.7
60 20.8 35314 21 24.5
90 18.8 35314 21 38.0
121 9.5 35315 21 52.3
184 12.7 35316 23 64.4
245 9.1 35316 23 80.7
306 8.1 35316 23 92.2
  • The pending pipelines are held by the scheduler for memory (driver compile held (pipeline 2fd7cff69caa00cd, shader b905471b0616b4cf, 401 KB of DXIL, est 313 MiB, background): memory: ...). They look like a consequence of the growth, not its cause. While they are held, the title's in-game shader-build screen stays at 58%.
  • memdiag: process commit reached 6.3 GB at 19 s, 96.1 GB at 255 s, and 115.4 GB at 503 s (a previous run). Over the same span the XCL Rust heap stayed at 154–281 MB and the process heap at 1.0–3.0 GB.
  • memdiag: private other by owner, "no two pointers into one image", 64 MiB+: 12 allocations / 15,680 MB at 43 s, 27 / 83,171 MB at 293 s, and 33 / 104,544 MB at 506 s.
  • memdiag: address space, private other (heaps, driver, title): 17,754 MB (resident ~17,612) at 43 s, then 108,122 MB (resident ~5,299) at 506 s.
  • title physical pages stays at 4 allocations of 4,679 MB, 970 MB committed. The coherent window stays at 2,768 MB, and sparse windows at 668 MB.
  • With XCL_TRACE_MEM=2000000, the title's traced allocations of 64 KiB or more total ~41 GB (384 calls). 32 GB of that is two VirtualAlloc (64K pages, placeholders) reservations, and 5.9 GB is 348 64K pages, sparse reservations. Most calls come in the first seconds, so the title's traced allocations do not account for the steady growth.
  • VRAM stays low: 3.5–3.8 of 10.9 GB.
  • XCL_LAZY_TILES, XCL_SPARSE_LAZY_TILES and XCL_COHERENT_OVERFLOW_SPARSE are at their defaults (on).

Expected

Commit levels off once the world has loaded, as it does before ~45 s.

Notes

  • Windows grew the page file to ~78 GB during the run. Commit then reached 109.2 of 110.1 GB with 0.4 GB of RAM free, and the run was stopped by hand. A larger page file only delays the end.
  • My guess, not verified: the allocations are made outside the traced kernelx paths, either by direct NtAllocateVirtualMemory calls from the title, or inside the driver or D3D12 runtime. Allocation call stacks would settle it. I can run a build with extra tracing if that helps.
  • I can attach xcl.log and report.json from these runs.
**@⁠denderdim** on GitHub · 2026-11-27 15:16 UTC · [original](https://github.com/zortos293/XSEmu/issues/28) ## Summary After the world starts loading (~45 s in), process commit grows by about 0.3 GB/s without stopping. The growth is in private allocations of 64 MiB or more that memdiag cannot attribute ("no two pointers into one image"). They are committed but mostly not resident (~104 GB committed, ~5 GB resident). The run ends when commit is exhausted: `memory allocation of N bytes failed`, exit code `0xC0000409`. Three of three runs ended this way. ## Setup - XSEmu `5e3a27e` (main), built from source: `cargo build --release --locked -p xcl` - Windows 11 Home 10.0.26200, Intel Core i5-14400F, 32 GB RAM, page file on another drive (system-managed) - NVIDIA GeForce RTX 5070 12 GB, driver 616.64; waves of 32 lanes - DXC 1.9.2602.17 from Windows SDK 10.0.26100 - Title: Xbox Series build v1.0.2.1, own copy - `device_type = "lockhart"` (Series S), `XCL_NETWORK=0`, `XCL_DATA_ROOT` and `XCL_DXIL_CACHE` on a separate drive - One run from the release `XSEmuLauncher-windows.zip` (v0.1.0-pre.1) gave the same result ## What happens Status lines from the third run, with a warm DXIL cache: | t (s) | fps | pipelines built | pending | committed (GB) | |---|---|---|---|---| | 30 | 24.9 | 35306 | 0 | 6.7 | | 60 | 20.8 | 35314 | 21 | 24.5 | | 90 | 18.8 | 35314 | 21 | 38.0 | | 121 | 9.5 | 35315 | 21 | 52.3 | | 184 | 12.7 | 35316 | 23 | 64.4 | | 245 | 9.1 | 35316 | 23 | 80.7 | | 306 | 8.1 | 35316 | 23 | 92.2 | - The pending pipelines are held by the scheduler for memory (`driver compile held (pipeline 2fd7cff69caa00cd, shader b905471b0616b4cf, 401 KB of DXIL, est 313 MiB, background): memory: ...`). They look like a consequence of the growth, not its cause. While they are held, the title's in-game shader-build screen stays at 58%. - `memdiag: process commit` reached 6.3 GB at 19 s, 96.1 GB at 255 s, and 115.4 GB at 503 s (a previous run). Over the same span the XCL Rust heap stayed at 154–281 MB and the process heap at 1.0–3.0 GB. - `memdiag: private other by owner`, "no two pointers into one image", 64 MiB+: 12 allocations / 15,680 MB at 43 s, 27 / 83,171 MB at 293 s, and 33 / 104,544 MB at 506 s. - `memdiag: address space`, private other (heaps, driver, title): 17,754 MB (resident ~17,612) at 43 s, then 108,122 MB (resident ~5,299) at 506 s. - `title physical pages` stays at 4 allocations of 4,679 MB, 970 MB committed. The coherent window stays at 2,768 MB, and sparse windows at 668 MB. - With `XCL_TRACE_MEM=2000000`, the title's traced allocations of 64 KiB or more total ~41 GB (384 calls). 32 GB of that is two `VirtualAlloc (64K pages, placeholders)` reservations, and 5.9 GB is 348 `64K pages, sparse` reservations. Most calls come in the first seconds, so the title's traced allocations do not account for the steady growth. - VRAM stays low: 3.5–3.8 of 10.9 GB. - `XCL_LAZY_TILES`, `XCL_SPARSE_LAZY_TILES` and `XCL_COHERENT_OVERFLOW_SPARSE` are at their defaults (on). ## Expected Commit levels off once the world has loaded, as it does before ~45 s. ## Notes - Windows grew the page file to ~78 GB during the run. Commit then reached 109.2 of 110.1 GB with 0.4 GB of RAM free, and the run was stopped by hand. A larger page file only delays the end. - My guess, not verified: the allocations are made outside the traced `kernelx` paths, either by direct `NtAllocateVirtualMemory` calls from the title, or inside the driver or D3D12 runtime. Allocation call stacks would settle it. I can run a build with extra tracing if that helps. - I can attach `xcl.log` and `report.json` from these runs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:18:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/zortos293--XSEmu#28
No description provided.