From c8a23cc6cd289dd28deb136bf2550f28e2761ef3 Mon Sep 17 00:00:00 2001 From: Jeff Darcy Date: Thu, 27 Oct 2016 11:51:47 -0400 Subject: libglusterfs+transport+io-threads: fix 256KB stack abuse Some functions were allocating 64K booleans, which are (crazily) mapped to 4-byte ints, for a total of 256KB per call. Changed to use bitfields instead, so usage is now only 8KB per call. This was the impediment to changing the io-threads stack size, so that has been adjusted too. Change-Id: I8781c4f2c8f2b830f4535e366995fac8dd0a8653 BUG: 1418095 Signed-off-by: Jeff Darcy Reviewed-on: https://review.gluster.org/15745 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: N Balachandran Reviewed-by: Shyamsundar Ranganathan --- xlators/performance/io-threads/src/io-threads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/performance/io-threads') diff --git a/xlators/performance/io-threads/src/io-threads.h b/xlators/performance/io-threads/src/io-threads.h index cd28e2d40ad..9648f74f39b 100644 --- a/xlators/performance/io-threads/src/io-threads.h +++ b/xlators/performance/io-threads/src/io-threads.h @@ -37,7 +37,7 @@ struct iot_conf; #define IOT_MAX_THREADS 64 -#define IOT_THREAD_STACK_SIZE ((size_t)(1024*1024)) +#define IOT_THREAD_STACK_SIZE ((size_t)(256*1024)) typedef enum { -- cgit