Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1196 - 1
# This is the configuration file for the Berkeley DB environment
2
# used by your Subversion repository.
3
# You must run 'svnadmin recover' whenever you modify this file,
4
# for your changes to take effect.
5
 
6
### Lock subsystem
7
#
8
# Make sure you read the documentation at:
9
#
10
#   http://www.oracle.com/technology/documentation/berkeley-db/db/ref/lock/max.html
11
#
12
# before tweaking these values.
13
set_lk_max_locks   2000
14
set_lk_max_lockers 2000
15
set_lk_max_objects 2000
16
 
17
### Log file subsystem
18
#
19
# Make sure you read the documentation at:
20
#
21
#   http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/env_set_lg_bsize.html
22
#   http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/env_set_lg_max.html
23
#   http://www.oracle.com/technology/documentation/berkeley-db/db/ref/log/limits.html
24
#
25
# Increase the size of the in-memory log buffer from the default
26
# of 32 Kbytes to 256 Kbytes.  Decrease the log file size from
27
# 10 Mbytes to 1 Mbyte.  This will help reduce the amount of disk
28
# space required for hot backups.  The size of the log file must be
29
# at least four times the size of the in-memory log buffer.
30
#
31
# Note: Decreasing the in-memory buffer size below 256 Kbytes
32
# will hurt commit performance. For details, see this post from
33
# Daniel Berlin <dan@dberlin.org>:
34
#
35
# http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgId=161960
36
set_lg_bsize     262144
37
set_lg_max      1048576
38
#
39
# If you see "log region out of memory" errors, bump lg_regionmax.
40
# See http://www.oracle.com/technology/documentation/berkeley-db/db/ref/log/config.html
41
# and http://svn.haxx.se/users/archive-2004-10/1001.shtml for more.
42
set_lg_regionmax 131072
43
#
44
# The default cache size in BDB is only 256k. As explained in
45
# http://svn.haxx.se/dev/archive-2004-12/0369.shtml, this is too
46
# small for most applications. Bump this number if "db_stat -m"
47
# shows too many cache misses.
48
set_cachesize    0 1048576 1
49
#
50
# Disable fsync of log files on transaction commit. Read the
51
# documentation about DB_TXN_NOSYNC at:
52
#
53
#   http://www.oracle.com/technology/documentation/berkeley-db/db/ref/log/config.html
54
#
55
# [requires Berkeley DB 4.0]
56
# set_flags DB_TXN_NOSYNC
57
#
58
# Enable automatic removal of unused transaction log files.
59
# Read the documentation about DB_LOG_AUTOREMOVE at:
60
#
61
#   http://www.oracle.com/technology/documentation/berkeley-db/db/ref/log/config.html
62
#
63
# [requires Berkeley DB 4.2]
64
set_flags DB_LOG_AUTOREMOVE