memcache: Increase size of default memcache to 512k
authorChristof Schmitt <cs@samba.org>
Fri, 5 Apr 2019 22:43:21 +0000 (15:43 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 6 Apr 2019 05:12:21 +0000 (05:12 +0000)
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>
docs-xml/smbdotconf/filename/maxstatcachesize.xml
lib/param/loadparm.c
source3/param/loadparm.c

index 63f91e70fd275c73280b35d01b03f0e0cdc63638..866d74d6ffd1f565c2ccab692fb00266ed9de22e 100644 (file)
@@ -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>
index 7ef2cc7d3f628239cb4e4e312f68fe12e72cb9a4..ebbccc22b71b5e863f9dee02e4c9d8eea862212f 100644 (file)
@@ -2945,7 +2945,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");
 
index 6aa84018111ae51e0505d706eee27114fd2752b7..703460e4c474cf8463330bdf301504532f7edf3e 100644 (file)
@@ -698,7 +698,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 */