how to increase stacksize?

Anton Shterenlikht mexas at bristol.ac.uk
Mon Apr 4 20:32:06 UTC 2011


On Mon, Apr 04, 2011 at 01:21:16PM -0700, Chuck Swiger wrote:
> On Apr 4, 2011, at 1:17 PM, Anton Shterenlikht wrote:
> >> Set kern.maxssiz in /boot/loader.conf
> >> to a larger value-- also consider
> >> tweaking kern.dflssiz,
> > 
> > What does this limit?
> > 
> > Is it documented anywhere?
> 
> 
> It appears to be documented in the manpages:
> 
>   http://www.freebsd.org/cgi/man.cgi?query=tuning&sektion=7
>   http://www.freebsd.org/cgi/man.cgi?query=loader&sektion=8
> 
> ...and sys/boot/forth/loader.conf says:
> 
> #hw.physmem="1G"                # Limit physical memory. See loader(8)
> #kern.dfldsiz=""                # Set the initial data size limit
> #kern.dflssiz=""                # Set the initial stack size limit
> #kern.hz="100"                  # Set the kernel interval timer rate
> #kern.maxbcache=""              # Set the max buffer cache KVA storage
> #kern.maxdsiz=""                # Set the max data size
> #kern.maxfiles=""               # Set the sys. wide open files limit
> #kern.maxproc=""                # Set the maximum # of processes
> #kern.maxssiz=""                # Set the max stack size
> #kern.maxswzone=""              # Set the max swmeta KVA storage
> #kern.maxtsiz=""                # Set the max text size
> 
> Regards,
> -- 
> -Chuck
> 

Many thanks. I was trying to learn
by looking at sys/kern/subr_param.c, but
this is much more informative.

Anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423


More information about the freebsd-questions mailing list