Commit charge grows ~0.3 GB/s in unattributed 64 MiB+ private allocations until the process aborts (RTX 5070, 32 GB RAM) #28
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/zortos293--XSEmu#28
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?
@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 code0xC0000409. Three of three runs ended this way.Setup
5e3a27e(main), built from source:cargo build --release --locked -p xcldevice_type = "lockhart"(Series S),XCL_NETWORK=0,XCL_DATA_ROOTandXCL_DXIL_CACHEon a separate driveXSEmuLauncher-windows.zip(v0.1.0-pre.1) gave the same resultWhat happens
Status lines from the third run, with a warm DXIL cache:
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 commitreached 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 pagesstays at 4 allocations of 4,679 MB, 970 MB committed. The coherent window stays at 2,768 MB, and sparse windows at 668 MB.XCL_TRACE_MEM=2000000, the title's traced allocations of 64 KiB or more total ~41 GB (384 calls). 32 GB of that is twoVirtualAlloc (64K pages, placeholders)reservations, and 5.9 GB is 34864K pages, sparsereservations. Most calls come in the first seconds, so the title's traced allocations do not account for the steady growth.XCL_LAZY_TILES,XCL_SPARSE_LAZY_TILESandXCL_COHERENT_OVERFLOW_SPARSEare at their defaults (on).Expected
Commit levels off once the world has loaded, as it does before ~45 s.
Notes
kernelxpaths, either by directNtAllocateVirtualMemorycalls 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.xcl.logandreport.jsonfrom these runs.