VRAM footprint: 7.5 GB on a 12 GB card in a moderate sim — investigate leak / over-allocation #244
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
sky_line/Slipstream#244
Loading…
Add table
Add a link
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?
Report
A user on a 12 GB card sees Slipstream using ~7.5 GB VRAM while EVE Online (running alongside) uses ~1.7 GB. That seems high for the sim they're in. This is the same user who reported textures dropping to thumbnail size when alt-tabbing between EVE and Slipstream.
Why it matters
VK_EXT_memory_budgetheap budget (texture budget = 60% of it, pressure mode at >90%). Whatever non-texture memory we hold (RT, staging, G-buffer / FSR / HiZ targets, geometry) comes straight out of what textures get.76c3e69e3d: budget/pressure bias is capped atRenderVKTexPressureMaxBias(3) unless an allocation actually fails, and the bias recovers immediately on focus regain.Investigate
RenderVKSectionLogon. Capture:VKMemlogMemory line (textures / RT AS+aux / geometry / staging / targets);nvidia-smi --query-compute-apps;texture mip bias/VRAM pressure modelines.Compare against the 2026-09-29 baseline (9.2 GB on a 5090 in a busy two-sim view: textures 3.4, RT 2.0, geometry 1.6, staging 1.5).
VKMemtotal or driver process usage grow without bound? Does staging stay at peak after a re-stream (#160)? Are freed images/buffers actually returned (destroyImageDeferred/ retire queues, the descriptor pools)?Also check bucket caps sized for worst case rather than actual counts, RT aux / BLAS budgets (#161, #164), and texture residency over-holding (bias 0 at full res for off-screen textures).
Related
#159, #160, #161, #163, #164
Asks for the reporter
Slipstream.logfrom a session where this happensReporter follow-up: Linux on the same machine
On Linux, from a fresh start, the reporter measured ~4 GB VRAM. On Windows, with session length unknown, they saw ~7.5 GB.
The difference has two possible explanations, and we need to tell them apart:
VKMemlogMemory totals (what we allocated) in both OSes'Slipstream.logagainst the OS tool's number. IfVKMemagrees across OSes but the tool doesn't, it's driver accounting. IfVKMemitself differs, it's our allocation path.Asks
Slipstream.logfrom the Windows session, plus a matching Linux session of similar length.nvidia-smior Task Manager readings at start and after ~30 min.Update: the texture bug looks Windows-only
The reporter (RTX 4070, 12 GB) loaded EVE alongside Slipstream on Linux and could not reproduce the thumbnail-texture bug.
Leading explanation: WDDM behaviour for background processes.
VK_EXT_memory_budgetheap budget and demotes its residency.What to check
76c3e69e3d): cap budget-driven bias atRenderVKTexPressureMaxBias3 unless an allocation actually fails, and recover immediately on focus. Have the reporter test it on Windows.Slipstream.logaround an alt-tab: look forVRAM pressure mode ENTERandtexture mip biaslines, and theheapBudgetin theVKMemline, which needsSlipstreamVerboseLogging.Part of #405 (RAM/VRAM management epic).
Investigation complete: every VRAM category is tracked and reported (#407), pools and lazy allocations (#411, #600, #614-#616) removed the over-allocation, and like-for-like totals are down. Remaining reductions are tracked in #614-#617 and #625. Closing.