[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-relays] CPU usage



On Mon, 07 Jul 2014 21:31:02 +0100
kingqueen <kingqueen@xxxxxxx> wrote:

> Hi, I'm running a Tor relay on a low cost dedicated server.
> 
> The tor relay is named kingqueen and it's running on an Intel Atom N2700 dual core hyperthreaded CPU with 2gb of memory, in a data centre with a symmetric 100mbps connection.
> 
> I have found as time goes on and usage of my relay increases (about 3 weeks now) that the Tor process is increasingly using more of the CPU. TOP shows Tor using over 100% of CPU and the load average is 2 or more.
> 
> I use the dedi for other, less intensive things (OpenVPN, seedbox, also Owncloud though this falls over). I know that this is sub-optimal and ideally the dedi should be for the relay alone.
> 
> I was wondering if the CPU usage is standard. I guess it could be, given it has decryption work to be done? Is it high? Is there anything I can do to lower it, other than rate limiting, which I don't want to do?

Hello,

Yes this is normal.

Set "NumCPUs 2" in your torrc to make it try utilizing the second core too
(this won't help much, but at least somewhat).

Also you should renice tor to e.g. +10 so that it doesn't interfere with your
non-Tor tasks. In Debian-based distros this should be configurable via
"/etc/default/tor" config file, by setting NICE="--nicelevel 10" there.

-- 
With respect,
Roman

Attachment: signature.asc
Description: PGP signature

_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays