stacksize

The Terminal command:
"limit stacksize unlimited"

doesn't allow to increase the stacksize above 65536 kbytes!

This is a serious problem to run a scientific code I need to use (I have a PowerMac G5 Quad, OSX 10.4.3).

There is not such a limitation on other unix platforms.

Could you please give an advise?

Thanks in advance

G5 Quad, Mac OS X (10.4.3)

Posted on Jan 3, 2006 5:29 AM

Reply
7 replies

Jan 4, 2006 4:48 AM in response to Daniel Macks

What about using the sysctl -w kern.sysv.shmmax command? Doesn't this command increase the shared memory size? If indeed the stack size limit is 64 Mb, that's a real serious limit since lots of scientific code require as much stack size as available RAM will permit. I know on HP-UX that when one increases the stack size, that the kernel is automatically rebuilt. Does Darwin have a similar function, beyond sysctl , to rebuild the kernel after changing stack size?


Ed

Jan 12, 2006 12:07 AM in response to Ed Mansky

64M is the maximum size to which the system will auto-extend a process' stack; specifying a larger stack with -stack-size artificially extends that by creating a dedicated stack segment of a fixed size for the program.

It's possible a knowledgeable user could recompile Darwin after bumping up MAXSSIZ in /usr/include/ppc/vmparam.h, but obviously there are no promises as to whether that would work or not.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

stacksize

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.