Bug 4244 - limit max stat cache size by default
Summary: limit max stat cache size by default
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.23d
Hardware: Other Linux
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-21 05:09 UTC by Björn Jacke
Modified: 2006-11-21 07:42 UTC (History)
0 users

See Also:


Attachments
limit patch (753 bytes, patch)
2006-11-21 05:10 UTC, Björn Jacke
no flags Details
according documentation update patch (860 bytes, patch)
2006-11-21 05:17 UTC, Björn Jacke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2006-11-21 05:09:16 UTC
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
Comment 1 Björn Jacke 2006-11-21 05:10:16 UTC
Created attachment 2230 [details]
limit patch
Comment 2 Björn Jacke 2006-11-21 05:17:18 UTC
Created attachment 2231 [details]
according documentation update patch
Comment 3 Volker Lendecke 2006-11-21 05:55:51 UTC
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....

Volker
Comment 4 Björn Jacke 2006-11-21 06:12:07 UTC
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.
Comment 5 Volker Lendecke 2006-11-21 07:42:50 UTC
Fixed with r19820.

Thanks,

Volker