AMD fork chain: private bytes go 6.5 GB -> 109 GB in 15 minutes of the first room, then the commit limit ends the run (RX 9070 XT) #689

Open
opened 2026-11-26 03:49:02 +00:00 by github-bot · 0 comments
Owner

@⁠KricsDavid on GitHub · 2026-11-25 04:32 UTC · original

Where this belongs: the report is about JoshuaO22/victory-amd (f25e735, one DirectStorage
guard fix on myokex/victory-amd 070df42), which is built on this fork. Their issue trackers are
closed, so it lands here; I am happy to move it, or to rerun the measurements on any branch, if one
of the fork authors takes it.

Setup: Windows 11 (26300), Ryzen 7 5700X3D, 32 GB RAM, pagefile 97 GB (commit limit 127 GB),
AMD RX 9070 XT 16 GB, driver 32.0.32029.2010. Build f25e735 (your branch, diag profile),
victory warm done with the same build. Series X profile, fresh saves (setup/storage kept from an
earlier run). Switches on:

VICTORY_LOG=info
VICTORY_CARD_BUFFERS_MIN_MB=1
VICTORY_CARD_REHASH_RUNS=1
VICTORY_JOIN_COPIES=1

What works: the opening cutscene renders in colour from start to the prison's first room, the pad
moves Lucia, 2–3 fps. That part is the best this title has looked on this card. Thank you.

The problem: private bytes climb ~7 GB a minute from the first frame of the world and never come
back down. Sampled every 10 s (PrivateMemorySize64, WorkingSet64):

05:13:25   WS 2.6 GB   private 6.5 GB
05:14:15   WS 19.3 GB  private 23.9 GB
05:15:05   WS 23.3 GB  private 40.4 GB
05:17:46   WS 21.4 GB  private 54.3 GB
05:20:16   WS 21.5 GB  private 63.7 GB
05:21:16   WS 22.3 GB  private 102.8 GB
05:21:46   WS 22.9 GB  private 108.3 GB      <- plateaus
05:27:56   WS 22.6 GB  private 109.3 GB
05:28:06   WS 20.6 GB  private 99.9 GB       <- the process ends

The run ends with

memory allocation of 11829970 bytes failed

which is the commit limit, not RAM: 32 GB + 97 GB of pagefile puts the limit at 127 GB, and the
process alone held ~109 GB of commit. The working set stays around 21–23 GB, so the leak is in
reserved/committed virtual memory that is never released, not in pages being touched.

Two guesses where it comes from, both from your own log lines (the last frame before the crash):

victory_gpu::shadow: shader writes looked for on the CPU per frame: 405.7 MB in 400 ranges of
  title buffers' copies (405.7 MB snapshotted), 373.3 MB in copies of 1 MiB or more
victory_gpu::host: our passes over copies in the card's memory per frame: 278 hash passes over
  1540 pieces after ranges were sent up (VICTORY_CARD_REHASH_RUNS=1 joins them: now on), 46
  compare passes
victory_gpu::host: title buffer copies recorded per frame: 42, of them 0 continue the one before

The number of ranges and pieces looks stable per frame, so the growth is probably not these
lists themselves but the per-range/per-piece host allocations behind them (or the
VICTORY_CARD_BUFFERS_MIN_MB=1 card-copy path, which is new in this run).

Runs to compare (I can do these): same config with
VICTORY_CARD_BUFFERS_MIN_MB unset, and with the three switches all off — if the slope changes,
that names the path; if it does not, it predates them.

Mitigation for now: a restart every ~8 minutes keeps it inside 32 GB + pagefile. With the
pagefile at 97 GB the game does survive to ~109 GB of commit, but at that size the machine swaps
enough to make the frames uneven.

Not tested: NVIDIA, other titles, Series S. No title data attached; no game files copied.

AI use: written by an AI agent (DeepSeek Harness, deepseek-flash) from my run logs and the
memory samples above; the machine, the dump and the runs are mine.

**@⁠KricsDavid** on GitHub · 2026-11-25 04:32 UTC · [original](https://github.com/fxceless/victory-fork/issues/689) **Where this belongs:** the report is about `JoshuaO22/victory-amd` (`f25e735`, one DirectStorage guard fix on `myokex/victory-amd` `070df42`), which is built on this fork. Their issue trackers are closed, so it lands here; I am happy to move it, or to rerun the measurements on any branch, if one of the fork authors takes it. **Setup:** Windows 11 (26300), Ryzen 7 5700X3D, **32 GB RAM**, pagefile 97 GB (commit limit 127 GB), AMD **RX 9070 XT** 16 GB, driver 32.0.32029.2010. Build `f25e735` (your branch, `diag` profile), `victory warm` done with the same build. Series X profile, fresh `saves` (setup/storage kept from an earlier run). Switches on: ``` VICTORY_LOG=info VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1 ``` **What works:** the opening cutscene renders in colour from start to the prison's first room, the pad moves Lucia, 2–3 fps. That part is the best this title has looked on this card. Thank you. **The problem:** private bytes climb ~7 GB a minute from the first frame of the world and never come back down. Sampled every 10 s (`PrivateMemorySize64`, `WorkingSet64`): ``` 05:13:25 WS 2.6 GB private 6.5 GB 05:14:15 WS 19.3 GB private 23.9 GB 05:15:05 WS 23.3 GB private 40.4 GB 05:17:46 WS 21.4 GB private 54.3 GB 05:20:16 WS 21.5 GB private 63.7 GB 05:21:16 WS 22.3 GB private 102.8 GB 05:21:46 WS 22.9 GB private 108.3 GB <- plateaus 05:27:56 WS 22.6 GB private 109.3 GB 05:28:06 WS 20.6 GB private 99.9 GB <- the process ends ``` The run ends with ``` memory allocation of 11829970 bytes failed ``` which is the commit limit, not RAM: 32 GB + 97 GB of pagefile puts the limit at 127 GB, and the process alone held ~109 GB of commit. The working set stays around 21–23 GB, so the leak is in **reserved/committed virtual memory that is never released**, not in pages being touched. Two guesses where it comes from, both from your own log lines (the last frame before the crash): ``` victory_gpu::shadow: shader writes looked for on the CPU per frame: 405.7 MB in 400 ranges of title buffers' copies (405.7 MB snapshotted), 373.3 MB in copies of 1 MiB or more victory_gpu::host: our passes over copies in the card's memory per frame: 278 hash passes over 1540 pieces after ranges were sent up (VICTORY_CARD_REHASH_RUNS=1 joins them: now on), 46 compare passes victory_gpu::host: title buffer copies recorded per frame: 42, of them 0 continue the one before ``` The number of ranges and pieces looks stable per frame, so the growth is probably not these lists themselves but the per-range/per-piece host allocations behind them (or the `VICTORY_CARD_BUFFERS_MIN_MB=1` card-copy path, which is new in this run). **Runs to compare** (I can do these): same config with `VICTORY_CARD_BUFFERS_MIN_MB` unset, and with the three switches all off — if the slope changes, that names the path; if it does not, it predates them. **Mitigation for now:** a restart every ~8 minutes keeps it inside 32 GB + pagefile. With the pagefile at 97 GB the game does survive to ~109 GB of commit, but at that size the machine swaps enough to make the frames uneven. **Not tested:** NVIDIA, other titles, Series S. No title data attached; no game files copied. **AI use:** written by an AI agent (DeepSeek Harness, `deepseek-flash`) from my run logs and the memory samples above; the machine, the dump and the runs are mine.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:49:02 +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/fxceless--victory-fork#689
No description provided.