summaryrefslogtreecommitdiffstats
path: root/glusterfsd/src/glusterfsd.c
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-04-11 23:55:58 +0530
committerAnand Avati <avati@redhat.com>2012-04-11 16:48:25 -0700
commitf2921551424a97dcc3914cc79a241dca42675b97 (patch)
tree3fc9595dc0ab8b26e34e3dcb6bfe40db76c0eba8 /glusterfsd/src/glusterfsd.c
parent472b55a6db996ca3058fec3aa6ab9a8745cbd5cb (diff)
glusterfsd: mem-pool count of dict_t is adjusted
increased dict_t pool count based on test results. Change-Id: Ia5b24940b79a1489b00cca2993241c32be94bbec Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 809034 Reviewed-on: http://review.gluster.com/3131 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
-rw-r--r--glusterfsd/src/glusterfsd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 053a7c246..7bc063b2f 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -1043,15 +1043,16 @@ glusterfs_ctx_defaults_init (glusterfs_ctx_t *ctx)
return -1;
}
- ctx->dict_pool = mem_pool_new (dict_t, 1024);
+ ctx->dict_pool = mem_pool_new (dict_t, GF_MEMPOOL_COUNT_OF_DICT_T);
if (!ctx->dict_pool)
return -1;
- ctx->dict_pair_pool = mem_pool_new (data_pair_t, 16 * GF_UNIT_KB);
+ ctx->dict_pair_pool = mem_pool_new (data_pair_t,
+ GF_MEMPOOL_COUNT_OF_DATA_PAIR_T);
if (!ctx->dict_pair_pool)
return -1;
- ctx->dict_data_pool = mem_pool_new (data_t, 8 * GF_UNIT_KB);
+ ctx->dict_data_pool = mem_pool_new (data_t, GF_MEMPOOL_COUNT_OF_DATA_T);
if (!ctx->dict_data_pool)
return -1;