From 5ab18374d07c57de5647682d51afa05101be356f Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 12 Sep 2013 08:16:40 -0700 Subject: rpcsvc: allocate large auxgid list on demand For rpc requests having large aux group list, allocate large list on demand. Else use small static array by default. Without this patch, glusterfsd allocates 140+MB of resident memory just to get started and initialized. Change-Id: I3a07212b0076079cff67cdde18926e8f3b196258 Signed-off-by: Anand Avati BUG: 953694 Reviewed-on: http://review.gluster.org/5927 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- libglusterfs/src/mem-types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/mem-types.h b/libglusterfs/src/mem-types.h index 7dcbfb3dc..3b0f7d276 100644 --- a/libglusterfs/src/mem-types.h +++ b/libglusterfs/src/mem-types.h @@ -115,6 +115,7 @@ enum gf_common_mem_types_ { gf_common_mt_client_ctx = 99, gf_common_mt_lock_table = 100, gf_common_mt_locker = 101, - gf_common_mt_end = 102 + gf_common_mt_auxgids = 102, + gf_common_mt_end = 103 }; #endif -- cgit