memcache: Increase size of default memcache to 512k
authorChristof Schmitt <cs@samba.org>
Fri, 5 Apr 2019 22:43:21 +0000 (15:43 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Apr 2019 11:36:22 +0000 (11:36 +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>
(cherry picked from commit 9ff5c0bab76c5d3d7bea1fcb79861d0c9a3b9839)

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 f31ef2319ac67b9b5d09cc90a0592ae07742a9e5..e4d27cae8ea4ef817f6c3d50f7b368af773abbab 100644 (file)
@@ -2930,7 +2930,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 29d9d59390b46241f474449fdc117b0eaa15758e..c8a07c954f9c09310b6941ea1ca1269e9a6fedf7 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 */