- The former defaults come from nearly a decade ago, things have
changed a bit since then... Even BDB's own default cache size is
much larger (8MB) now than what we've been setting.
- Using 64MB cache improves cache hit rate (and performance) massively.
Last-gasp default to roughly BDB's own current defaults, higher
settings in the default macro setup.
(cherry picked from commit
6b6310b152475793a1272d8829a9df89a6edaee6)
*cfg = staticcfg; /* structure assignment */
/* Throw in some defaults if configuration didn't set any */
if (!cfg->db_mmapsize) cfg->db_mmapsize = 16 * 1024 * 1024;
- if (!cfg->db_cachesize) cfg->db_cachesize = 1 * 1024 * 1024;
+ if (!cfg->db_cachesize) cfg->db_cachesize = 8 * 1024 * 1024;
}
/* FIX: *(rdbOptions->arg) reachable */
#
# Misc BDB tuning options
-%__dbi_other mp_mmapsize=16Mb mp_size=1Mb
+%__dbi_other mp_mmapsize=128Mb mp_size=64Mb
%_dbi_config %{?__dbi_other}