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
This commit is contained in:
parent
9753d2f8ae
commit
5ecfb8f922
@ -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)"
|
||||
|
||||
#
|
||||
|
@ -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
|
||||
|
@ -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)"
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user