[tor-bugs] #1131 [Tor bundles/installation]: fedora rpm doesn't set ulimit -n, so you can't run a fast relay

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Feb 15 22:44:58 UTC 2011


#1131: fedora rpm doesn't set ulimit -n, so you can't run a fast relay
---------------------------------------------+------------------------------
        Reporter:  arma                      |        Owner:  erinn   
            Type:  defect                    |       Status:  reopened
        Priority:  normal                    |    Milestone:          
       Component:  Tor bundles/installation  |      Version:  0.2.1.19
      Resolution:                            |     Keywords:          
          Parent:                            |       Points:          
Actualpointsdone:                            |   Pointsdone:          
    Actualpoints:                            |  
---------------------------------------------+------------------------------
Changes (by arma):

  * priority:  minor => normal


Old 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.
>
> 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]

New 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.

 Debian, on the other hand, has a clause in the init script:
 https://gitweb.torproject.org/debian/tor.git/blob_plain/HEAD:/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]

--

Comment:

 Replying to [comment:2 katmagic]:
 > Enrico fixed this.

 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.

 Here's a link to the Red Hat init script that our RPM uses:
 https://git.torproject.org/tor/contrib/tor.sh.in
 which already has this feature sorted out.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1131#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list