1821481 Members
3019 Online
109633 Solutions
New Discussion юеВ

ulimit

 
ralph barber
Advisor

ulimit

Hi

Building a replacement server and am trying to duplicate stack size of the old one using the ulimit command raising both soft and hard limits from 8192 to 131072
No problem raising the hard limit but when I try to raise soft limit I get the following:

# ulimit -Ss 131072
sh: ulimit: The specified value exceeds the user's allowable limit.
I have tride raising the hard limit to a higher number first but I still get the same message. Is there some other parameter I have to raise first before I can do this ?
8 REPLIES 8
Bharat Katkar
Honored Contributor

Re: ulimit

Hi,
Your syntax should be
# ulimit -s 131072

I hope it could be typo also.
Regards,

You need to know a lot to actually know how little you know
ralph barber
Advisor

Re: ulimit

I still get the same error
ulimit -s 131072
sh: ulimit: The specified value exceeds the user's allowable limit.
Bharat Katkar
Honored Contributor

Re: ulimit

This is what is found out.
" The maximum stack size is effectively limited by the virtual memory and pagefile size available to the user."

Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: ulimit

Hi ,
Have look at this kernel parameter.
"vps_pagesize"

Hope that helps.
Regards,

You need to know a lot to actually know how little you know
Ermin Borovac
Honored Contributor

Re: ulimit

To increase stack size I think you need to adjust kernel parameter maxssiz, rebuild kernel and reboot.
Sajeesh O.K
Advisor

Re: ulimit

Hi

Increase the range in /usr/conf/master.d/core-hpux file

Regards
Sajeesh
Muthukumar_5
Honored Contributor

Re: ulimit

We have to tune the kernel parameters of

maxssiz 0x8000000 0x08000000 Immed
maxssiz_64bit 0x40000000 0x40000000 Immed
pa_maxssiz_32bit 83648512 Default
pa_maxssiz_64bit 536870912 Default

If you use IA 32 then tune it maxssiz or maxssiz_64bit(64 bit IA) application. Same as to PA-RISC.

I have tested it as,
kctune maxssiz
Tunable Value Expression Changes
maxssiz 0x17e00000 0x17e00000 Immed

If you lookin to the ulimit -Ss ,it will show as,
ulimit -Hs
391168
ulimit -Ss
391168

You have to use kctune (11.22 >= ) versions. In less versions you may be in-need to recompile the kernel.

Note:: I have tested it on 11.23
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: ulimit

By default,

Your system's will be as like,

kctune maxssiz
Tunable Value Expression Changes
maxssiz 0x8000000 0x08000000 Immed

ulimit -Ss and ulimit -Hs
131072

If you use 11.22 > versions, you have to use kmtune and recompile of kernel.

Else, use kctune to tune it. It will be upgraded at once.
Easy to suggest when don't know about the problem!