From owner-freebsd-threads@FreeBSD.ORG Fri Nov 19 17:52:39 2004 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 63DBA16A4CE; Fri, 19 Nov 2004 17:52:39 +0000 (GMT) Received: from rooster.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id B217C43D31; Fri, 19 Nov 2004 17:52:38 +0000 (GMT) (envelope-from marcus@FreeBSD.org) Received: from [171.71.248.255] (dhcp-171-71-248-255.cisco.com [171.71.248.255]) by rooster.cisco.com (8.11.7+Sun/8.8.8) with ESMTP id iAJHqbe28168; Fri, 19 Nov 2004 12:52:37 -0500 (EST) Message-ID: <419E32EC.8070400@FreeBSD.org> Date: Fri, 19 Nov 2004 12:52:44 -0500 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Mozilla Thunderbird 0.9 (Macintosh/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Alexander Nedotsukov cc: freebsd-threads@FreeBSD.org Subject: Re: Question about our default pthread 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: Fri, 19 Nov 2004 17:52:39 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Eischen wrote: | On Fri, 19 Nov 2004, Alexander Nedotsukov wrote: | | |>Hey guys, |> |>After squashing yet another "too small thread stack size" bug in |>software developed on Linux. I decided to ask gurus for the comment. Why |>we still insist that 64K is good enough for 32bit archs? I do understand | | | I suggested we double the stack size for 64-bit archs (making it | 128K). I could see going to 256K for 32-bit and 512K for 64-bit. ia64 already uses a 256 KB default stack size. However, I argue that is is "too small." Linux has a much higher default (inline with the document bland referenced), and thus, most popular multithreaded applications are developed with that in mind. It has become some problematic for GNOME, for example, that I have hacked glib20 to allocate a default 1 MB stack on all architectures (this is, of course, configurable). | | We haven't worried too much about stack size since everything | has been running with libc_r for years without too many problems | and it's been using the same stack size. I think we should revisit this decision, and do something similar to what is outlined in the Sun document. Going to at least 1 MB on all architectures would ensure more popular software runs out-of-the-box on FreeBSD. Joe | - -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBnjLsb2iPiv4Uz4cRAjeiAKCpAIEvg4KPdLMy1DGYQw78fM58lgCcDBt6 8sDV+TOf6dyNs6pVVSnY96Q= =sKab -----END PGP SIGNATURE-----