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
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 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, or0x887A0005device 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.
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.
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).
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, whichOpenExistingHeapFromFileMappingrefuses (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
mainat41adb551, 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=autoandVICTORY_BUFFER_MARKS=1for 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 (
0x887A0005at 1 MiB,0x8007000Eat 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 withOpenExistingHeapFromFileMapping, 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):
Both have VICTORY_INPLACE_PROBE=1 with the extra census at the burst. Happy to run anything else.**
victory-logs-16gb-20261201.zip
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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%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.