16 GB RAM: upload-heap burst kills the title; steady state ~22.5 GB private, 19 GB at host addresses #4844
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by QLDH67891 on 2026-12-01T11:12:30Z.
16 GB RAM: upload-heap burst kills the title; steady state is ~22.5 GB private, 19 GB of it at host addresses
Environment
HwSchMode=2)d178c927334740e0b49fdd81f0c12a332c29fe41c938ac5f6dd8412fcfcea3711)game_scarlett_master.exev1.0.2.1 from the 208 GB Xbox dump, blake3b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93What works
Everything except memory: Series S 720p, Chinese UI, DLSS-G 6X via MFG Unlocker (10鈥?3 rendered 鈫?50鈥?1 displayed), hair correct on 621.40.
The failure
New game (the courtyard streaming burst) kills the process with 3,569 identical lines in ~33 s and then nothing:
1.9 fps 鈥?copies 297.4 ms 124.3 MB 鈥?10540 draws/frame
4.3 fps 鈥?copies 130.6 ms 146.1 MB 鈥?11173 draws/frame
memory now: committed 26853 MB, the card's own 8908 MB in use of a budget of 11230 MB,
the PC's shared with the card 7612 MB in use
process memory: 26876 MB private by the system (4123 MB in memory), 41808 MB committed
process memory: 22523 MB private by the system (8846 MB in memory), 36430 MB committed,
84901 regions
at console addresses (the title's own) 3248 MB private + 7670 MB mapped (4 sections, 4679 MB reserved)
at host addresses 19045 MB private + 6466 MB mapped (the layer's heap, stacks, the driver)
images 689 MB
held by us: shader containers 19100 (188 MB), translated shaders 2812 (104 MB),
host copies of title memory 4659 copies (5,374 MB)
shared with the card: staging of textures 49 MB, upload buffers held by lists 0 MB
memory now: committed 22877 MB, the card's own 8645 MB of a budget of 11064 MB,
the PC's shared with the card 4903 MB
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T11:42:00Z.
VICTORY_UPLOAD_POOL_MBcaps the idle copy-source cache per buffer kind. It does not cap the memory held by active uploads. The allocation path on main already retries once after releasing unused upload buffers (#953).The
0x8007000Eburst does not identify which memory budget was exhausted. If you rerun the courtyard, could you capture the D3D12 non-local (shared) budget and usage alongside system commit just before the first refusal? The per-heap live-buffer counts proposed in #3869 would also help separate active uploads from the host copies reported at steady state.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by QLDH67891 on 2026-12-01T12:15:59Z.
Captured it with
VICTORY_MEMORY_TRACE=1(that switch already printsvideo_memory_groupsplus commit once a second, so no extra instrumentation was needed for the budgets 鈥?seehost.rs:16135-16146and17936-17952).Machine: i5-12490F, RTX 3060 12 GB, 16 GB RAM, Win11 26200, v2026.11.30.03, driver 621.40, HAGS on, Series S profile, DLSS-G 4X via MFG Unlocker, launcher switches from
scripts/play-nvidia.ps1+ the 16 GB path (VICTORY_WINDOW_KB=1024,VICTORY_WINDOW_TAILS=1).Same courtyard section as before, 2026-12-01 12:11 UTC:
After that first refusal the shared segment sits at 7371-7693 MB against a 7437 MB budget (99-103%) for the next minute, while the card's own stays ~6800/11347 MB and process commit stays ~23.4 GB of 48 GB. 98,377 refusals in ~65 s (mostly 256 KiB uploads, plus 1-6 MB shared buffers).
So the budget that is exhausted is the D3D12 non-local (shared) one, and at the same moment the PC is down to 77 MiB of free physical memory. Local VRAM and commit are both far from their limits. That matches the
no shared bufferlines appearing ~40 ms before the firstno upload bufferin the earlier run.Agreed on your reading of
VICTORY_UPLOAD_POOL_MB: it boundsUPLOAD_SPARE, "copy sources ofHostList::uploadno list holds" (host.rs:3725-3745), so it cannot cap active uploads, and the retry-once-after-free_all_sparespath is already there (host.rs:15018-15047).One suggestion from this side: the numbers above only exist because
MEMORY_TRACEsamples them once a second and they are not attached to the refusal itself. Adding the samelog_video_memory(...)line toreport_upload_error(rate-limited to the first refusal of each second) would make any future report self-contained, sincereset_errornever fires in this failure mode 鈥?we had zerodid not reset/did not closelines in a 25 MB log.The full trace log (11.7 MB and growing, ~100k refusals) is here if you want it; I can rerun that section with any additional switch you name. Per-heap live-buffer counts (#3869) would still be the thing that separates active uploads from the host copies reported at steady state.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T12:35:14Z.
Thanks for rerunning the courtyard with the memory trace. The non-local segment held at 99–103% of budget during the refusal burst, with 77 MiB of physical RAM free near the first failure. The local segment still had room. That narrows this report to pressure on the system-memory side.
I put the requested diagnostic in draft #4878. The first upload or shared-buffer OOM records both DXGI budgets, available RAM and available commit, with at most one sample per second. The Windows fixture captured one sample for eight simultaneous failures. If you rerun the courtyard on this build, the first
memory at a GPU buffer allocation refusalline from a normal play log is enough to verify the diagnostic.If you reuse the patch, please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding it into another commit.AI-assisted with OpenAI Codex.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nidea1 on 2026-12-01T14:39:20Z.
@QLDH67891 Since your
VICTORY_MEMORY_TRACE=1run narrowed the0x8007000Erefusals (no shared buffer/no upload buffer) to the D3D12 non-local/shared segment hitting 99-103% of budget at 77 MiB free RAM, #4737 may be directly relevant to test alongside #4288 and #2910:UPLOADSandSHAREDCPU-visible buffer pool blocks inpool.rsfrom 64 MiB down to 16 MiB on<=32 GiBhosts (VICTORY_BUFFER_BLOCK_MB, configurable in8..=64MiB) so sparse blocks pin less shared L0 memory.t=78-140 s),VICTORY_BUFFER_BLOCK_MB=16(+ autoVICTORY_SPARE_SCALE) cut Shared GPU RAM by-950to-1,231 MBand process PrivateBytes by-637to-1,056 MBcompared to=64(VICTORY_SPARE_SCALE=0).