From 59378892641a10ba0268a044310264e52afe8ea0 Mon Sep 17 00:00:00 2001 From: Susant Palai Date: Thu, 4 Aug 2016 12:31:24 +0530 Subject: dht/rebalance: allocate migrator thread pool dynamically Problems: The maximum number of migratior threads created was static set to "40". And the number of these threads get created in rebalance depends on the number of cores user has. If the number of cores exceeds 40, a crash or memory corruption can be seen. Fix: Make the migratior thread pool dynamic. > Change-Id: Ifbdac8a1a396363dd75e2f6bcb454070cfdbf839 > BUG: 1362070 > Reviewed-on: http://review.gluster.org/15000 > Smoke: Gluster Build System > NetBSD-regression: NetBSD Build System > CentOS-regression: Gluster Build System > Reviewed-by: Raghavendra G (cherry picked from commit b8e8bfc7e4d3eaf76bb637221bc6392ec10ca54b) Change-Id: Ifbdac8a1a396363dd75e2f6bcb454070cfdbf839 BUG: 1362070 Signed-off-by: Susant Palai Reviewed-on: http://review.gluster.org/15062 NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Smoke: Gluster Build System Reviewed-by: Raghavendra G --- libglusterfs/src/mem-types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs') diff --git a/libglusterfs/src/mem-types.h b/libglusterfs/src/mem-types.h index 455ee641dae..d0384dad0be 100644 --- a/libglusterfs/src/mem-types.h +++ b/libglusterfs/src/mem-types.h @@ -161,6 +161,8 @@ enum gf_common_mem_types_ { gf_common_mt_tbf_t, gf_common_mt_tbf_bucket_t, gf_common_mt_tbf_throttle_t, + + gf_common_mt_pthread_t, gf_common_mt_end }; #endif -- cgit