Operating System - Linux
1829575 Members
3938 Online
109992 Solutions
New Discussion

Re: RHEL3 reduce PTHREAD_STACK_MIN

 
Aaron_125
Occasional Contributor

RHEL3 reduce PTHREAD_STACK_MIN

Is anyone familiar with how to reduce the value for PTHREAD_STACK_MIN. Running RHEL3 2.4.21-20.ELsmp getconf shows a value of 16384. thnx -
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: RHEL3 reduce PTHREAD_STACK_MIN

Most kernel changes are made by making echo statements into the appropriate /proc directory.

Under certain cirumstances the kernel may need to be recompiled.

You should make sure there are not dependency values in the kernel before making changes. I'm curious as to why you wish to make this change.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: RHEL3 reduce PTHREAD_STACK_MIN

Why do you need to reduce the value?

I did not found any entries in the /proc filesystem that may allow the change of the value. You may need to edit the kernel source and recompile the kernel.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Aaron_125
Occasional Contributor

Re: RHEL3 reduce PTHREAD_STACK_MIN

Thanks guys - we'd like to test with lower min thread size because we believe the app may not require the full min. If we reduced to 8000 and have a couple hundred threads memory usage savings wouldn't be huge but couldn't hurt. Looks like the default PTHREAD_STACK_MIN value for 2.4 and 2.6 kernels is 16384 and wonder if this is an optimized value and changing it could cause system perf degradation/issues..?
Ivan Ferreira
Honored Contributor

Re: RHEL3 reduce PTHREAD_STACK_MIN

I think that as is not a tunable parameter, should be optimized. Anyway, you can more or less restric the values using ulimit.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?