aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-08 21:13:08 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-08 21:13:08 +0000
commit809227a121136d4c48ea09ad96aef5ecb9eb15eb (patch)
tree9268a8c4b54c49c1c376a92dbfc9544503761616 /src/or/relay.c
parent5d250d3e1b8eab09b438516f790082204441b6e3 (diff)
downloadtor-809227a121136d4c48ea09ad96aef5ecb9eb15eb.tar.gz
tor-809227a121136d4c48ea09ad96aef5ecb9eb15eb.zip
r14061@tombo: nickm | 2008-02-08 14:30:42 -0500
Add a couple of (currently disabled) strategies for trying to avoid using too much ram in memory pools: prefer putting new cells in almost-full chunks, and be willing to free the last empty chunk if we have not needed it for a while. Also add better output to mp_pool_log_status to track how many mallocs a given memory pool strategy is saving us, so we can tune the mempool parameters. svn:r13428
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 576d6e2cf1..c0e308b983 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1538,7 +1538,7 @@ void
clean_cell_pool(void)
{
tor_assert(cell_pool);
- mp_pool_clean(cell_pool, -1);
+ mp_pool_clean(cell_pool, -1, 0);
}
/** Release storage held by <b>cell</b>. */