init.d script for multi instance TOR servers

Mike Perry mikeperry at fscked.org
Sun Sep 5 23:25:44 UTC 2010


Thus spake Teun Nijssen (teun.nijssen at uvt.nl):

> Currently the TORy1 to TORy3 instances are slowly speeding up. The machine
> runs Linux version 2.6.26-2-amd64 (Debian 2.6.26-24lenny1), currently without
> any of the high performance tuning that was discussed lately. Even iptables
> does its usual work.

Please keep us posted on your total capacity (using a network monitor
like munin, mrtg, or the console-based nload). I find that without killing
irqbalance and manually setting the smp_affinity, I can't push more
than 400Mbit without a CPU hitting 100% utilization (run top then hit
'1' - look at the idle column). Moritz has found the same. 

Though maybe you got lucky and your ethernet card + kernel version
combo are already properly balancing IRQs out of the box. Do a 'watch
"cat /proc/interrupts | grep eth"' to keep an eye on your ethernet
interrupt distribution to see.

Also keep your eyes on 'dmesg | grep conntrack' messages. Once you
start to get above 65k connections ('netstat -na | wc'), you should
start getting those too, and your individual tcp connection throughput
will begin to suffer.

The options we've been discussing aren't needed until you actually
start pushing more than a few hundred Mbit, but I would be very
surprised if you were able to do a full gbit without them.

-- 
Mike Perry
Mad Computer Scientist
fscked.org evil labs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-relays/attachments/20100905/7486e6f5/attachment.pgp>


More information about the tor-relays mailing list