summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-threads
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@redhat.com>2016-10-27 11:51:47 -0400
committerShyamsundar Ranganathan <srangana@redhat.com>2017-02-01 19:59:25 -0500
commitc8a23cc6cd289dd28deb136bf2550f28e2761ef3 (patch)
tree0d094de18439a092fcbf4084a7a2d6b8bf02b1af /xlators/performance/io-threads
parentd7077bca4b372a056d23416294e729637e9af94e (diff)
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 <jdarcy@redhat.com> Reviewed-on: https://review.gluster.org/15745 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: N Balachandran <nbalacha@redhat.com> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Diffstat (limited to 'xlators/performance/io-threads')
-rw-r--r--xlators/performance/io-threads/src/io-threads.h2
1 files changed, 1 insertions, 1 deletions
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 {