dovecot-2.1: Increased initial memory pool sizes and marked some...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 2 14:33:51 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/91e035840dc6
changeset: 14217:91e035840dc6
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 02 14:33:41 2012 +0200
description:
Increased initial memory pool sizes and marked some of them as "growing".

diffstat:

 src/config/config-request.c            |  2 +-
 src/doveadm/dsync/dsync-brain.c        |  6 ++++--
 src/doveadm/dsync/dsync-proxy-server.c |  2 +-
 src/lib-settings/settings-parser.c     |  6 ++++--
 4 files changed, 10 insertions(+), 6 deletions(-)

diffs (70 lines):

diff -r dc0038843cc7 -r 91e035840dc6 src/config/config-request.c
--- a/src/config/config-request.c	Fri Mar 02 14:25:49 2012 +0200
+++ b/src/config/config-request.c	Fri Mar 02 14:33:41 2012 +0200
@@ -350,7 +350,7 @@
 
 	i_assert(module != NULL);
 
-	pool = pool_alloconly_create("config export", 1024*64);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"config export", 1024*64);
 	ctx = p_new(pool, struct config_export_context, 1);
 	ctx->pool = pool;
 
diff -r dc0038843cc7 -r 91e035840dc6 src/doveadm/dsync/dsync-brain.c
--- a/src/doveadm/dsync/dsync-brain.c	Fri Mar 02 14:25:49 2012 +0200
+++ b/src/doveadm/dsync/dsync-brain.c	Fri Mar 02 14:33:41 2012 +0200
@@ -230,7 +230,8 @@
 	struct dsync_brain_subs_list *list;
 	pool_t pool;
 
-	pool = pool_alloconly_create("dsync brain subs list", 1024*4);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"dsync brain subs list",
+				     1024*4);
 	list = p_new(pool, struct dsync_brain_subs_list, 1);
 	list->pool = pool;
 	list->brain = brain;
@@ -724,7 +725,8 @@
 	pool_t pool;
 	bool ret;
 
-	pool = pool_alloconly_create("dsync changed mailboxes", 10240);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"dsync changed mailboxes",
+				     10240);
 	p_array_init(&mailboxes, pool, 128);
 	dsync_brain_get_changed_mailboxes(brain, &mailboxes,
 		(brain->flags & DSYNC_BRAIN_FLAG_FULL_SYNC) != 0);
diff -r dc0038843cc7 -r 91e035840dc6 src/doveadm/dsync/dsync-proxy-server.c
--- a/src/doveadm/dsync/dsync-proxy-server.c	Fri Mar 02 14:25:49 2012 +0200
+++ b/src/doveadm/dsync/dsync-proxy-server.c	Fri Mar 02 14:33:41 2012 +0200
@@ -167,7 +167,7 @@
 	server->fd_in = fd_in;
 	server->fd_out = fd_out;
 
-	server->cmd_pool = pool_alloconly_create("worker server cmd", 1024);
+	server->cmd_pool = pool_alloconly_create("worker server cmd", 2048);
 	server->io = io_add(fd_in, IO_READ, proxy_server_input, server);
 	server->input = i_stream_create_fd(fd_in, (size_t)-1, FALSE);
 	server->output = o_stream_create_fd(fd_out, (size_t)-1, FALSE);
diff -r dc0038843cc7 -r 91e035840dc6 src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c	Fri Mar 02 14:25:49 2012 +0200
+++ b/src/lib-settings/settings-parser.c	Fri Mar 02 14:33:41 2012 +0200
@@ -200,7 +200,8 @@
 
 	i_assert(count > 0);
 
-	parser_pool = pool_alloconly_create("settings parser", 16384);
+	parser_pool = pool_alloconly_create(MEMPOOL_GROWING"settings parser",
+					    8192);
 	ctx = p_new(parser_pool, struct setting_parser_context, 1);
 	ctx->set_pool = set_pool;
 	ctx->parser_pool = parser_pool;
@@ -1720,7 +1721,8 @@
 	pool_t parser_pool;
 
 	pool_ref(new_pool);
-	parser_pool = pool_alloconly_create("dup settings parser", 8192);
+	parser_pool = pool_alloconly_create(MEMPOOL_GROWING"dup settings parser",
+					    8192);
 	new_ctx = p_new(parser_pool, struct setting_parser_context, 1);
 	new_ctx->set_pool = new_pool;
 	new_ctx->parser_pool = parser_pool;


More information about the dovecot-cvs mailing list