From owner-freebsd-performance@FreeBSD.ORG Tue Nov 29 12:17:53 2005 Return-Path: X-Original-To: performance@freebsd.org Delivered-To: freebsd-performance@FreeBSD.ORG Received: from [127.0.0.1] (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 7435716A41F; Tue, 29 Nov 2005 12:17:52 +0000 (GMT) (envelope-from davidxu@freebsd.org) Message-ID: <438C46EB.8040306@freebsd.org> Date: Tue, 29 Nov 2005 20:17:47 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.11) Gecko/20050911 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Ricardo A. Reis" References: <23B6BBC5.F5C7C9B@mails.de> <438C3A57.9020507@yahoo.com.br> In-Reply-To: <438C3A57.9020507@yahoo.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: performance@freebsd.org Subject: Re: Libmicro!! pthread_create Resource temporarily unavailable X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 12:17:53 -0000 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