How big a VPS to run a TOR relay?


3 years ago
I'm thinking of running a TOR relay for general make-the-world-a-better-place purposes.

I have a high-quality VPS provider who explicitly allows TOR relays (but not exit nodes). My questions are:

(a) How big a VPS do I need in terms of CPU and RAM? I'm assuming disk is minimal. I realize CPU is somewhat abstracted. The provider uses good Xeon procs, but I'm wondering if TOR is something that's going to chew 100% CPU ad nauseum. And how much RAM - is 512MB enough, assuming I'm not running a GUI and the box is dedicated to TOR?

(b) I'm given a fixed allotment of bandwidth per month (say, 2TB). I don't mind using 99% of that for TOR, but how can I say "don't use more than 2TB per month"? Or would I have to control that through the connection speed (kind of backwards computing it)?

(c) I can get either OvZ or KVM - it sounds like KVM is better for these purposes because you have more control over the kernel. I'll likely run Debian.

Thanks!

3 years ago
My Tor Relay uses 50-60% of a single Atom core. Apache, hosted on the same server, works a bit slower, but still tolerably.
512MB Ram would be far enough. Here are some good memory optimisation tips: http://lowendbox.com/blog/yes-you-can-r ... ink-1-vps/

OpenVZ or KVM - doesn't really matter. If there are many VPS's on the host (and they are busy) - KVM will work a bit faster, but if there is some free CPU - OpenVZ will share it between Guest systems, but KVM will not give any extra.

Traffic could be metered by: ntop, mrtg, sar (from the sysstat package), collectl.

3 years ago

If there are many VPS's on the host (and they are busy) - KVM will work a bit faster, but if there is some free CPU - OpenVZ will share it between Guest systems, but KVM will not give any extra.
"TOR Hacker"

WTF?!! :shock: :geek:

:mrgreen: :lol: :lol: OMG

3 years ago
To limit the bandwidth per month you can use these options:


AccountingStart day 08:00
AccountingMax 30 GB


This will let 60 GB (30 GB in, 30 GB out) of traffic pass through every day, If the bandwidth gets all used up it will hibernate until 8 am.
If Tor uses too much CPU you can limit the speed or the advertised speed. Lowering the advertised speed will result in less clients trying to connect to it.

Reply

You are not logged in. Login or register to reply on this thread.