
16 Jun
2004
16 Jun
'04
10:17 p.m.
Pete wrote:
The 8MB figure looks familiar. It is the default size that many Unices allocate to the program's stack.
What really puzzles me is that when the HP-UX bible talks about maxdsiz (maximum size of data segment) and maxssiz (maximum size of stack segment) it states for both that the size affects the size of the local heap. This seems weird, I mean the local heap surely resides EITHER on the stack OR in the data segment but not both?!?!
The heap is (virtual address space) - (stack size) - (data size) - (code size). So increasing the stack or data sizes will shrink your heap size.