# $OpenLDAP: pkg/ldap/servers/slapd/DB_CONFIG,v 1.1.2.4 2007/12/18 11:51:46 ghenry Exp $ # Example DB_CONFIG file for use with slapd(8) BDB/HDB databases. # # See the Oracle Berkeley DB documentation # # for detail description of DB_CONFIG syntax and semantics. # # Hints can also be found in the OpenLDAP Software FAQ # # in particular: # # Note: most DB_CONFIG settings will take effect only upon rebuilding # the DB environment. # Set in-memory database cache # one 64 Mb cache set_cachesize 0 67108864 1 # Set directory to use for transaction logs (relative to chroot): #set_lg_dir /var/lib/ldap/dblogs # Data Directory #set_data_dir db # Transaction Log settings set_lg_regionmax 262144 # Set in-memory transaction log cache (1MB) set_lg_bsize 1048576 # Set max transaction log file size, must be >= 4*lg_bsize (10MB) set_lg_max 10485760 # Note: special DB_CONFIG flags are no longer needed for "quick" # slapadd(8) or slapindex(8) access (see their -q option). # autoremove unused transaction logs from log directory (see set_lg_dir) set_flags DB_LOG_AUTOREMOVE # man slapd-hdb for 'dbnosync' description #set_flags DB_TXN_NOSYNC