ulimit and 64 bits process

as we know, ulimit can be used to limit the stack and heap size of a process occupy. However, the space for 32-bits and 64 bits process are different.

for example, "ulimit -s xxxx" only limit the stack size of 32- bits process, am I right?

How to limit the size of 64-bits process?

thanks a lot!:slight_smile:

Which platform?

Post output of "uname -a".

the platform is
HP-UX rx4640 B.11.23 U ia64 3815388320

Thanks!

if it is on Red hat linux, how we set the stack size limit for 64 bits process?
can we still use ulimit to set the limit?

Thanks!

Re max stack size on HP-UX 11.23, have a look at the kernel parameters - maxssiz and maxssiz_64bit:

       http://docs.hp.com/en/939/KCParms/KCparam.MaxSsiz.html

thanks for your information :),
so ulimit is no use on HP-UX?