summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-09-12 08:16:40 -0700
committerAnand Avati <avati@redhat.com>2013-09-19 14:06:33 -0700
commit0af0e6405d6911cf41d1ad1d4504baa842c1328e (patch)
treea0a7f94d1949b524f7571ff99562673a7a63404d /libglusterfs
parent56e8bc6464d14ceaa42649dea1f5a4abef064668 (diff)
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 <avati@redhat.com> BUG: 953694 Reviewed-on: http://review.gluster.org/5927 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-on: http://review.gluster.org/5928
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/mem-types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/mem-types.h b/libglusterfs/src/mem-types.h
index fea54c35e..7d9186a41 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