diff options
author | Amar Tumballi <amar@gluster.com> | 2011-09-27 18:01:29 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-12-07 05:01:52 -0800 |
commit | 017344be59fbbd4cf6d29d3f5a6581b468dc29c9 (patch) | |
tree | 9caf7fcdb968ad8da5a14f6e0fc9c9a7ddb0d130 /cli/src/cli.c | |
parent | 254fbfd92d4088c97ddde79a37b4e08e80c8eff3 (diff) |
libglusterfs/iobuf: have fixed number of arenas
* so overall memory usage will be in limit.
* the array is hard-coded, need to improve upon this.
* need more benchmarking to tune the proper values to the array
* fixed the issue of pruning of arenas.
Change-Id: I38a8ffab37378c25d78f77a2d412b1b8935c67d3
BUG: 3474
Signed-off-by: Amar Tumballi <amar@gluster.com>
Reviewed-on: http://review.gluster.com/543
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r-- | cli/src/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index 932869038f1..78c76c53fd1 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -151,7 +151,7 @@ glusterfs_ctx_defaults_init (glusterfs_ctx_t *ctx) ctx->page_size = 128 * GF_UNIT_KB; - ctx->iobuf_pool = iobuf_pool_new (8 * GF_UNIT_MB, ctx->page_size); + ctx->iobuf_pool = iobuf_pool_new (); if (!ctx->iobuf_pool) return -1; |