[dtrace-discuss] Detect stack size

Casper.Dik at Sun.COM Casper.Dik at Sun.COM
Mon Dec 4 15:06:28 PST 2006


>why not? as far as I understand, getrlimit and setrlimit are in standard 
>C lib as welland they have been used to dynamically get the soft an hard
>limit of the resources in the context of the current process.

Yes, but they don't work for the stack size parameters.

The stack limit determines the area of virtual memory reserved for
the stack; Solaris maps the lshared libraries directly under it, so
it is *impossible* to grow the stack limit for the current process.

The thread stacks are mapped at thread started; they are
not governed by any stack resource limits .

Casper


More information about the dtrace-discuss mailing list