[tor-bugs] #22255 [Core Tor/Tor]: Frequent OOM kills of tor process

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 1 18:48:07 UTC 2018


#22255: Frequent OOM kills of tor process
--------------------------+------------------------------------
 Reporter:  DeS           |          Owner:  (none)
     Type:  defect        |         Status:  closed
 Priority:  High          |      Milestone:  Tor: 0.3.0.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Major         |     Resolution:  fixed
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by starlight):

 please allow me to jump in here with some advice:

 0.3.2.8-rc fixed the problem for you most likely due to #24666, which
 dramatically reduces memory consumption w/r/t DESTROY cells

 however I see above an assumption that on a 4G machine
 MaxMemInQueues=1650MB is reasonable -- without a doubt this value is much
 too high

 empirical observation indicates the daemon consumes 2x MaxMemInQueues once
 the actual maximum has been obtained (most likely due to sniper attacks)

 therefore to truly harden tor daemon against OOM kills on a 4G machine,
 one should set MaxMemInQueues=1024MB

 for further detail and additional tuning tips see #24737

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22255#comment:78>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list