docs/linux-proton: the NVIDIA cache file stops being indexed past 4 GiB #3535

Open
github-bot wants to merge 1 commit from github-bot/gh-3535 into main AGit
Owner

@⁠PavelKhabusov on GitHub · 2026-11-30 00:36 UTC · original
PavelKhabusov:docs/nv-cache-4gib → main · +43 −0 · 1 files · 1 commits · open

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 .toc index. 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:

  • On every start, even after a fresh preload, 1400–2300 pipelines were still being made in play, at 0.2–9 fps for the first minutes.
  • perf put 79 % of the CPU in libnvidia-gpucomp, on the victory-pipelin threads. victory itself was under 2 %.
  • The pipeline library and vkd3d-proton's cache were both hit (misses=0). Only the driver's disk cache missed.
  • The title's .bin had reached 5.9 GB. Its .toc had not been written since about the time the file crossed 4 GiB.

Verification

  1. Moved the oversized .bin and .toc away.
  2. Ran one long session: the compile queue was empty after about 6 minutes.
  3. Ran two control sessions: 245, then 0 pipelines were made in play.

We now drop a .bin larger than 3.5 GiB, together with its .toc, before each start. The next run compiles into a fresh file and stays fast.

Also documented

  • The preload doesn't warm this cache for the game. Each preload process writes a file of its own, and the title never reads them. With a fresh preload and no file of its own, the first run still compiled 2356 pipelines.
  • The default cap of 1 GiB is shared by all apps and can't hold 80k+ pipelines. That's why the size has to be set at all.

Docs only, no code changes.

🤖 Generated with Claude Code

**@⁠PavelKhabusov** on GitHub · 2026-11-30 00:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3535) `PavelKhabusov:docs/nv-cache-4gib` → `main` · +43 −0 · 1 files · 1 commits · open ## 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 `.toc` index. 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: - On every start, even after a fresh preload, **1400–2300 pipelines** were still being made in play, at 0.2–9 fps for the first minutes. - `perf` put **79 % of the CPU in `libnvidia-gpucomp`**, on the `victory-pipelin` threads. victory itself was under 2 %. - The pipeline library and vkd3d-proton's cache were both hit (`misses=0`). Only the driver's disk cache missed. - The title's `.bin` had reached **5.9 GB**. Its `.toc` had not been written since about the time the file crossed 4 GiB. ## Verification 1. Moved the oversized `.bin` and `.toc` away. 2. Ran one long session: the compile queue was empty after about 6 minutes. 3. Ran two control sessions: **245, then 0** pipelines were made in play. We now drop a `.bin` larger than 3.5 GiB, together with its `.toc`, before each start. The next run compiles into a fresh file and stays fast. ## Also documented - **The preload doesn't warm this cache for the game.** Each preload process writes a file of its own, and the title never reads them. With a fresh preload and no file of its own, the first run still compiled 2356 pipelines. - The default cap of 1 GiB is shared by all apps and can't hold 80k+ pipelines. That's why the size has to be set at all. Docs only, no code changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The title's own .bin under __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1 grows
without bound; past 4 GiB its .toc is no longer updated and every start
compiles the same 1400-2300 pipelines again. Document the symptoms, the
measurements and a pre-start trim, and note that preload processes do not
warm the driver's cache for the game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 00:40:13 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3535/head:github-bot/gh-3535'
git switch 'github-bot/gh-3535'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3535'
git switch 'github-bot/gh-3535'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3535'
git switch 'github-bot/gh-3535'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3535'
git switch 'main'
git merge --squash 'github-bot/gh-3535'
git switch 'main'
git merge --ff-only 'github-bot/gh-3535'
git switch 'main'
git merge 'github-bot/gh-3535'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3535
No description provided.