From owner-freebsd-threads@FreeBSD.ORG Thu Jun 16 10:52:33 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 BB5E516A41F for ; Thu, 16 Jun 2005 10:52:33 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3C8243D49; Thu, 16 Jun 2005 10:52:33 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5GAqUfT050666; Thu, 16 Jun 2005 10:52:32 GMT (envelope-from davidxu@freebsd.org) Message-ID: <42B159E4.8080501@freebsd.org> Date: Thu, 16 Jun 2005 18:52:20 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.8) Gecko/20050605 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andriy Tkachuk References: <200506161309.51431.ant@emict.com> In-Reply-To: <200506161309.51431.ant@emict.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: 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 10:52:33 -0000 Andriy Tkachuk wrote: >Hi folks. > >I have troubles with network threaded application >wich uses several thousands threads with libthr or libpthread >in RELENG_5_x. Program is killed by sigsegv. >libc_r works but application eats more cpu with it. > >The program is the load test client application to the >server. It simulates clients to the server. Each >client is one thread in it. > >Thereby i have a question: is anybody use >such kind of application with libpthread or libthr? >If yes, then do you make some system tunings in order >to force your application be working? > >Tanks, > Andriy Tkachuk. > > > 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. David Xu