From owner-freebsd-threads@FreeBSD.ORG Mon Jan 24 19:31:37 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 8955B16A4CE; Mon, 24 Jan 2005 19:31:37 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C256F43D41; Mon, 24 Jan 2005 19:31:36 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) j0OJVZ1M015773; Mon, 24 Jan 2005 14:31:35 -0500 (EST) Date: Mon, 24 Jan 2005 14:31:35 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Joe Marcus Clarke In-Reply-To: <1106592548.28710.7.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 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: Mon, 24 Jan 2005 19:31:37 -0000 On Mon, 24 Jan 2005, Joe Marcus Clarke wrote: > On Sat, 2005-01-22 at 13:03 -0500, Daniel Eischen wrote: > > 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. > > No need. The default stacksize rlimit is more than enough (64 MB) to > satisfy every one of the affected ports thus far. The environment And 64MB is way too big for a default stack size... -- DE