• 2 replies
  • Latest Post - ‏2014-11-27T19:37:58Z by j.cortez
6902 Posts

Pinned topic AIX ulimit stack setting

‏2007-12-12T13:16:19Z |
Can someone help to explain why the AIX ulimit stack setting will indicate hard value of 4194304 when we have set it to unlimited in /etc/security/limits?

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 4194304
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 2000

But if you look in /etc/security/limits, you can see that it is set

core = -1
data = -1
stack = -1
rss = -1
fsize = -1

Thanks in advance.

Updated on 2007-12-12T14:13:36Z at 2007-12-12T14:13:36Z by SystemAdmin
  • SystemAdmin
    6902 Posts

    Re: AIX ulimit stack setting

    The value that is being displayed for the stack parameter corresponds to the default stack_hard value:

    From /etc/security/limits:
    * The following table contains the default hard values if the
    * hard values are not explicitly defined:
    * Attribute Value
    * ========== ============
    * stack_hard 8388608

    You would need to explicity set stack_hard to "-1" in /etc/security/limits to get unlimited stack size.
  • j.cortez
    9 Posts

    Re: AIX ulimit stack setting


    Hi Debbie,

    Change those limits using smit chuser and change both hard and soft values.

    João Bosco Cortez Filho