1833431 Members
3256 Online
110052 Solutions
New Discussion

Re: stack size

 
M.sureshkumar
Regular Advisor

stack size

Hi All,

We need to increase stack size value from 98MB to 300MB in our hp unix 11.11 server.pls find the ulimit output
#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 3145728
stack(kbytes) 98252
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048

when i tried to incrase stack value from 98 MB to 300MB, i am getting the following error.
#ulimit -s 307200
sh: ulimit: The specified value exceeds the user's allowable limit.

Pls find the kernel parameter values.
kernel parameter values:
maxssiz 100610048 - 100610048
maxssiz_64bit 1073741824 - 1073741824

Pls give me the procedure for this case.

Regards,
Suresh.

5 REPLIES 5
Ivan Krastev
Honored Contributor

Re: stack size

You should increase maxssiz* parameters. For this you will need a reboot.

See more here - http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1025683

regards,
ivan

Re: stack size

You are going to have to create a new kernel and increase maxssiz (stack) and (data). A user can decrease ulimit but cannot increase it; in no cases can the ulimits exceed the hard limits set by the kernel tunables.

You can actually increase these values and create a new kernel using SAM. The fact that you must ask these questions is a rather strong indication that perhaps you shouldn't be the person doing them.
M.sureshkumar
Regular Advisor

Re: stack size

Hi

Please give me the maxssiz value for our requirement.

Our current maxssize values
maxssiz 0x5ff3000 0x5ff3000
maxssiz_64bit 0x40000000 0x40000000

Regards,
Suresh
Suraj K Sankari
Honored Contributor

Re: stack size

For changing these values you need a downtime because server will reboot

Because these are static parameter.

#kmtune -s maxssiz=newvalue
#kmtune -s maxssiz_64bit=newvalue

#./mk_kernel
#kmupdate
#shutdown -r -y 0

# kmtune -q maxssiz


For Integrity server you need to used kctune

Best way to do this changes is SAM

Suraj

Dennis Handly
Acclaimed Contributor

Re: stack size

Why do you want to do something like that? By increasing it to 300 Mb, you decrease maxdsiz by that amount (for 32 bit apps)!