Re: setting 'ulimit -s' within /etc/system
- From: jsmith665 <jsmith665@xxxxxxxxxxx>
- Date: Fri, 24 Mar 2006 17:27:32 -0500
On 24 Mar 2006 10:55:08 GMT, Casper H.S. Dik <Casper.Dik@xxxxxxx>
wrote:
jsmith665 <jsmith665@xxxxxxxxxxx> writes:
Is there an /etc/system parameter that is equivalent to the value set
by 'ulimit -s' (i.e., maximum size of stack segment) for Solaris 8/9?
The "Solaris Tunable Parameters Reference Manual" references both
'lwp_default_stksize' and 'rpcmod:svc_default_stksize'. From the
description, "Default value of size of stack to be used when a kernel
thread is created," the former would appear to be the desired
parameter.
However, testing with either and both (rebooting the system between
settings) appears to have no effect on the desired setting---'ulimit
-s' reports the default of 8192 regardless of the settings of the two
aforementioned parameters.
Those two parameters are for kernel threads; and they are in bytes.
Please change them back because you may now be wasting tons of memory.
You are interested in the per-process stack; this cannot be set
system wide except through, e.g., /etc/profile or /etc/.login.
Users are free to change that limit in anyway.
Casper
Thanks, for the definitive answer.
We did make note of the fact that both parameters set the kernel
thread stack size (one for normal threads, the other for rpc). But,
in the absence of information to the contrary, either seemed a
possible (if unreasonable) candidate. And, we did notice the spike in
memory utilization, as well. So, not having the desired effect, the
parameters have already been returned to their pre-testing values. We
will revert to our original plan, of adding the 'ulimit -s' command to
the process scripts requiring the change.
Thanks, again.
.
- Follow-Ups:
- Re: setting 'ulimit -s' within /etc/system
- From: Casper H . S . Dik
- Re: setting 'ulimit -s' within /etc/system
- References:
- setting 'ulimit -s' within /etc/system
- From: jsmith665
- Re: setting 'ulimit -s' within /etc/system
- From: Casper H . S . Dik
- setting 'ulimit -s' within /etc/system
- Prev by Date: Re: RAID 5 SVM performance
- Next by Date: Re: Apache 2.0.55 Install on Saolaris 9
- Previous by thread: Re: setting 'ulimit -s' within /etc/system
- Next by thread: Re: setting 'ulimit -s' within /etc/system
- Index(es):
Relevant Pages
|