From 0af0e6405d6911cf41d1ad1d4504baa842c1328e 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 Reviewed-on: http://review.gluster.org/5928 --- 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 fea54c35ebc..7d9186a419e 100644 --- a/libglusterfs/src/mem-types.h +++ b/libglusterfs/src/mem-types.h @@ -109,6 +109,7 @@ enum gf_common_mem_types_ { gf_common_mt_drc_rbtree_node_t = 93, gf_common_mt_iov_base_t = 94, gf_common_mt_groups_t = 95, - gf_common_mt_end = 96 + gf_common_mt_auxgids = 96, + gf_common_mt_end = 97 }; #endif -- cgit