Skip to content
  • Nick Mathewson's avatar
    Implement a real OOM-killer for too-long circuit queues. · 2e1fe1fc
    Nick Mathewson authored
    This implements "algorithm 1" from my discussion of bug #9072: on OOM,
    find the circuits with the longest queues, and kill them.  It's also a
    fix for #9063 -- without the side-effects of bug #9072.
    
    The memory bounds aren't perfect here, and you need to be sure to
    allow some slack for the rest of Tor's usage.
    
    This isn't a perfect fix; the rest of the solutions I describe on
    codeable.
    2e1fe1fc