Skip site navigation (1)Skip section navigation (2)
Date:      05 Feb 2005 12:52:45 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Isaac Yonemoto <ityonemo@scripps.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: stack size limits
Message-ID:  <44lla2yjv6.fsf@be-well.ilk.org>
In-Reply-To: <Pine.SGI.4.44.0502041140320.14029334-100000@home.scripps.edu>
References:  <Pine.SGI.4.44.0502041140320.14029334-100000@home.scripps.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Isaac Yonemoto <ityonemo@scripps.edu> writes:

> I'm trying to adjust the stack size limit on my computer.  I'm not exactly
> sure what to do.  Here's what I've tried:
> 
> ulimit -s (size) 		in bash
> unlimit stacksize unlimited	in csh
> 
> options MAXSSIZE=(size)         in /usr/src/sys/i386/conf/KERNELNAME;
>   make buildkernel
>   make installkernel
> 
> stacksize=infinity              in /etc/login.conf;
>   cap_mkdb /etc/login.conf
> 
> kern.stacksize=(size)           in /etc/sysctl.conf
> 
> but despite all these efforts, doing ulimit -a still seems to show the
> default 64M limit.  Does anyone have any suggestions as to what I should
> have done/should do to increase the size users are allowed to have?

The maximum stack sizes are somewhat tied to the memory map, which is
dependent on the hardware.  

Are you sure you need bigger stacks?  If a task is using that much
stack space on a 32-bit architecture, the program involved probably
needs to be redesigned anyway...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44lla2yjv6.fsf>