summaryrefslogtreecommitdiffstats
path: root/db/DB_CONFIG
blob: f76f07cf5f0f064572d4e9cbc85f3b84a9b03c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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