as discussed on samba-technical mailining list: smbd grows infinitely because it will fill the stat cache more and more. This is a problem when millions of files are being accessed. This patch sets the default limit to 100k
Created attachment 2230 [details]
Created attachment 2231 [details]
according documentation update patch
Björn, a good way to convince Jeremy is to run a netbench test against a Samba with and without this setting. :-)
You got me convinced btw....
Jeremy: do you really need so much work to be convinced? It's obvious that a system which tends to swap out smbd because it grew too big isn't well performing anymore :-). I would also not care if you set the max cache size to 1000 or 2000 but it really needs a default limit which less that infinit.
Fixed with r19820.