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

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:
IRQ:			Not used
Bus:			PCI Express x8 Gen3
Device Id:		10DE 13C0 85181043
Part Number:		G401 0000


nvui.dll		NVIDIA User Experience Driver Component
nvxdplcy.dll		NVIDIA User Experience Driver Component
nvxdbat.dll		NVIDIA User Experience Driver Component
nvxdapix.dll		NVIDIA User Experience Driver Component
NVCPL.DLL		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		NVIDIA Workstation Server
nvWSS.dll		NVIDIA Workstation Server
nvViTvSR.dll		NVIDIA Video Server
nvViTvS.dll		NVIDIA Video Server
nvLicensingS.dll		NVIDIA Licensing Server
nvDevToolSR.dll		NVIDIA Licensing Server
nvDevToolS.dll		NVIDIA 3D Settings Server
nvDispSR.dll		NVIDIA Display Server
nvDispS.dll		NVIDIA Display Server
PhysX		09.21.0713		NVIDIA PhysX
NVCUDA64.DLL		NVIDIA CUDA 11.5.56 driver
nvGameSR.dll		NVIDIA 3D Settings Server
nvGameS.dll		NVIDIA 3D Settings Server