summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glusterfsd/src/glusterfsd.c3
-rw-r--r--libglusterfs/src/glusterfs.h1
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c4
3 files changed, 6 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 1b5a26c4f1f..e0f2e15fd2c 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -967,7 +967,8 @@ main (int argc, char *argv[])
free (base_exec_name);
- ctx->iobuf_pool = iobuf_pool_new (8 * 1048576, 128 * 1024);
+ ctx->page_size = 128 * 1024;
+ ctx->iobuf_pool = iobuf_pool_new (8 * 1048576, ctx->page_size);
ctx->event_pool = event_pool_new (DEFAULT_EVENT_POOL_SIZE);
pthread_mutex_init (&(ctx->lock), NULL);
pool = ctx->pool = CALLOC (1, sizeof (call_pool_t));
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h
index 529f5439728..a4b8a516f17 100644
--- a/libglusterfs/src/glusterfs.h
+++ b/libglusterfs/src/glusterfs.h
@@ -264,6 +264,7 @@ struct _glusterfs_ctx {
pthread_mutex_t lock;
int xl_count;
uint32_t volfile_checksum;
+ size_t page_size;
};
typedef struct _glusterfs_ctx glusterfs_ctx_t;
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;