Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2005 18:52:20 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Andriy Tkachuk <ant@emict.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: more than 2k threads with -lpthread or -lthr
Message-ID:  <42B159E4.8080501@freebsd.org>
In-Reply-To: <200506161309.51431.ant@emict.com>
References:  <200506161309.51431.ant@emict.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42B159E4.8080501>