Trac: Resolution: fixed toN/A Status: closed to reopened Description: If you run a fast relay, you will end up using more than the default
1024 file descriptors. Currently we point people who run relays to
https://www.torproject.org/docs/tor-doc-relay.html.en and hope they
read through to item #14 (closed).
Debian, on the other hand, has a clause in the init script:
https://git.torproject.org/checkout/tor/master/debian/tor.init
that sets MAX_FILEDESCRIPTORS based on how many file descriptors are
available on the machine, before it launches the Tor process.
[Automatically added by flyspray2trac: Operating System: All]
Debian, on the other hand, has a clause in the init script:
https://git.torproject.org/checkout/tor/master/debian/tor.init
that sets MAX_FILEDESCRIPTORS based on how many file descriptors are
available on the machine, before it launches the Tor process.
[Automatically added by flyspray2trac: Operating System: All]
Not well enough, I think. 4096 is better than 1024, but still not enough for fast relays, which sometimes use 10000 or more file descriptors. So I think it remains the case that you can't run a fast relay with Fedora's RPM.
Trac: Priority: minor to normal Description: If you run a fast relay, you will end up using more than the default
1024 file descriptors. Currently we point people who run relays to
https://www.torproject.org/docs/tor-doc-relay.html.en and hope they
read through to item #14 (closed).
Debian, on the other hand, has a clause in the init script:
https://git.torproject.org/checkout/tor/master/debian/tor.init
that sets MAX_FILEDESCRIPTORS based on how many file descriptors are
available on the machine, before it launches the Tor process.
[Automatically added by flyspray2trac: Operating System: All]
Currently the startup will for 0.2.3.22rc sets ulimit depending on /proc/sys/fs/file-max. Value of 8192 or higher is used if /proc/sys/fs/file-max is at least 10000:
# Raise ulimit based on number of file descriptors available (thanks, Debian)if [ -r /proc/sys/fs/file-max ]; then system_max=`cat /proc/sys/fs/file-max` if [ "$system_max" -gt "80000" ] ; then MAX_FILEDESCRIPTORS=32768 elif [ "$system_max" -gt "40000" ] ; then MAX_FILEDESCRIPTORS=16384 elif [ "$system_max" -gt "10000" ] ; then MAX_FILEDESCRIPTORS=8192 else MAX_FILEDESCRIPTORS=1024 cat << EOF
This seems to be good enough, but I have no fast relay I could test it on.