16 GB RAM: upload-heap burst kills the title; steady state ~22.5 GB private, 19 GB at host addresses #4844

Open
opened 2026-12-01 11:12:30 +00:00 by QLDH67891 · 4 comments
QLDH67891 commented 2026-12-01 11:12:30 +00:00 (Migrated from github.com)
Contributor

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

  • Windows 11 26200 (涓撲笟鐗?, all SSD
  • CPU: i5-12490F (6C/12T), GPU: RTX 3060 12 GB, driver 621.40, HAGS on (HwSchMode=2)
  • RAM: 15.8 GB physical; pagefile D: 16,384 MB + F: 80,640 MB max (commit limit 47,941 MB 鈫?currently 48,779 MB)
  • Victory v2026.11.30.03 (sha256 d178c927334740e0b49fdd81f0c12a332c29fe41c938ac5f6dd8412fcfcea3711)
  • Game: retail game_scarlett_master.exe v1.0.2.1 from the 208 GB Xbox dump, blake3 b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93
  • Launch line:
    victory.exe play --series-s --dlss quality --fg-type dlss --framegen 6 --fps 60
      --set VICTORY_MFG_UNLOCKER=1 --set VICTORY_MAP_ONCE=1
      --set VICTORY_CARD_ROOM_FOR_TARGETS_MB=768 --set VICTORY_CARD_ROOM_FOR_TARGETS_SETTLE_MS=8000
    

What 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:

WARN victory_gpu::host: no upload buffer error=鍐呭瓨璧勬簮涓嶈冻锛屾棤娉曞畬鎴愭鎿嶄綔銆?0x8007000E) size=鈥?```

(3,269 脳 4 MB + 295 脳 256 KB). Immediately before it:

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


No .dmp and no crash.log 鈥?the host side dies, not the title. After the crash the machine is fine again (free 11.7 GB, pagefile peaks D: 4,652 MB / F: 2,071 MB), which shows the pagefile never had to carry the peak 鈥?the pages the upload needed simply were not resident.

## Steady-state breakdown (`VICTORY_MEMORY_REPORT=1`, `victory_gpu::procmem`)

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


So the title's own aperture is ~10.9 GB 鈥?exactly Series S 鈥?and the layer adds **19.0 GB private at host addresses**, 5.4 GB of which is explicitly `host copies of title memory` (4,659 copies).

## The three configurations measured

| config | private | 6X displayed | stable |
|---|---|---|---|
| baseline (`MAP_ONCE`, `CARD_ROOM 768`) | 22.7 GB | 71鈥?0 | yes |
| `+ VICTORY_FILE_BACKED_PAGES=1` | 22.9 GB | 70鈥?9 | yes, no change |
| `+ VICTORY_THIN=1 VICTORY_THIN_COALESCE=1` | 22.5 GB | 66鈥?8 | yes, no change |

(`VICTORY_THIN` is the threaded command-list translation, not a mirror slimming switch 鈥?noting it so nobody else wastes a run on it.)

## Ask

1. Is there any supported way to make `host copies of title memory` (4,659 copies / 5.4 GB) **not** be copies 鈥?i.e. map the console pages and read them on demand? On a 16 GB box those 5.4 GB are the difference between running and dying.
2. Barring that, is there a switch to cap the upload heap so a streaming burst fails gracefully and retries instead of ending the process? `UPLOAD_POOL_MB` / `UPLOAD_SPACE` / `UPLOAD_LOW` exist in the binary but I could not find documented semantics; a one-line hint in the README would be enough.
3. If neither: is a 32 GB machine the official answer for this title? The docs say 32 GB, and the measurements above back that up 鈥?the layer needs ~22.5 GB private + ~5 GB shared.

Happy to run any diagnostic build or switch combination you want and report numbers.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6718943320 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4844). Originally posted by [QLDH67891](https://github.com/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 - Windows 11 26200 (涓撲笟鐗?, all SSD - CPU: i5-12490F (6C/12T), GPU: RTX 3060 12 GB, driver **621.40**, HAGS **on** (`HwSchMode=2`) - RAM: **15.8 GB physical**; pagefile D: 16,384 MB + F: 80,640 MB max (commit limit 47,941 MB 鈫?currently 48,779 MB) - Victory **v2026.11.30.03** (sha256 `d178c927334740e0b49fdd81f0c12a332c29fe41c938ac5f6dd8412fcfcea3711`) - Game: retail `game_scarlett_master.exe` v1.0.2.1 from the 208 GB Xbox dump, blake3 `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93` - Launch line: ``` victory.exe play --series-s --dlss quality --fg-type dlss --framegen 6 --fps 60 --set VICTORY_MFG_UNLOCKER=1 --set VICTORY_MAP_ONCE=1 --set VICTORY_CARD_ROOM_FOR_TARGETS_MB=768 --set VICTORY_CARD_ROOM_FOR_TARGETS_SETTLE_MS=8000 ``` ## What 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: ``` WARN victory_gpu::host: no upload buffer error=鍐呭瓨璧勬簮涓嶈冻锛屾棤娉曞畬鎴愭鎿嶄綔銆?0x8007000E) size=鈥?``` (3,269 脳 4 MB + 295 脳 256 KB). Immediately before it: ``` 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 ``` No .dmp and no crash.log 鈥?the host side dies, not the title. After the crash the machine is fine again (free 11.7 GB, pagefile peaks D: 4,652 MB / F: 2,071 MB), which shows the pagefile never had to carry the peak 鈥?the pages the upload needed simply were not resident. ## Steady-state breakdown (`VICTORY_MEMORY_REPORT=1`, `victory_gpu::procmem`) ``` 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 ``` So the title's own aperture is ~10.9 GB 鈥?exactly Series S 鈥?and the layer adds **19.0 GB private at host addresses**, 5.4 GB of which is explicitly `host copies of title memory` (4,659 copies). ## The three configurations measured | config | private | 6X displayed | stable | |---|---|---|---| | baseline (`MAP_ONCE`, `CARD_ROOM 768`) | 22.7 GB | 71鈥?0 | yes | | `+ VICTORY_FILE_BACKED_PAGES=1` | 22.9 GB | 70鈥?9 | yes, no change | | `+ VICTORY_THIN=1 VICTORY_THIN_COALESCE=1` | 22.5 GB | 66鈥?8 | yes, no change | (`VICTORY_THIN` is the threaded command-list translation, not a mirror slimming switch 鈥?noting it so nobody else wastes a run on it.) ## Ask 1. Is there any supported way to make `host copies of title memory` (4,659 copies / 5.4 GB) **not** be copies 鈥?i.e. map the console pages and read them on demand? On a 16 GB box those 5.4 GB are the difference between running and dying. 2. Barring that, is there a switch to cap the upload heap so a streaming burst fails gracefully and retries instead of ending the process? `UPLOAD_POOL_MB` / `UPLOAD_SPACE` / `UPLOAD_LOW` exist in the binary but I could not find documented semantics; a one-line hint in the README would be enough. 3. If neither: is a 32 GB machine the official answer for this title? The docs say 32 GB, and the measurements above back that up 鈥?the layer needs ~22.5 GB private + ~5 GB shared. Happy to run any diagnostic build or switch combination you want and report numbers.
andrewpozdnakov7-jpg commented 2026-12-01 11:42:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T11:42:00Z.


VICTORY_UPLOAD_POOL_MB caps 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 0x8007000E burst 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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7310006666 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4844#issuecomment-7310006666). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T11:42:00Z. --- `VICTORY_UPLOAD_POOL_MB` caps the idle copy-source cache per buffer kind. It does not cap the memory held by active uploads. [The allocation path on main](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/5fabb46eaf6ed8771321787f8871051abde69b9b/crates/victory-gpu/src/host.rs#L15018-L15063) already retries once after releasing unused upload buffers (#953). The `0x8007000E` burst 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.
QLDH67891 commented 2026-12-01 12:15:59 +00:00 (Migrated from github.com)
Author
Contributor

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 prints video_memory_groups plus commit once a second, so no extra instrumentation was needed for the budgets 鈥?see host.rs:16135-16146 and 17936-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:

12:11:29.891  card's own 6719/11347 MB | PC shared 5990/7437 MB
12:11:30.971  card's own 6756/11347 MB | PC shared 6622/7437 MB
12:11:32.693  card's own 6768/11347 MB | PC shared 7084/7437 MB
              frame memory sample: resident 4916 MiB, commit 23374 MiB, physical free 77 MiB
12:11:34.815  WARN victory_gpu::host: no shared buffer error=鍐呭瓨璧勬簮涓嶈冻锛屾棤娉曞畬鎴愭鎿嶄綔銆?0x8007000E) size=4980736

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 buffer lines appearing ~40 ms before the first no upload buffer in the earlier run.

Agreed on your reading of VICTORY_UPLOAD_POOL_MB: it bounds UPLOAD_SPARE, "copy sources of HostList::upload no list holds" (host.rs:3725-3745), so it cannot cap active uploads, and the retry-once-after-free_all_spares path is already there (host.rs:15018-15047).

One suggestion from this side: the numbers above only exist because MEMORY_TRACE samples them once a second and they are not attached to the refusal itself. Adding the same log_video_memory(...) line to report_upload_error (rate-limited to the first refusal of each second) would make any future report self-contained, since reset_error never fires in this failure mode 鈥?we had zero did not reset / did not close lines 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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7310886894 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4844#issuecomment-7310886894). Originally posted by [QLDH67891](https://github.com/QLDH67891) on 2026-12-01T12:15:59Z. --- Captured it with `VICTORY_MEMORY_TRACE=1` (that switch already prints `video_memory_groups` plus commit once a second, so no extra instrumentation was needed for the budgets 鈥?see `host.rs:16135-16146` and `17936-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: ``` 12:11:29.891 card's own 6719/11347 MB | PC shared 5990/7437 MB 12:11:30.971 card's own 6756/11347 MB | PC shared 6622/7437 MB 12:11:32.693 card's own 6768/11347 MB | PC shared 7084/7437 MB frame memory sample: resident 4916 MiB, commit 23374 MiB, physical free 77 MiB 12:11:34.815 WARN victory_gpu::host: no shared buffer error=鍐呭瓨璧勬簮涓嶈冻锛屾棤娉曞畬鎴愭鎿嶄綔銆?0x8007000E) size=4980736 ``` 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 buffer` lines appearing ~40 ms *before* the first `no upload buffer` in the earlier run. Agreed on your reading of `VICTORY_UPLOAD_POOL_MB`: it bounds `UPLOAD_SPARE`, "copy sources of `HostList::upload` no list holds" (`host.rs:3725-3745`), so it cannot cap active uploads, and the retry-once-after-`free_all_spares` path is already there (`host.rs:15018-15047`). One suggestion from this side: the numbers above only exist because `MEMORY_TRACE` samples them once a second and they are not attached to the refusal itself. Adding the same `log_video_memory(...)` line to `report_upload_error` (rate-limited to the first refusal of each second) would make any future report self-contained, since `reset_error` never fires in this failure mode 鈥?we had zero `did not reset` / `did not close` lines 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.
andrewpozdnakov7-jpg commented 2026-12-01 12:35:14 +00:00 (Migrated from github.com)
Author
Contributor

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 refusal line 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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7311354733 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4844#issuecomment-7311354733). Originally posted by [andrewpozdnakov7-jpg](https://github.com/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](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/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 refusal` line 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.
nidea1 commented 2026-12-01 14:39:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nidea1 on 2026-12-01T14:39:20Z.


