Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Nov 2005 20:17:47 +0800
From:      David Xu <davidxu@freebsd.org>
To:        "Ricardo A. Reis" <ricardo_bsd@yahoo.com.br>
Cc:        performance@freebsd.org
Subject:   Re: Libmicro!! pthread_create Resource temporarily unavailable
Message-ID:  <438C46EB.8040306@freebsd.org>
In-Reply-To: <438C3A57.9020507@yahoo.com.br>
References:  <23B6BBC5.F5C7C9B@mails.de> <438C3A57.9020507@yahoo.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help

Ricardo A. Reis wrote:

>
> >the pthread_create benchmark is trying to create 20000 threads, the
> >default allowed number is 1500.
>
>
> Hi,
>
> I increase default limits for  *per_proc for 40000
>
> sysctl -a |grep threads
> kern.threads.thr_concurrency: 0
> kern.threads.thr_scope: 0
> kern.threads.virtual_cpu: 2
> kern.threads.max_threads_hits: 0
> kern.threads.max_groups_per_proc: 40000
> kern.threads.max_threads_per_proc: 40000
> kern.threads.debug: 0
> vm.stats.vm.v_kthreads: 69
>
>
> But this not solution,
>
>
>
> Thanks
>
>
> Ricardo A. Reis
> UNIFESP
> Unix and Network Admin

You can not create 40000 threads, because each thread
defaults has 2M stack, you will out of address space.

David Xu




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?438C46EB.8040306>