From owner-freebsd-threads@FreeBSD.ORG Tue Jan 25 01:36:28 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5055016A4CE; Tue, 25 Jan 2005 01:36:28 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E55EF43D1F; Tue, 25 Jan 2005 01:36:27 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) j0P1aP7h028055; Mon, 24 Jan 2005 20:36:25 -0500 (EST) Date: Mon, 24 Jan 2005 20:36:25 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Joe Marcus Clarke In-Reply-To: <1106613857.28710.66.camel@shumai.marcuscom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) cc: threads@freebsd.org cc: Julian Elischer Subject: Re: [PATCH] Dynamic thread stack size X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 01:36:28 -0000 On Mon, 24 Jan 2005, Joe Marcus Clarke wrote: > On Mon, 2005-01-24 at 19:41 -0500, Daniel Eischen wrote: > > On Mon, 24 Jan 2005, Joe Marcus Clarke wrote: > > > > > Ah, okay, I suspected that was the case for libc_r, but I wasn't sure if > > > the same thing held for all threading libraries. > > > > > > What about increasing the default stack sizes as you've said you wanted > > > to do, plus leaving in the environment variable to aid in transition > > > should the stack size have to be bumped again in the future? This would > > > > I don't want an environment variable :-) > > Why? I've listed two good reasons for having some way of dynamically > tuning thread stacks. What are the downsides? Because I don't want anyone to have to rely on environment variables to get things to work. There's already a POSIX way to set stacks which should be used if you want to use something other than default. That's what should be used, not an environment variable. > > > > > > INITIAL (32-bit): 2 MB > > > INITIAL (64-bit) 4 MB > > > > I think I was going to make the initial bigger than that (I forgot > > what I chose). > > > > > DEFAULT (32-bit): 1 MB > > > DEFAULT (64-bit): 2 MB > > > > Yes, I think that's what I was planning for other-than-initial threads. > > When do you plan to commit the changes? As soon as I can. -- DE