diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-04-21 08:00:44 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-04-22 18:37:18 +1000 |
commit | a50f6aad85b5fcbefafa52869651eb503b719cc6 (patch) | |
tree | c945fd64b503395a0b9d24135ee76e52d4d1dfa6 /source4/setup/DB_CONFIG | |
parent | d950e9e6f31c8657aee951728ef5d63ca572b01c (diff) | |
download | samba-a50f6aad85b5fcbefafa52869651eb503b719cc6.tar.gz samba-a50f6aad85b5fcbefafa52869651eb503b719cc6.tar.bz2 samba-a50f6aad85b5fcbefafa52869651eb503b719cc6.zip |
s4:provision Use more reasonable values for DB_CONFIG
With the OpenLDAP backend, the old DB_CONFIG caused OpenLDAP to abort
on startup, and was very inefficient. This new one, kindly supplied
by Matthew Backes <mbackes@symas.com> uses a more reasonable set of
buffer sizes.
Andrew Bartlett
Diffstat (limited to 'source4/setup/DB_CONFIG')
-rw-r--r-- | source4/setup/DB_CONFIG | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/source4/setup/DB_CONFIG b/source4/setup/DB_CONFIG index 74bb09d800..f94bf0868b 100644 --- a/source4/setup/DB_CONFIG +++ b/source4/setup/DB_CONFIG @@ -1,6 +1,14 @@ -set_cachesize 0 524288 0 -set_lg_regionmax 104857 -set_lg_max 1048576 -set_lg_bsize 209715 +# set 32MiB, single-segment cache +set_cachesize 0 33554432 1 + +# set transaction log autoremoval; disable if you use them for backups +set_flags DB_LOG_AUTOREMOVE + +# these should be left at default for most installs +set_lg_max 10485760 +set_lg_bsize 2097152 + set_lg_dir ${LDAPDBDIR}/bdb-logs -set_tmp_dir ${LDAPDBDIR}/tmp + +# tmp_dir stuff is not used by OpenLDAP +#set_tmp_dir ${LDAPDBDIR}/tmp |