mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
644452a62f
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
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# Defaults for tor initscript
|
|
# sourced by /etc/init.d/tor
|
|
# installed at /etc/default/tor by the maintainer scripts
|
|
|
|
#
|
|
# This is a bash shell fragment
|
|
#
|
|
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. The top
|
|
# servers as of early 2008 regularly have more than 10000 connected
|
|
# clients.
|
|
# (ulimit -n)
|
|
#
|
|
# (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
|
|
# other system resources, then you can renice tor. See nice(1) for a
|
|
# bit more information. Another way to limit the CPU usage of an Onion
|
|
# Router is to set a lower BandwidthRate, as CPU usage is mostly a function
|
|
# of the amount of traffic flowing through your node. Consult the torrc(5)
|
|
# manual page for more information on setting BandwidthRate.
|
|
#
|
|
# NICE="--nicelevel 5"
|
|
|
|
# Additional arguments to pass on tor's command line.
|
|
#
|
|
# ARGS=""
|
|
|
|
#
|
|
# Uncomment this if you want to get coredumps
|
|
#
|
|
ulimit -c unlimited
|