dovecot-2.0: Increased some initial memory pool sizes.

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 25 21:33:42 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/29733d23d903
changeset: 9532:29733d23d903
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 25 14:33:37 2009 -0400
description:
Increased some initial memory pool sizes.

diffstat:

3 files changed, 5 insertions(+), 4 deletions(-)
src/config/config-parser.c         |    2 +-
src/lib-settings/settings-parser.c |    5 +++--
src/lib-storage/mailbox-list.c     |    2 +-

diffs (46 lines):

diff -r cdd6ef3c356c -r 29733d23d903 src/config/config-parser.c
--- a/src/config/config-parser.c	Thu Jun 25 14:09:49 2009 -0400
+++ b/src/config/config-parser.c	Thu Jun 25 14:33:37 2009 -0400
@@ -282,7 +282,7 @@ void config_parse_file(const char *path,
 	size_t len;
 
 	memset(&ctx, 0, sizeof(ctx));
-	ctx.pool = pool_alloconly_create("config file parser", 10240);
+	ctx.pool = pool_alloconly_create("config file parser", 1024*64);
 	ctx.path = path;
 
 	fd = open(path, O_RDONLY);
diff -r cdd6ef3c356c -r 29733d23d903 src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c	Thu Jun 25 14:09:49 2009 -0400
+++ b/src/lib-settings/settings-parser.c	Thu Jun 25 14:33:37 2009 -0400
@@ -114,7 +114,7 @@ settings_parser_init_list(pool_t set_poo
 	i_assert(count > 0);
 
 	pool_ref(set_pool);
-	parser_pool = pool_alloconly_create("settings parser", 8192);
+	parser_pool = pool_alloconly_create("settings parser", 16384);
 	ctx = p_new(parser_pool, struct setting_parser_context, 1);
 	ctx->set_pool = set_pool;
 	ctx->parser_pool = parser_pool;
@@ -1094,7 +1094,8 @@ settings_parser_dup(struct setting_parse
 	pool_ref(new_pool);
 	new_ctx = p_new(new_pool, struct setting_parser_context, 1);
 	new_ctx->set_pool = new_pool;
-	new_ctx->parser_pool = pool_alloconly_create("settings parser", 2048);
+	new_ctx->parser_pool =
+		pool_alloconly_create("dup settings parser", 8192);
 	new_ctx->flags = old_ctx->flags;
 	new_ctx->str_vars_are_expanded = old_ctx->str_vars_are_expanded;
 	new_ctx->linenum = old_ctx->linenum;
diff -r cdd6ef3c356c -r 29733d23d903 src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c	Thu Jun 25 14:09:49 2009 -0400
+++ b/src/lib-storage/mailbox-list.c	Thu Jun 25 14:33:37 2009 -0400
@@ -574,7 +574,7 @@ mailbox_list_iter_init_namespaces(struct
 
 	i_assert(namespaces != NULL);
 
-	pool = pool_alloconly_create("mailbox list namespaces", 256);
+	pool = pool_alloconly_create("mailbox list namespaces", 512);
 	ctx = p_new(pool, struct ns_list_iterate_context, 1);
 	ctx->pool = pool;
 	ctx->ctx.flags = flags;


More information about the dovecot-cvs mailing list