diff options
Diffstat (limited to 'db/DB_CONFIG')
-rw-r--r-- | db/DB_CONFIG | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/db/DB_CONFIG b/db/DB_CONFIG new file mode 100644 index 0000000..f76f07c --- /dev/null +++ b/db/DB_CONFIG @@ -0,0 +1,58 @@ +# This is the configuration file for the Berkeley DB environment +# used by your Subversion repository. +# You must run 'svnadmin recover' whenever you modify this file, +# for your changes to take effect. + +### Lock subsystem +# +# Make sure you read the documentation at: +# +# http://www.sleepycat.com/docs/ref/lock/max.html +# +# before tweaking these values. +set_lk_max_locks 2000 +set_lk_max_lockers 2000 +set_lk_max_objects 2000 + +### Log file subsystem +# +# Make sure you read the documentation at: +# +# http://www.sleepycat.com/docs/api_c/env_set_lg_bsize.html +# http://www.sleepycat.com/docs/api_c/env_set_lg_max.html +# http://www.sleepycat.com/docs/ref/log/limits.html +# +# Increase the size of the in-memory log buffer from the default +# of 32 Kbytes to 256 Kbytes. Decrease the log file size from +# 10 Mbytes to 1 Mbyte. This will help reduce the amount of disk +# space required for hot backups. The size of the log file must be +# at least four times the size of the in-memory log buffer. +# +# Note: Decreasing the in-memory buffer size below 256 Kbytes +# will hurt commit performance. For details, see this post from +# Daniel Berlin <dan@dberlin.org>: +# +# http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgId=161960 +set_lg_bsize 262144 +set_lg_max 1048576 +# +# If you see "log region out of memory" errors, bump lg_regionmax. +# See http://www.sleepycat.com/docs/ref/log/config.html and +# http://svn.haxx.se/users/archive-2004-10/1001.shtml for more. +set_lg_regionmax 131072 +# +# Disable fsync of log files on transaction commit. Read the +# documentation about DB_TXN_NOSYNC at: +# +# http://www.sleepycat.com/docs/api_c/env_set_flags.html +# +# [requires Berkeley DB 4.0] +# set_flags DB_TXN_NOSYNC +# +# Enable automatic removal of unused transaction log files. +# Read the documentation about DB_LOG_AUTOREMOVE at: +# +# http://www.sleepycat.com/docs/api_c/env_set_flags.html +# +# [requires Berkeley DB 4.2] +set_flags DB_LOG_AUTOREMOVE |