Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jan 2005 13:03:16 -0500 (EST)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Joe Marcus Clarke <marcus@freebsd.org>
Cc:        threads@freebsd.org
Subject:   Re: [PATCH] Dynamic thread stack size
Message-ID:  <Pine.GSO.4.43.0501221255250.7191-100000@sea.ntplx.net>
In-Reply-To: <1106293606.11662.20.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 21 Jan 2005, Joe Marcus Clarke wrote:

> In a follow-up to the previous discussion on increasing our default
> thread stacksize, I thought I'd look at how some other BSD
> implementations do it.  Mezz mentioned that he thought NetBSD had a 2 MB
> default stacksize, so I took a look.
>
> What I found was that NetBSD doesn't have a static default stacksize.
> Instead, they use the stacksize rlimit and a PTHREAD_STACKSIZE
> environment variable to get both the initial stacksize as well as each
> thread's default stacksize.  I thought this would be a really good way
> of doing things, so I ported their work to FreeBSD.

Please no.  I don't want to have to set any more environment
variables or login defaults to get libpthread to work with
certain ports.  Even if it were added, you'd have to do it
to all thread libraries in all branches in order for ports
to remove stacksize related patches.

I thought I had increased default stack sizes, but I see that
I haven't yet.

-- 
DE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0501221255250.7191-100000>