From 451620e0ec88f717e7046ebb27fe1f29d73796d9 Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Mon, 13 Apr 2009 17:50:21 +0530 Subject: introduce page_size in glusterfs_ctx_t to be used by all translators set it to 128KB in main() Signed-off-by: Anand V. Avati --- libglusterfsclient/src/libglusterfsclient.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libglusterfsclient/src') diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 174eb7a27e0..5c0b1dd9ccf 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -384,7 +384,9 @@ glusterfs_init (glusterfs_init_params_t *init_ctx) /* FIXME: why is count hardcoded to 16384 */ ctx->gf_ctx.event_pool = event_pool_new (16384); - ctx->gf_ctx.iobuf_pool = iobuf_pool_new (64 * 1048576, 128 * 1024); + ctx->gf_ctx.page_size = 128 * 1024; + ctx->gf_ctx.iobuf_pool = iobuf_pool_new (8 * 1048576, + ctx->gf_ctx.page_size); lim.rlim_cur = RLIM_INFINITY; lim.rlim_max = RLIM_INFINITY; -- cgit