@QLDH67891 Since your VICTORY_MEMORY_TRACE=1 run narrowed the 0x8007000E refusals (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:

  • #4737 defaults the UPLOADS and SHARED CPU-visible buffer pool blocks in pool.rs from 64 MiB down to 16 MiB on <=32 GiB hosts (VICTORY_BUFFER_BLOCK_MB, configurable in 8..=64 MiB) so sparse blocks pin less shared L0 memory.
  • In a matched live A/B on an RTX 3060 Ti 8 GB / 32 GB RAM host (Series S, t=78-140 s), VICTORY_BUFFER_BLOCK_MB=16 (+ auto VICTORY_SPARE_SCALE) cut Shared GPU RAM by -950 to -1,231 MB and process PrivateBytes by -637 to -1,056 MB compared to =64 (VICTORY_SPARE_SCALE=0).
  • Caveat: that A/B was a short (~2.5 min) opening-scene comparison on a 32 GB host with other open PRs combined (and ended early due to unrelated host instability), so it has not yet been tested on a 16 GB RAM courtyard burst.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7314611271 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4844#issuecomment-7314611271). Originally posted by [nidea1](https://github.com/nidea1) on 2026-12-01T14:39:20Z. --- @QLDH67891 Since your `VICTORY_MEMORY_TRACE=1` run narrowed the `0x8007000E` refusals (`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: - #4737 defaults the `UPLOADS` and `SHARED` CPU-visible buffer pool blocks in `pool.rs` from 64 MiB down to **16 MiB** on `<=32 GiB` hosts (`VICTORY_BUFFER_BLOCK_MB`, configurable in `8..=64` MiB) so sparse blocks pin less shared L0 memory. - In a matched live A/B on an RTX 3060 Ti 8 GB / 32 GB RAM host (Series S, `t=78-140 s`), `VICTORY_BUFFER_BLOCK_MB=16` (+ auto `VICTORY_SPARE_SCALE`) cut Shared GPU RAM by **`-950` to `-1,231 MB`** and process PrivateBytes by **`-637` to `-1,056 MB`** compared to `=64` (`VICTORY_SPARE_SCALE=0`). - *Caveat:* that A/B was a short (~2.5 min) opening-scene comparison on a 32 GB host with other open PRs combined (and ended early due to unrelated host instability), so it has not yet been tested on a 16 GB RAM courtyard burst.
Sign in to join this conversation.
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA#4844
No description provided.