]> git.ipfire.org Git - thirdparty/tor.git/commit
Implement a real OOM-killer for too-long circuit queues.
authorNick Mathewson <nickm@torproject.org>
Sun, 16 Jun 2013 13:55:44 +0000 (09:55 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 18 Jun 2013 14:15:16 +0000 (10:15 -0400)
commit2e1fe1fcf93c2a77805048bea5c535ca4456d583
tree6a396bc09f558b9611282de2d54a7f7824696095
parent2a95f3171681ee53c97ccba9d80f4454b462aaa7
Implement a real OOM-killer for too-long circuit queues.

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.
changes/bug9063_redux [new file with mode: 0644]
doc/tor.1.txt
src/common/mempool.h
src/or/circuitlist.c
src/or/circuitlist.h
src/or/config.c
src/or/or.h
src/or/relay.c
src/or/relay.h