Operating System - HP-UX
1753525 Members
5678 Online
108795 Solutions
New Discussion

Re: How to increase stack size (maxssiz)

 
Vengat
Advisor

How to increase stack size

Hi Team

 

Kindly let me know how to increase stack size ( hard limit ) and let me know the maximum size of stack.

 

Operating system : 11.31 U ia64

 

Current stack size :  stack(kbytes) 392192

 

Memory : dmesg |grep Physical
                   Physical: 33522972 Kbytes, lockable: 25024276 Kbytes, available: 28498500 Kbytes

 

Question 1 : - what is the maximum stack size will allow ? -

 

Question 1 :- How to set ?

 

 

2 REPLIES 2
Laurent Menase
Honored Contributor

Re: How to increase stack size

if it is user process stack:

man maxssiz

    Allowed values
      32 bit minimum: 0x40000

      32 bit maximum: 0x17F00000

      64 bit minimum: 0x40000

      64 bit maximum: 0x80000000

Dennis Handly
Acclaimed Contributor

Re: How to increase stack size (maxssiz)

>stack(kbytes) 392192s

 

This is already way too large, unless you have some Fortran app.

Increasing maxssiz will decrease the amount of maxdsiz, if you have already increased it 4 GB.

 

>1:  what is the maximum stack size will allow?

 

32 or 64 bit?

 

>2: How to set?

 

kctune maxssiz=  or kctune maxssiz_64bit=

 

See your previous question:

http://h30499.www3.hp.com/t5/System-Administration/Ulimit-unlimited/m-p/5708127