16 GB RAM / 8 GB laptop GPU: where the 4–5 GB of host copies at world load come from (census of copied memory, in-place probe results) #4717

Open
opened 2026-12-01 03:23:04 +00:00 by Korruptt-cd · 1 comment
Korruptt-cd commented 2026-12-01 03:23:04 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Korruptt-cd on 2026-12-01T03:23:04Z.


Title:

Summary

On a laptop with 16 GB of RAM and an RTX 4060 Laptop (8 GB) OS: Windows 11, build 10.0.26300 (Insider), every run crashes a few minutes after the world loads (0x8007000E, or 0x887A0005 device removed). The memory shared with the card fills its 7.39 GB cap.
I measured where the memory goes with the built-in in-place probe and census (VICTORY_INPLACE_PROBE=1), adding a census at the moment the copies burst. Main findings:

1.The process sits at about 10 GB private until the world loads. Then the host copies of title memory go from 176 MB to about 4.3 GB in under 20 seconds, while the shared memory and the card fill up.

  1. At that moment, 2.9 GB of the 3.8 GB of windows outside buffers lie over view memory with unmapped pages. Only 1.9 GB of those pages are mapped, so about 1 GB of every burst is copies of pages that aren't there.

3 .A finer window grid doesn't remove that gap. With 256 KiB instead of 1 MiB the windows stay at about 3.8 GB with about 1.1 GB unmapped, and the run is slower. The unmapped pages lie inside the ranges that are asked for, not only at the cells' ends.

  1. The probe says in-place works on this driver, private memory and a committed section alike. But only about 0.5 GB of the windows are memory it could open today (private committed whole, or one run of a section).

  2. The title's own memory is 101,000+ views of single 64 KiB pages (12.7 GB), from three sections (6,236, 710 and 185 MB), all "eligible to be opened as one native heap". The page pool's section is made SEC_RESERVE, which OpenExistingHeapFromFileMapping refuses (the probe confirms it).

System

GPU RTX 4060 Laptop GPU, 8 GB (card budget about 6.9–7.2 GB)
RAM 16 GB; shared GPU memory budget 7,387 MB
OS Windows build 10.0.26300, NVIDIA driver 617.14
Build main at 41adb551, release, play-foxhound.ps1 (16 GB defaults: VICTORY_WINDOW_KB=1024, VICTORY_WINDOW_TAILS=1)

The build carries local patches, available on request. They measure and log memory (a census every 2 minutes, and when the copies pass 1.5 / 3 / 4.5 GB; mapped bytes of copies over memory with unmapped pages), and add VICTORY_SAMPLED_MARKS=1, VICTORY_SAMPLED_EVICT=auto and VICTORY_BUFFER_MARKS=1 for PCs under 24 GB. The heap-pass buffer trimming I tried on top of the buffer marks is off in these runs: it let go of 106,588 views and 88,010 were made again, with no fall in the copies.

The burst (run 20261201-043750, 1 MiB grid)

time uct | private | host copies of title mem | free ram | card/shared in use
02:38:20 | 10,076 MB | 176 MB| 3,792 MB| 1,457 / 751 MB
02:38:25| 11,763 MB| 180 MB | 593 MB |
02:38:43| 20,262 MB| 4,333 MB | (5,582 copies)| 1,371 MB
02:38:49| 19,373 MB| 3,170 MB| 1,204 MB | 6,148 / 4,442 MB

At 02:38:42, windows outside buffers by what holds them: lists or the pass over the heap 1,792 (3,126 MB), descriptor slots alone 0, nothing 1 (2 MB).

Census at the burst (copies just past 4.6 GB)

Each row: count of copies / MB.

1 MiB grid (043750, 02:38:44) | 256 KiB grid (045003, 02:51:07)
Windows outside buffers | 1,960 / 3,791 MB | 4,745 / 3,837 MB
private, committed whole| 129 / 201 | 227 / 134
view memory, one run of a section| 180 / 246 | 1,566 / 594
view memory, scattered pages| 86 / 89 | 1,105 / 278
view memory with unmapped pages| 1,335 / 2,935| 1,610 / 2,651
of those, mapped| 1,881 of 2,935 MB | 1,555 of 2,651 MB
private, not committed whole or guarded| 230 / 319 | 236 / 172
Title buffers| 4,207 / 1,019 MB | 4,164 / 999 MB
private, committed whole| 4,072 / 367 | 4,030 / 351
view memory, one run of a section| 116 / 275 | 115 / 271
view memory, scattered pages| 19 / 377 | 19 / 377

