diff options
author | pirzyk <pirzyk@FreeBSD.org> | 2001-07-20 20:26:34 +0000 |
---|---|---|
committer | pirzyk <pirzyk@FreeBSD.org> | 2001-07-20 20:26:34 +0000 |
commit | 1163fba6474795ee0c5989c890c72b39eec684c0 (patch) | |
tree | b9664a3a23ab508f16f1ea121ab4e8cd2bd6575b /sys | |
parent | 0334ba809cccbe11c79ed47a894dbaddec8be8ba (diff) | |
download | FreeBSD-src-1163fba6474795ee0c5989c890c72b39eec684c0.zip FreeBSD-src-1163fba6474795ee0c5989c890c72b39eec684c0.tar.gz |
Put a knob in the kernel config files to tweak the user max stack size.
PR: kern/28925
Reviewed by: bakul@bitblocks.com and tlambert2@mindspring.com on -arch.
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/NOTES | 6 | ||||
-rw-r--r-- | sys/conf/options | 1 | ||||
-rw-r--r-- | sys/i386/conf/NOTES | 6 |
3 files changed, 9 insertions, 4 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 7ef32dd..ebfbf87 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -65,11 +65,13 @@ makeoptions CONF_CFLAGS=-fno-builtin #Don't allow use of memcmp, etc. # allow that limit to grow to 1GB, and can be increased further # with changing the parameters. MAXDSIZ is the maximum that the # limit can be set to, and the DFLDSIZ is the default value for -# the limit. You might want to set the default lower than the -# max, and explicitly set the maximum with a shell command for processes +# the limit. MAXSSIZ is the maximum that the stack limit can be +# set to. You might want to set the default lower than the max, +# and explicitly set the maximum with a shell command for processes # that regularly exceed the limit like INND. # options MAXDSIZ="(1024UL*1024*1024)" +options MAXSSIZ="(128UL*1024*1024)" options DFLDSIZ="(1024UL*1024*1024)" # diff --git a/sys/conf/options b/sys/conf/options index 3854bd7..e7239a3 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -241,6 +241,7 @@ DEV_ATAPIFD opt_ata.h # Resource limits. DFLDSIZ opt_rlimit.h MAXDSIZ opt_rlimit.h +MAXSSIZ opt_rlimit.h # Net stuff. ACCEPT_FILTER_DATA diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES index 7ef32dd..ebfbf87 100644 --- a/sys/i386/conf/NOTES +++ b/sys/i386/conf/NOTES @@ -65,11 +65,13 @@ makeoptions CONF_CFLAGS=-fno-builtin #Don't allow use of memcmp, etc. # allow that limit to grow to 1GB, and can be increased further # with changing the parameters. MAXDSIZ is the maximum that the # limit can be set to, and the DFLDSIZ is the default value for -# the limit. You might want to set the default lower than the -# max, and explicitly set the maximum with a shell command for processes +# the limit. MAXSSIZ is the maximum that the stack limit can be +# set to. You might want to set the default lower than the max, +# and explicitly set the maximum with a shell command for processes # that regularly exceed the limit like INND. # options MAXDSIZ="(1024UL*1024*1024)" +options MAXSSIZ="(128UL*1024*1024)" options DFLDSIZ="(1024UL*1024*1024)" # |