summaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-01-10 12:46:39 -0500
committerNick Mathewson <nickm@torproject.org>2018-01-10 12:46:39 -0500
commitca1d1c382ceb0201bf8761f2b45a0e6f8e83b9be (patch)
treec3f4f9f7a87775ce628127d81710e1a55637a0b7 /src/or/circuitlist.c
parentd8c0c62c7b460f82dcded5eb8372b1e51fd3fbb7 (diff)
parentac9eebd63637d39b2a55d9a40c748a197fd47f93 (diff)
downloadtor-ca1d1c382ceb0201bf8761f2b45a0e6f8e83b9be.tar.gz
tor-ca1d1c382ceb0201bf8761f2b45a0e6f8e83b9be.zip
Merge remote-tracking branch 'ffmancera/github/bug24501'
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r--src/or/circuitlist.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index f074025a39..661438d8f1 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -2404,9 +2404,15 @@ circuits_handle_oom(size_t current_allocation)
int n_circuits_killed=0;
int n_dirconns_killed=0;
uint32_t now_ts;
- log_notice(LD_GENERAL, "We're low on memory. Killing circuits with "
- "over-long queues. (This behavior is controlled by "
- "MaxMemInQueues.)");
+ log_notice(LD_GENERAL, "We're low on memory (cell queues total alloc: %zu,"
+ " buffer total alloc: %zu, tor compress total alloc: %zu,"
+ " rendezvous cache total alloc: %zu). Killing circuits with"
+ " over-long queues. (This behavior is controlled by"
+ " MaxMemInQueues.)",
+ cell_queues_get_total_allocation(),
+ buf_get_total_allocation(),
+ tor_compress_get_total_allocation(),
+ rend_cache_get_total_allocation());
{
size_t mem_target = (size_t)(get_options()->MaxMemInQueues *