[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Memory usage on relays
- To: or-talk@xxxxxxxx
- Subject: Memory usage on relays
- From: John Brooks <special@xxxxxxxxxxxxxxxx>
- Date: Sun, 17 Jan 2010 18:41:03 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: or-talk-outgoing@xxxxxxxx
- Delivered-to: or-talk@xxxxxxxx
- Delivery-date: Sun, 17 Jan 2010 20:41:14 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=wbV7Rce4/0HuXtjeOBI5arP6mHrdz/4zIKy8Nweco9k=; b=DUR7sulKCUoSv+Z1qmsoz/u/3LiEejc95Kimdtm0JsVkLV23oywvLN45gRB1scP7in PongvE+spvzz6t0C7xM4WAFb45iPBERBrbT/wp7sNWaF6Qp0JKjWZfqQyP0B922RGlli kTWmgTHfSjQ+vX4sYK1L2qtwd3xxjvlAgubOA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=tiKdpgliqKczkWNZ4VBok4u+rjw4OuLKkPBpK2vDUpDwGncJZ57mH87cHOsl5pYB8C mwXjsOogIbXcWsv0ivZRcI6MzarhmrDX0rzpotquvtDEXjwBpwSpjb/30aaNgQoCva8B UMeFhuy6WoN2EQDV9p1rbryXGDBsK2RLcycHI=
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-talk@xxxxxxxxxxxxx
This topic has been addressed before, but then the answer was often to
use/wait for 0.2.1.x or switch to another allocator. I'm thinking
there must be a real solution to this somewhere.
I run a reasonably fast (500KB/s) node with Guard+Fast+Stable, so it's
a popular destination. It runs at bandwidth capacity at all times. The
only problem with this is the massive memory usage that results; at
the moment, Tor has 748MB res usage, with almost 7 days of uptime.
Generally it escalates at a rate of 100-200MB per day after a restart,
and tops out around this number. My understanding is that most of that
memory usage is related to the open connections; socket buffers, SSL
buffers, etc. At the moment (according to /proc/x/fd), Tor has 5,364
open connections.
Short of limiting available FDs, which might harm the performance of
the node, what can I do to lower memory usage? It's currently running
the Debian testing build, 0.2.1.20-2, and openssl 0.9.8g-15+lenny6.
I'm not against doing custom builds of Tor or OpenSSL if it will help.
I did have similar problems on my previous machine running Gentoo,
where I had tried different the different allocator configurations,
and that had little or no effect.
Somebody else has to have come across this problem and some sort of
solution; I can't have Tor taking up half the available memory on my
system. Suggestions would be very appreciated.
Thanks,
- John Brooks
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxxx with
unsubscribe or-talk in the body. http://archives.seul.org/or/talk/