Re: Stack consumption in NPTL



On 7 Mrz., 16:39, Chetan <chetan...@xxxxxxxxx> wrote:

Is this the case? Is it documented anywhere?

I asked this many times. Nobody can answer it. It is AFAIK only
specified
on MacOSX where then MachTask has a 16KB kernel stack. I wasn't even
getting an answer on this list if there is a different kernel stack
and what default
size it is. This and the initial glibc stack allocations are the only
thing that
are important. Everything else should have no influence on the stack
size.

I myself use 32 as minimum + what i allocate on the stack and it
hasn't failed yet.
.



Relevant Pages

  • [RFC] Handling kernel stack overflows
    ... Every process has a dedicated kernel stack. ... The block device targeted by the I/O subsystem can be a raw device, ... Chain all the extra stacks onto a global free list and set a counting ...
    (Linux-Kernel)
  • Re: Reentrant problem with inet_ntoa in the kernel
    ... I use google mail web interface to post messages, ... that stack space is a limited resource in the ... which means adding those buffers can hit quite hard. ... but is the kernel stack too small to contain another 32 bytes at most? ...
    (freebsd-net)
  • Re: Memory test diags for Alphastation 255
    ... >> If you were seeing memory errors, ... > the Kernel Stack Not Valid error is on the screen? ... Regards, Nic Clews a.k.a. ...
    (comp.os.vms)
  • Re: Thread definition
    ... > EOF ... > Two stacks are associated with a process, kernel stack and user stack. ...
    (comp.sys.hp.hpux)
  • Re: Question regarding thread_struct
    ... EACH PROCESS'S KERNEL STACK IS A PAGE OR TWO. ... a process's kernel stack cannot be resized. ... The user-space stack is handled by user-space. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)