16 GB of RAM: the GPU's system-memory budget (about half of RAM) runs out seconds into the world, allocations fail with E_OUTOFMEMORY, then the title's watchdog at +0x23cf683 #147
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#147
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?
@RodrigoTorreao on GitHub · 2026-11-25 17:03 UTC · original
One machine: RX 6750 XT 12 GB (RDNA2, driver 32.0.21045.29003), i5-14600KF, 16 GB RAM, Windows 11 26200, page file 48 GB (commit limit 63.8 GB).
01aadd1,cargo build --profile diag -p victory --features diagnostics, README settings (VICTORY_PRESENT_TARGET=1x1:1 VICTORY_HAIR=1,--console series-x), own dump of 1.0.2.1, Enter every 5 s from 15 to 150 s.What happens
The menus run at 30 fps and the world starts drawing about 2 minutes in. A few seconds later, host allocations start failing, frames stop, and about 30 s after that the title writes to address 0 at
+0x23cf683(its own stall watchdog, as far as I can tell).0x8007000E+0x23cf683at 188 s+0x23cf683at 220 sRun 2 shows it is not the commit limit: about 20 GB of commit was still free.
What runs out
The driver's system-memory segment.
DXGI_MEMORY_SEGMENT_GROUP_NON_LOCALuse, from the memory line (driver: ... system N MiB), climbs during the load and stops at 7,704 MiB in both runs.dxdiaggives this adapter 8,110 MB of shared memory, which Windows sizes at half of RAM. Video memory was not full (9.1 of 10.8 GB).Run 2, every 20 s:
Then about 41,000 warnings:
no upload buffer,no shared buffer,no memory for copies of title memory, all0x8007000E. Some of what is in that segment at the failure (memory line): title memory used in place, 3,408 MiB in 5 windows (OpenExistingHeapFromAddress1); upload 1,124 MiB; buffer copies 1,312 MiB; texture staging 347 MiB.As far as I can see,
host::video_memory()returns both segments, but only the local budget is checked (card.rs,resource.rs,host.rs); the system segment's budget is not looked at, and the memory line prints its use without its budget.With
VICTORY_COPY_MEMORY=1(run 3)No
0x8007000Eat all; system segment at 2.6 GB. But the world load stopped presenting at frame 6301 for 30 s (the title binding new pipelines, not translating: cachemisses=0), and the same+0x23cf683followed at 144 s. So copies avoid the allocation failures here, but this run did not get further.Why it may matter
On a machine with 32 GB of RAM this segment is about 16 GB, on 64 GB about 32 GB, so it would not show there. Anyone with 16 GB of RAM may hit it regardless of the card. #20 (16 GB RAM, RX 9060 XT) may be related; I have not checked.
Excerpts of runs 2 and 3 (fps and memory lines, first allocation failures, crash; the title's own log lines removed) are attached.
AI-assisted (Claude Code): the runs, the numbers and this text. No game data.
@RodrigoTorreao on GitHub · 2026-11-25 17:58 UTC · original
Follow-up on the same machine: a local change, and what
VICTORY_GPU_UPLOAD=1does here.The change (local, on
01aadd1): before title memory is opened in place (OpenExistingHeapFromAddress1inshadow::direct), the driver'sNON_LOCALuse plus the window's length is compared with 50% of its budget; past that, the window is copied instead, as memory that cannot be used in place is. The memory line also prints the budget (system X of Y MiB): here it is 7,000 to 7,448 MiB.Runs (same executable for 4 and 5, the share set by an environment variable; one run each):
VICTORY_GPU_UPLOAD0x8007000E+0x23cf683a host command list did not close (0x8007000E)0x887A0005), video memory at 92%VICTORY_GPU_UPLOAD=1(Resizable BAR; it is on on this machine) moved most uploads to video memory until video memory passed 85%, and doubled the time in the world. It is off by default; on a 16 GB machine it may be worth turning on.mainhas since started opening more title memory in place (0434b3a, through a view of its own), which adds to this segment. The same change on currentmain, with its runs, is in #161.AI-assisted (Claude Code): the runs, the numbers and this text. No game data.
@j-fuxa on GitHub · 2026-11-26 01:41 UTC · original
Two measurements from our own build that bear on the in-place windows in this thread. Both were taken on an RTX 4060 Laptop (Windows 11), not on an AMD card, so read the first as a lead to check, not a fact about your driver.
Opening a heap over title memory makes the whole range resident. With
OpenExistingHeapFromAddress1on a committed 256 MiB range that nothing had touched, the working set grew by about 256 MiB. Each open cost 2.4 to 5 ms whatever the size. While a heap is open,VirtualProtect,VirtualFreeandUnmapViewOfFileon its pages fail with error 87. So a window would count in full against the driver's system segment (NON_LOCAL) whether or not the GPU reads it, which fits "3,408 MiB in 5 windows" above. If that holds on AMD, windows cut to what draws actually read would lower the segment's use more than the share check in #161, which only chooses in place or copy.The 4 MiB copy windows are mostly untouched, and they barely overlap. At world entry in our build the loose 4 MiB windows held 1.76 to 1.99 GB, while submissions touched only 665 to 838 MiB of that. The windows overlapped by 24 to 48 MiB. So the waste is the untouched part of each window, not duplicates. We would not simply shrink the windows: a 1 MiB grid made our world entry much slower in one run, shaders may read bytes near the range they declare, and another tree measured about 50% more frame time with 256 KiB windows. Fetching only the touched sub-ranges looks like the lever to test. Not measured on your build.
@luisaugustz on GitHub · 2026-11-26 20:47 UTC · original
Same limit on a 32 GB machine, with ray tracing on. It takes much longer to get there.
Machine: RX 9070 XT 16 GB (Adrenalin 26.11.2, driver 32.0.32029.2010), Ryzen 7 5800X, 32 GB, Windows 11.
Build:
rx9070xtat81ebb7bdplus #252, #235, #231, avatarmanz4fd34fdand #270, diagnostics, with a local change that logs the #270 report every 10 s.VICTORY_BVH_BUILDER=1,VICTORY_AMBIENT=0,VICTORY_KEEP_FREEDunset, scripted keys through the opening.One run with the report on:
0x8007000E, mostly 4 MiB shared buffersVICTORY_KEEP_FREED=0sat higher (about 6.8 GB of shadow copies). I stopped it at 20 minutes with no errors, before the point where the first run failed, so it shows nothing either way.Newer base, one run:
cd8dfc06plus #252 and #235, ray tracing on,VICTORY_RESIDENCY=1, empty shader cache at first and warm for this run. It ran 39.8 minutes with no0x8007000Eand no crash, and I closed it. The shared segment peaked at about 14.3 of 15.6 GB (13.5 at the end), so it had little room left. RAM was almost full (down to about 0.9 GB free). This changed several things at once (base, residency, background apps closed partway), so I cannot credit any one of them. An earlier launch of the same build ended in a reset of the whole PC at about 13 minutes, which I cannot explain.I have not run this long enough with ray tracing off to say whether it happens there too.
@Adika713 on GitHub · 2026-11-26 21:56 UTC · original
Related data point (not the same root cause): on RX 6950 XT 16GB / R5 3600 / 32GB RAM / 2688MB pagefile unchanged, Belobug PR #297 (
b82a5db8, opt-inVICTORY_LAZY_PHYSICAL/FILE_PHYSICAL) addressed title-side physical-page commit pressure (1455) and survived 300s in low-pressure config (720p budget32 tex64 no RT,LAZY=0 FILE=1 RELAY=0), but commit headroom was still tight (~0.25GB) and higher-pressure runs hit0x8007000E/dstorage os error 1450/alloc failures. That suggests PR #297 helps commit-pressure cases, but the 16GB-RAM/system-memory-budget/E_OUTOFMEMORY path you describe may need separate VRAM/budget work.AI-assisted: OpenCode / opencode/big-pickle.
@Gabzinnn12 on GitHub · 2026-11-27 02:49 UTC · original
Data point for this issue: 16 GB of RAM and an 8 GB card (both of the driver's segments near their budgets), on current
a-publier.Machine: Ryzen 5 5500 (6c/12t), Radeon RX 7600 8 GB (driver 32.0.32029.2010), 16 GB DDR4-3200, Windows 11 Pro 26300. Page file 24 GB fixed on NVMe + 8–16 GB on a SATA SSD (commit limit about 49 GB). Game package on a SATA SSD.
Build:
a-publierat4eb6cfd,--release --features diagnostics. One local change: the game package is read fromVICTORY_GAME_DIRinstead of the executable's folder (path only). The shader cache was carried over from earlier runs ofcd8dfc0. Series X profile,VICTORY_OUTPUT=1920x1080. Scripted Enter every 3 s from 8 to 80 s; the intro cutscene was not skipped. Each run measured 300 s from the first frame with more than 100 draws.0x8007000Ewarningsno shared buffer)0x887A0005(device removed) at about 173 sno shared buffer), all within about 3 s, about 80 s into the world"Ports 1, 2, 5, 6, 7" =
VICTORY_PORT_CONSTANTS=1 VICTORY_PORT_DESCRIPTORS=1 VICTORY_PORT_CBV=1 VICTORY_PORT_GUARD=1 VICTORY_PORT_JOURNAL=1.Takeaways for #147, with 3 runs on one machine:
Logs (fps and memory lines and the first allocation failures, with the title's own log lines removed) are available if useful. I can run other switches if you name them.
AI-assisted (Claude Code): the runs, the numbers and this text. No game data.