From 809227a121136d4c48ea09ad96aef5ecb9eb15eb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 8 Feb 2008 21:13:08 +0000 Subject: 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 --- src/or/relay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/relay.c') diff --git a/src/or/relay.c b/src/or/relay.c index 576d6e2cf..c0e308b98 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 cell. */ -- cgit v1.2.3