diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-02-20 22:28:09 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-02-20 22:28:09 +0000 |
commit | 644452a62fde5fec66dab56c4f47204f42b57bac (patch) | |
tree | edd45cffb77bd2bf1396303852826e8fab1bacac /debian/tor.default | |
parent | 384a8ab777999c984509ad57d9d8ae859a0ed5c9 (diff) | |
download | tor-644452a62fde5fec66dab56c4f47204f42b57bac.tar.gz tor-644452a62fde5fec66dab56c4f47204f42b57bac.zip |
Change the default for MAX_FILEDESCRIPTORS in our init script to depend on the
number of system-wide available file descriptors: /proc/sys/fs/file-max is
bigger than 100k, set ulimit -n to 32k, if it's smaller than 20k set it to
1024. Big servers at the moment regularly use more than 10k FDs, so our old
default of 8k no longer is sufficient. On the other hand we don't want lower
end systems to run out of FDs on Tor's account.
svn:r13625
Diffstat (limited to 'debian/tor.default')
-rw-r--r-- | debian/tor.default | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/debian/tor.default b/debian/tor.default index 237e5bc520..1ae1e15861 100644 --- a/debian/tor.default +++ b/debian/tor.default @@ -9,10 +9,15 @@ RUN_DAEMON="yes" # # Servers sometimes may need more than the default 1024 file descriptors -# if they are very busy and have many clients connected to them. +# if they are very busy and have many clients connected to them. The top +# servers as of early 2008 regularly have more than 10000 connected +# clients. # (ulimit -n) # -MAX_FILEDESCRIPTORS=8192 +# (the default varies as it depends on the number of available system-wide file +# descriptors. See the init script in /etc/init.d/tor for details.) +# +# MAX_FILEDESCRIPTORS= # # If tor is seriously hogging your CPU, taking away too much cycles from |