Driver bug: new setting "Shader cache size" is not respected in 496.13

Hello, I’ve been trying out the new setting “Shader cache size”. Unfortunately with a non-public application so am afraid I have no reproducible binary to share.
I’ve set it to be 128MB but after a first launch the bin file contains well over 1000MB (which is the expected size, if no size restrictions were imposed). Upon further launches of the application the bin file’s size remains over 1000MB.

I’ve tried to restart my PC after modifying the setting, and using the default location for shader cache storage.

  • When is cache garbage collection/clean up expected to happen?
  • Was this behavior changed after the introduction of the “Shader cache size”-setting?
  • Is there any way to extract debug data such as cache hits/misses, entry invalidations, e.t.c.?
  • Is there any detailed public documentation about shader caching in general, about the caching policy for example?

Any help is much appreciated.

The related application is using OpenGL 4.6, here is my system information taken from the nvidia control panel:

NVIDIA System Information report created on: 10/18/2021 14:19:03

[Display]
Operating System:	Windows 10 Pro, 64-bit
DirectX version:	12.0 
GPU processor:		NVIDIA GeForce GTX 980
Driver version:		496.13
Driver Type:		DCH
Direct3D feature level:	12_1
CUDA Cores:		2048 
Core clock:		1177 MHz 
Memory data rate:	7.01 Gbps
Memory interface:	256-bit 
Memory bandwidth:	224.32 GB/s
Total available graphics memory:	12250 MB
Dedicated video memory:	4096 MB GDDR5
System video memory:	0 MB
Shared system memory:	8154 MB
Video BIOS version:	84.04.31.00.DD
IRQ:			Not used
Bus:			PCI Express x8 Gen3
Device Id:		10DE 13C0 85181043
Part Number:		G401 0000

[Components]

nvui.dll		8.17.14.9613		NVIDIA User Experience Driver Component
nvxdplcy.dll		8.17.14.9613		NVIDIA User Experience Driver Component
nvxdbat.dll		8.17.14.9613		NVIDIA User Experience Driver Component
nvxdapix.dll		8.17.14.9613		NVIDIA User Experience Driver Component
NVCPL.DLL		8.17.14.9613		NVIDIA User Experience Driver Component
nvCplUIR.dll		8.1.940.0		NVIDIA Control Panel
nvCplUI.exe		8.1.940.0		NVIDIA Control Panel
nvWSSR.dll		30.0.14.9613		NVIDIA Workstation Server
nvWSS.dll		30.0.14.9613		NVIDIA Workstation Server
nvViTvSR.dll		30.0.14.9613		NVIDIA Video Server
nvViTvS.dll		30.0.14.9613		NVIDIA Video Server
nvLicensingS.dll		6.14.14.9613		NVIDIA Licensing Server
nvDevToolSR.dll		30.0.14.9613		NVIDIA Licensing Server
nvDevToolS.dll		30.0.14.9613		NVIDIA 3D Settings Server
nvDispSR.dll		30.0.14.9613		NVIDIA Display Server
nvDispS.dll		30.0.14.9613		NVIDIA Display Server
PhysX		09.21.0713		NVIDIA PhysX
NVCUDA64.DLL		30.0.14.9613		NVIDIA CUDA 11.5.56 driver
nvGameSR.dll		30.0.14.9613		NVIDIA 3D Settings Server
nvGameS.dll		30.0.14.9613		NVIDIA 3D Settings Server