Mercurial > dovecot > core-2.2
changeset 14253:91e035840dc6
Increased initial memory pool sizes and marked some of them as "growing".
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 02 Mar 2012 14:33:41 +0200 |
parents | dc0038843cc7 |
children | 3e9f91d8b2af |
files | src/config/config-request.c src/doveadm/dsync/dsync-brain.c src/doveadm/dsync/dsync-proxy-server.c src/lib-settings/settings-parser.c |
diffstat | 4 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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);
--- 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);
--- 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;