docs/linux-proton: the NVIDIA cache file stops being indexed past 4 GiB #3535
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by PavelKhabusov on 2026-11-30T00:36:58Z.
Summary
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.