,At the later censuses of the same runs, the unmapped share of the windows over memory with holes was 1,288 of 2,658 MB and 897 of 1,903 MB (1 MiB grid), and 1,224 of 2,342 MB and 1,093 of 2,058 MB (256 KiB grid).
Median of the 5-second frame-rate lines, menus left out: 15.0 fps at 1 MiB, 11.8 fps at 256 KiB. Both crashed at about 6 minutes (0x887A0005 at 1 MiB, 0x8007000E at 256 KiB).

In-place probe on this PC (from the log)

> VERDICT: private memory in place: reads true, writes true; the page pool's section in place: reads true, writes true, whatever the views do true; a reserved section is refused true (the pool must be made committed to be opened)
Cost, from the probe of an earlier run that day: 64 MB of a committed section never touched opened in 10.1 ms. The working set grew about 70 MB and shared memory 64 MB. The card copied it out in 6.2 ms, against 5.8 ms from a shared buffer of today's kind.

What this suggests (for people who know the code better than I do)

About 1 GB per burst goes to pages that aren't mapped, inside windows the heap pass and the lists hold. A window that skips its unmapped 64 KiB pages would save that, for example a reserved buffer whose tiles only back the mapped pages, in a heap of our own (not an opened one). The catch is that the CPU can't map a reserved buffer, which today's refresh path relies on.
Making the page pool's section SEC_COMMIT (Windows), so it can be opened with OpenExistingHeapFromFileMapping, would make the 6.2 GB section importable as one heap. But the title maps it as single 64 KiB pages, so most windows are not one run of it. Placed buffers only cover the runs, about 0.25–0.6 GB of windows at the burst.
The rest of the burst is mapped title memory the card reads. On a 16 GB PC it doesn't fit next to the card's own overflow, whatever the grid.
I can run any build or switch on this machine and send the logs.

