From owner-freebsd-threads@FreeBSD.ORG Tue Jan 25 00:44:42 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 9248F16A4CE; Tue, 25 Jan 2005 00:44:42 +0000 (GMT) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2711043D39; Tue, 25 Jan 2005 00:44:42 +0000 (GMT) (envelope-from marcus@FreeBSD.org) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) j0P0iwBR053817; Mon, 24 Jan 2005 19:44:58 -0500 (EST) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: Daniel Eischen In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-068Svqo9jmWrP866ZrEj" Organization: FreeBSD, Inc. Date: Mon, 24 Jan 2005 19:44:17 -0500 Message-Id: <1106613857.28710.66.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port 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 List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 00:44:42 -0000 --=-068Svqo9jmWrP866ZrEj Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2005-01-24 at 19:41 -0500, Daniel Eischen wrote: > On Mon, 24 Jan 2005, Joe Marcus Clarke wrote: >=20 > > Ah, okay, I suspected that was the case for libc_r, but I wasn't sure i= f > > 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 woul= d >=20 > 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? >=20 > > also give us an easy way to test for stack overflows without instructin= g > > users to rebuild their threading library. > > > > Also, what were your planned stacksize increments? I was hoping for > > something along the lines of: > > > > INITIAL (32-bit): 2 MB > > INITIAL (64-bit) 4 MB >=20 > I think I was going to make the initial bigger than that (I forgot > what I chose). >=20 > > DEFAULT (32-bit): 1 MB > > DEFAULT (64-bit): 2 MB >=20 > Yes, I think that's what I was planning for other-than-initial threads. When do you plan to commit the changes? Joe >=20 --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-068Svqo9jmWrP866ZrEj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBB9ZZhb2iPiv4Uz4cRAi4cAJwI1gmOiGjmhD3XCNyJCzY1WM6eCgCglHQ0 cVY2fGkPGX8w09vnY7Dqegc= =RE6w -----END PGP SIGNATURE----- --=-068Svqo9jmWrP866ZrEj--