[tor-talk] High RAM usage

Roman Mamedov rm at romanrm.net
Thu Sep 5 13:18:01 UTC 2013


Hello,

It used to be that one could easily run a Tor relay in 512MB of RAM with lots
of headroom remaining. However, here is what I am now seeing on some nodes:
-----

KiB Mem:    508936 total,   503728 used,     5208 free,       48 buffers
KiB Swap:  1048572 total,   278072 used,   770500 free,     3680 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND           
14891 debian-t  20   0  748m 339m 2040 R  50.9 68.2   1159:23 tor               
17994 root      20   0 71172  840  736 S   0.0  0.2   0:00.12 sshd              
18012 root      20   0 23168  888  608 R   0.0  0.2   0:00.01 top               

-----

# free -m
             total       used       free     shared    buffers     cached
Mem:           497        491          5          0          0          4
-/+ buffers/cache:        487          9
Swap:         1023        265        758

-----

These readings also seem a bit bizzare to me, in "top" tor uses only 339MB of
resident memoory, and there are no other high-RAM-usage programs active (the
bit from 'top' that I pasted is sorted by RAM usage). But the overall RAM usage
is 487MB.

Can something be done about this without reducing the throughput of the relay?
At the moment I would just kill Tor and start it back, it will take quite a while
to climb back to those levels of RAM usage.

Running Tor 0.2.4.16-rc on Debian Wheezy.

Sep 05 06:25:03.000 [notice] Tor 0.2.4.16-rc (git-dcf6b6d7dda9ffbd) opening new log file.
Sep 05 10:46:51.000 [notice] Heartbeat: Tor's uptime is 18:00 hours, with 23108 circuits open. I've sent 227.68 GB and received 227.17 GB.
Sep 05 10:46:51.000 [notice] Average packaged cell fullness: 99.042%
Sep 05 10:46:51.000 [notice] TLS write overhead: 9%
Sep 05 12:44:40.000 [warn] Your computer is too slow to handle this many circuit creation requests! Please consider using the MaxAdvertisedBandwidth config option or choosing a more restricted exit policy.
Sep 05 13:01:14.000 [warn] Your computer is too slow to handle this many circuit creation requests! Please consider using the MaxAdvertisedBandwidth config option or choosing a more restricted exit policy. [7021 similar message(s) suppressed in last 60 seconds]

-- 
With respect,
Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-talk/attachments/20130905/169c08bd/attachment.sig>


More information about the tor-talk mailing list