[tor-relays] How to limit number of sockets used?

krishna e bera keb at cyblings.on.ca
Wed Apr 10 11:24:07 UTC 2013


On Wed, 10 Apr 2013 03:12:14 -0400
Roger Dingledine <arma at mit.edu> wrote:

> On Wed, Apr 10, 2013 at 09:09:44AM +0200, Dennis Ljungmark wrote:
> > You should be able to use normal ulimit style settings,   Limiting open
> > files count (a socket is an open file).
> 
> Yes, you can do this, but it will degrade your relay (and hurt the
> network) because it will unpredictably hang up on requests.

There is a note in the manual regarding socket use:
"The DirPort option should also not be used if TCP buffers are scarce.
The cached directory requests consume additional sockets which
exacerbates the problem."

If that doesnt work, it looks like you are left with reducing sockets
by setting a lower BandwidthRate, value thereof to be figured out by
trial and error.


More information about the tor-relays mailing list