Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to increase stack size limit?



Is there a simple (user friendly way) to increase the stack size limit beyond the
64 MB hard maximum, in particular within /bin/sh ?

If not, is it to be set in /usr/include/ppc/vmparam.h ? If yes, can I simply modify
and uncomment the lines? How to recompile the Kernel?

The current default configuration (Mac OS X 10.2.6) seems to allow only a decrease.

Thanks for any hint!

Swen

---
sh-2.05a$ ulimit -s 585937
sh: ulimit: cannot modify stack size limit: Operation not permitted
sh-2.05a$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) 6144
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 65536
cpu time (seconds, -t) unlimited
max user processes (-u) 100
virtual memory (kbytes, -v) 71680
---
sh-2.05a$ ulimit -s 555
sh-2.05a$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) 6144
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 555
cpu time (seconds, -t) unlimited
max user processes (-u) 100
virtual memory (kbytes, -v) 6699
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.