summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2019-04-05 15:43:21 -0700
committerKarolin Seeger <kseeger@samba.org>2019-04-12 07:57:11 +0000
commite09262b7a0feca27aff2a64c5b36cefd13c676a4 (patch)
tree81d20b184490b382018b67c4a1243b6f2483565f
parenta54038bf5f87189ebc46ae3da1335205efd03669 (diff)
downloadsamba-e09262b7a0feca27aff2a64c5b36cefd13c676a4.tar.gz
memcache: Increase size of default memcache to 512k
With the fixed accounting of talloc objects, the default cache size needs to increase. The exact increase required depends on the workloads, going form 256k to 512k seems like a reasonable guess. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13865 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 9ff5c0bab76c5d3d7bea1fcb79861d0c9a3b9839)
-rw-r--r--docs-xml/smbdotconf/filename/maxstatcachesize.xml2
-rw-r--r--lib/param/loadparm.c2
-rw-r--r--source3/param/loadparm.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/docs-xml/smbdotconf/filename/maxstatcachesize.xml b/docs-xml/smbdotconf/filename/maxstatcachesize.xml
index 63f91e70fd2..866d74d6ffd 100644
--- a/docs-xml/smbdotconf/filename/maxstatcachesize.xml
+++ b/docs-xml/smbdotconf/filename/maxstatcachesize.xml
@@ -13,6 +13,6 @@
</para>
</description>
<related>stat cache</related>
-<value type="default">256</value>
+<value type="default">512</value>
<value type="example">100</value>
</samba:parameter>
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 1debcfff127..15b1440694c 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -2929,7 +2929,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
lpcfg_do_global_parameter(lp_ctx, "durable handles", "yes");
- lpcfg_do_global_parameter(lp_ctx, "max stat cache size", "256");
+ lpcfg_do_global_parameter(lp_ctx, "max stat cache size", "512");
lpcfg_do_global_parameter(lp_ctx, "ldap passwd sync", "no");
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 322934c55f0..fb95ccd823d 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -696,7 +696,7 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals)
Globals.nt_status_support = true; /* Use NT status by default. */
Globals.smbd_profiling_level = 0;
Globals.stat_cache = true; /* use stat cache by default */
- Globals.max_stat_cache_size = 256; /* 256k by default */
+ Globals.max_stat_cache_size = 512; /* 512k by default */
Globals.restrict_anonymous = 0;
Globals.client_lanman_auth = false; /* Do NOT use the LanMan hash if it is available */
Globals.client_plaintext_auth = false; /* Do NOT use a plaintext password even if is requested by the server */