**Both logs attached (zipped, my Windows username replaced with USER, nothing else changed):

  • victory-nvidia-20261201-043750.log: the 1 MiB grid run (default for 16 GB), device removed (0x887A0005) at about 6 min
  • victory-nvidia-20261201-045003.log: the same with VICTORY_WINDOW_KB=256, 0x8007000E at about 6 min
    Both have VICTORY_INPLACE_PROBE=1 with the extra census at the burst. Happy to run anything else.**
    victory-logs-16gb-20261201.zip
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6711664611 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4717). Originally posted by [Korruptt-cd](https://github.com/Korruptt-cd) on 2026-12-01T03:23:04Z. --- Title: ### Summary **On a laptop with 16 GB of RAM and an RTX 4060 Laptop (8 GB) OS: Windows 11, build 10.0.26300 (Insider)**, every run crashes a few minutes after the world loads (`0x8007000E`, or `0x887A0005` device removed). The memory shared with the card fills its 7.39 GB cap. I measured where the memory goes with the built-in in-place probe and census (`VICTORY_INPLACE_PROBE=1`), adding a census at the moment the copies burst. Main findings: 1.The process sits at about **10 GB private until the world loads.** Then the host copies of title memory go from 176 MB to about **4.3 GB in under 20 seconds**, while the shared memory and the card fill up. 2. At that moment, 2.9 GB of the 3.8 GB of windows outside buffers lie over view memory with unmapped pages. Only 1.9 GB of those pages are mapped, so about 1 GB of every burst is copies of pages that aren't there. 3 .A finer window grid doesn't remove that gap. With 256 KiB instead of 1 MiB the windows stay at about 3.8 GB with about 1.1 GB unmapped, and the run is slower. The unmapped pages lie inside the ranges that are asked for, not only at the cells' ends. 4. The probe says in-place works on this driver, private memory and a committed section alike. But only about 0.5 GB of the windows are memory it could open today (private committed whole, or one run of a section). 5. The title's own memory is 101,000+ views of single 64 KiB pages (12.7 GB), from three sections (6,236, 710 and 185 MB), all "eligible to be opened as one native heap". The page pool's section is made `SEC_RESERVE`, which `OpenExistingHeapFromFileMapping` refuses (the probe confirms it). ### System **GPU RTX 4060 Laptop GPU, 8 GB (card budget about 6.9–7.2 GB) RAM 16 GB; shared GPU memory budget 7,387 MB OS Windows build 10.0.26300, NVIDIA driver 617.14 Build `main` at `41adb551`, release, `play-foxhound.ps1` (16 GB defaults: `VICTORY_WINDOW_KB=1024`, `VICTORY_WINDOW_TAILS=1`)** The build carries local patches, available on request. They measure and log memory (a census every 2 minutes, and when the copies pass 1.5 / 3 / 4.5 GB; mapped bytes of copies over memory with unmapped pages), and add `VICTORY_SAMPLED_MARKS=1`, `VICTORY_SAMPLED_EVICT=auto` and `VICTORY_BUFFER_MARKS=1` for PCs under 24 GB. The heap-pass buffer trimming I tried on top of the buffer marks is off in these runs: it let go of 106,588 views and 88,010 were made again, with no fall in the copies. ### **The burst (run `20261201-043750`, 1 MiB grid)** **time uct | private | host copies of title mem | free ram | card/shared in use 02:38:20 | 10,076 MB | 176 MB| 3,792 MB| 1,457 / 751 MB 02:38:25| 11,763 MB| 180 MB | 593 MB | 02:38:43| 20,262 MB| 4,333 MB | (5,582 copies)| 1,371 MB 02:38:49| 19,373 MB| 3,170 MB| 1,204 MB | 6,148 / 4,442 MB** At 02:38:42, `windows outside buffers by what holds them`: lists or the pass over the heap 1,792 (3,126 MB), descriptor slots alone 0, nothing 1 (2 MB). ### Census at the burst (copies just past 4.6 GB) Each row: count of copies / MB. **1 MiB grid (`043750`, 02:38:44) | 256 KiB grid (`045003`, 02:51:07) Windows outside buffers | 1,960 / 3,791 MB | 4,745 / 3,837 MB private, committed whole| 129 / 201 | 227 / 134 view memory, one run of a section| 180 / 246 | 1,566 / 594 view memory, scattered pages| 86 / 89 | 1,105 / 278 view memory with unmapped pages| 1,335 / 2,935| 1,610 / 2,651 of those, mapped| 1,881 of 2,935 MB | 1,555 of 2,651 MB private, not committed whole or guarded| 230 / 319 | 236 / 172 Title buffers| 4,207 / 1,019 MB | 4,164 / 999 MB private, committed whole| 4,072 / 367 | 4,030 / 351 view memory, one run of a section| 116 / 275 | 115 / 271 view memory, scattered pages| 19 / 377 | 19 / 377** ,At the later censuses of the same runs, the unmapped share of the windows over memory with holes was 1,288 of 2,658 MB and 897 of 1,903 MB (1 MiB grid), and 1,224 of 2,342 MB and 1,093 of 2,058 MB (256 KiB grid). Median of the 5-second frame-rate lines, menus left out: 15.0 fps at 1 MiB, 11.8 fps at 256 KiB. Both crashed at about 6 minutes (`0x887A0005` at 1 MiB, `0x8007000E` at 256 KiB). ### **In-place probe on this PC (from the log)** **> VERDICT: private memory in place: reads true, writes true; the page pool's section in place: reads true, writes true, whatever the views do true; a reserved section is refused true (the pool must be made committed to be opened) Cost, from the probe of an earlier run that day: 64 MB of a committed section never touched opened in 10.1 ms. The working set grew about 70 MB and shared memory 64 MB. The card copied it out in 6.2 ms, against 5.8 ms from a shared buffer of today's kind.** ### **What this suggests (for people who know the code better than I do)** **About 1 GB per burst goes to pages that aren't mapped, inside windows the heap pass and the lists hold. A window that skips its unmapped 64 KiB pages would save that, for example a reserved buffer whose tiles only back the mapped pages, in a heap of our own (not an opened one). The catch is that the CPU can't map a reserved buffer, which today's refresh path relies on. Making the page pool's section `SEC_COMMIT` (Windows), so it can be opened with `OpenExistingHeapFromFileMapping`, would make the 6.2 GB section importable as one heap. But the title maps it as single 64 KiB pages, so most windows are not one run of it. Placed buffers only cover the runs, about 0.25–0.6 GB of windows at the burst. The rest of the burst is mapped title memory the card reads. On a 16 GB PC it doesn't fit next to the card's own overflow, whatever the grid. I can run any build or switch on this machine and send the logs.** **Both logs attached (zipped, my Windows username replaced with USER, nothing else changed): - victory-nvidia-20261201-043750.log: the 1 MiB grid run (default for 16 GB), device removed (0x887A0005) at about 6 min - victory-nvidia-20261201-045003.log: the same with VICTORY_WINDOW_KB=256, 0x8007000E at about 6 min Both have VICTORY_INPLACE_PROBE=1 with the extra census at the burst. Happy to run anything else.** [victory-logs-16gb-20261201.zip](https://github.com/user-attachments/files/35653550/victory-logs-16gb-20261201.zip)
github-actions[bot] commented 2026-12-01 03:23:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-12-01T03:23:12Z.


Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU you have and which Windows version (10 or 11).

If this issue needs logs and none are posted here within 12 hours, it will be closed. Add them by editing your post or in a comment.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7299651552 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4717#issuecomment-7299651552). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T03:23:12Z. --- Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU you have and which Windows version (10 or 11). **If this issue needs logs and none are posted here within 12 hours, it will be closed.** Add them by editing your post or in a comment.
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#4717
No description provided.