From owner-freebsd-threads@FreeBSD.ORG Fri Jun 17 10:59:05 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 2EFFC16A41C; Fri, 17 Jun 2005 10:59:05 +0000 (GMT) (envelope-from ant@emict.com) Received: from mail.emict.com (brig.emict.com [212.90.172.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id BADE743D58; Fri, 17 Jun 2005 10:59:04 +0000 (GMT) (envelope-from ant@emict.com) Received: from [10.0.0.232] (unknown [10.0.0.232]) by mail.emict.com (Postfix) with ESMTP id D08B93408F; Fri, 17 Jun 2005 13:59:02 +0300 (EEST) From: Andriy Tkachuk Organization: eMICT To: David Xu Date: Fri, 17 Jun 2005 13:59:00 +0300 User-Agent: KMail/1.8 References: <200506161309.51431.ant@emict.com> <20050616141857.GA63602@stack.nl> <42B1F414.9040203@freebsd.org> In-Reply-To: <42B1F414.9040203@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506171359.01441.ant@emict.com> 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: Fri, 17 Jun 2005 10:59:05 -0000 On Friday 17 June 2005 00:50, David Xu wrote: > Here two sysctl also have to tuned to numbers larger than 2000 for > libthr and libpthread: > kern.threads.max_groups_per_proc > kern.threads.max_threads_per_proc Also i want to note, that i didn't change this sysctls. Theirs default values are: kern.threads.max_threads_per_proc: 1500 kern.threads.max_groups_per_proc: 1500 and i make 5000 threads with -lpthread. The only sysctls i change in order to work with such number of threads are kern.maxfiles and kern.ipc.maxsockets, but they are not about threads. Regards, Andriy Tkachuk.