summaryrefslogtreecommitdiffstats
path: root/config/Rules.am
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-12-02 11:53:37 -0800
committerBrian Behlendorf <[email protected]>2015-12-07 12:20:43 -0800
commitb58986eebf3c47c946393da4b968ee33edaea99e (patch)
tree6104d36d9f2fd55a4725090f1b5098b4d1272103 /config/Rules.am
parentf40926795c1a1d3750e2a6f6904061cfa68715df (diff)
Use large stacks when available
While stack size will vary by architecture it has historically defaulted to 8K on x86_64 systems. However, as of Linux 3.15 the default thread stack size was increased to 16K. These kernels are now the default in most non- enterprise distributions which means we no longer need to assume 8K stacks. This patch takes advantage of that fact by appropriately reverting stack conservation changes which were made to ensure stability. Changes which may have had a negative impact on performance for certain workloads. This also has the side effect of bringing the code slightly more in line with upstream. Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes #4059
Diffstat (limited to 'config/Rules.am')
-rw-r--r--config/Rules.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/Rules.am b/config/Rules.am
index af20ddb39..20a21e972 100644
--- a/config/Rules.am
+++ b/config/Rules.am
@@ -7,7 +7,8 @@ AM_CFLAGS += ${NO_BOOL_COMPARE}
AM_CFLAGS += -fno-strict-aliasing
AM_CPPFLAGS = -D_GNU_SOURCE -D__EXTENSIONS__ -D_REENTRANT
AM_CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64
-AM_CPPFLAGS += -D_LARGEFILE64_SOURCE -DTEXT_DOMAIN=\"zfs-linux-user\"
+AM_CPPFLAGS += -D_LARGEFILE64_SOURCE -DHAVE_LARGE_STACKS=1
+AM_CPPFLAGS += -DTEXT_DOMAIN=\"zfs-linux-user\"
AM_CPPFLAGS += -DLIBEXECDIR=\"$(libexecdir)\"
AM_CPPFLAGS += -DRUNSTATEDIR=\"$(runstatedir)\"
AM_CPPFLAGS += -DSBINDIR=\"$(sbindir)\"