docs/linux-proton: the NVIDIA cache file stops being indexed past 4 GiB #3535
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3535
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3535"
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?
@PavelKhabusov on GitHub · 2026-11-30 00:36 UTC · original
PavelKhabusov:docs/nv-cache-4gib→main· +43 −0 · 1 files · 1 commits · openSummary
On Linux with NVIDIA, the setup in
docs/linux-proton.md(__GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1) lets the title's own driver cache file grow without bound. Once it passes 4 GiB, the driver stops updating its.tocindex. Every pipeline compiled after that is appended and never found again, so each start compiles the same pipelines from scratch.This PR documents the symptom, how it was measured, and a three-line trim to run before each start. It also notes that preload processes don't warm the driver's cache for the game.
How it shows up
Measured on an RTX 4060 Laptop 8 GB, driver 615.78.08, Arch with Proton:
perfput 79 % of the CPU inlibnvidia-gpucomp, on thevictory-pipelinthreads. victory itself was under 2 %.misses=0). Only the driver's disk cache missed..binhad reached 5.9 GB. Its.tochad not been written since about the time the file crossed 4 GiB.Verification
.binand.tocaway.We now drop a
.binlarger than 3.5 GiB, together with its.toc, before each start. The next run compiles into a fresh file and stays fast.Also documented
Docs only, no code changes.
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.