bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stack size


From: Marcus Brinkmann
Subject: Re: stack size
Date: Tue, 24 Sep 2002 22:38:14 +0200
User-agent: Mutt/1.4i

On Tue, Sep 24, 2002 at 01:27:16PM -0700, Roland McGrath wrote:
> > In cthreads, we currently default to 64k stacks (16 * vm_page_size,
> > c.f. libthread/stack.c:stack_init), should we increase this?
> 
> Yes, it's probably wisest to use the same default that LinuxThreads does.
> Though that might be an issue for Hurd servers with lots of threads.

Yes, esp. with Mach evicting those pages en mass.  Also, I think for
filesystems we know that the normal RPC service thread does not use a lot of
stack.

I don't think we should change anything until we have changed everything to
pthreads, and then we should use small stacks for RPC service threads, and
large stacks by default for everyone else.  I have not yet seen an
application that needs more than 64kb stack (although I have heard of some,
like mysql, IIRC - but we have other problems before such programs run well
on the Hurd).

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    address@hidden
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
address@hidden
http://www.marcus-brinkmann.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]