# WARNING: Before tuning the following parameters, _PLEASE READ_ # /usr/share/doc/slapd/README.DB_CONFIG.gz # Set the database in memory cache size. # # set_cachesize # Sets the database in memory cache size. # Database entries and indexes will be stored in this cache to # avoid disk access during database read and write operations. # Tuning this value can greatly effect your database performance. # The parameters are: # : The number of gigabytes of memory to allocate to the cache. # : The number of bytes of memory to allocate to the cache. # : The number of cache segments to use. If this value is set to # 0 or 1 then Berkeley DB will try to allocate one contiguous section # of memory for the cache. If this value is greater than 1, the cache # will be split into that number of segments. #set_cachesize 0 52428800 0 # For the Debian package we use 2MB as default but be sure to update this # value if you have plenty of RAM set_cachesize 0 41943040 0 # Sets the database startup flags. # # set_flags # There are various flag options that may be set. The DB_TXN_NOSYNC flag # tells the database not to immediately flush transaction buffers to disk. # Setting this flag can help speed up database access during periods of # database write activity BUT at expense of data safety. Enable it only # to load data with slapadd, while slapd is not running. #set_flags DB_TXN_NOSYNC # Set the maximum in memory cache in for database file name caching. # # set_lg_regionmax # This value should be increased as the number of database files increases # (tables and indexes). #set_lg_regionmax 1048576 # Set the maximum size of log files in . # # set_lg_max # Logs will be rotated when amount of data have been written to # one log file. This value should be at least four times the size of # set_lg_bsize. #set_lg_max 10485760 # Set the in memory cache for log information. # # set_lg_bsize # When amount of logging information have been written to this # cache it will be flushed to disk. #set_lg_bsize 2097152 # For the Debian package we use 512kByte which should suffice for typical # directory usage (read often, write seldom) set_lg_bsize 524288 # Set the log file directory to . # # set_lg_dir /usr/local/var/openldap-logs # Log files should preferably be on a different disk than the # database files. This both improves reliability (for disastrous # recovery) and speed of the database. #set_lg_dir # Sven Hartge reported that he had to set this value incredibly high # to get slapd running at all. See http://bugs.debian.org/303057 # for more information. # Number of objects that can be locked at the same time. set_lk_max_objects 10000 # Number of locks (both requested and granted) set_lk_max_locks 10000 # Number of lockers set_lk_max_lockers 10000 # no logs ldap set_flags DB_LOG_AUTOREMOVE