From owner-freebsd-threads@FreeBSD.ORG Thu Jun 16 14:18:59 2005 Return-Path: X-Original-To: freebsd-threads@freebsd.org 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 AFBCD16A41C; Thu, 16 Jun 2005 14:18:59 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7408C43D49; Thu, 16 Jun 2005 14:18:58 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id CE6F41F0DD; Thu, 16 Jun 2005 16:18:57 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id AE9E8654F; Thu, 16 Jun 2005 16:18:57 +0200 (CEST) Date: Thu, 16 Jun 2005 16:18:57 +0200 From: Marc Olzheim To: David Xu Message-ID: <20050616141857.GA63602@stack.nl> References: <200506161309.51431.ant@emict.com> <42B159E4.8080501@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <42B159E4.8080501@freebsd.org> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Cc: Andriy Tkachuk , freebsd-threads@freebsd.org Subject: Re: more than 2k threads with -lpthread or -lthr X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2005 14:18:59 -0000 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jun 16, 2005 at 06:52:20PM +0800, David Xu wrote: > Both libpthread and libthr use 1M bytes stack on 32bits platform > and 2M bytes stack on 64bits platform. I think 2k threads needs > 2G stack on i386, this is too large. In which case pthread_attr_setstacksize() might help ? Marc --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCsYpRezjnobFOgrERApNuAKCZTR7MHo1jbvavXtAgttwdbv2rwgCfRbe3 hX/mus8eMQiIWZjZ9xXh4XE= =UIM9 -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK--