From owner-freebsd-threads@FreeBSD.ORG Thu Apr 30 09:19:26 2009 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB8AF106566C for ; Thu, 30 Apr 2009 09:19:26 +0000 (UTC) (envelope-from ykrapiva@gmail.com) Received: from mail-fx0-f162.google.com (mail-fx0-f162.google.com [209.85.220.162]) by mx1.freebsd.org (Postfix) with ESMTP id 4C7B78FC1A for ; Thu, 30 Apr 2009 09:19:26 +0000 (UTC) (envelope-from ykrapiva@gmail.com) Received: by fxm6 with SMTP id 6so1684302fxm.43 for ; Thu, 30 Apr 2009 02:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=Nf4dMemR28uOAp+5TFPRekid1gcWaZqiT6Z/GcBr2bY=; b=pMcEfu3wp53BfWLPJHDj0HvdRouw6/+DgKmr7HUpRhLIBlKVSiFahZ1+5G2CZOrpmr 4fMwdAKZqYM34AegdBHAIHz4rCeRsg9zyQql92SdS0uJMUEa+h2MsWj7s84xl9YdNkTT AtKJm+Gyv+hYL+iexCq2LKkErMJE6FGW+UqQg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=PGH1SJIAsUFnfpQIhoROeINcWe4emJo4d0ABReon2VMgbLMVhjIpXT/l7AMMV8PzlB CE6NyuAJj6284K3ucROITSRAQGTsnGlTKXNXAUPhashennPGUXaoiIyRSNoxOHrXF0il 6UtCmOgaWLF4O7KzFG+AvcLM2ElrmS1vuSrOs= MIME-Version: 1.0 Received: by 10.204.123.136 with SMTP id p8mr1233725bkr.21.1241081594058; Thu, 30 Apr 2009 01:53:14 -0700 (PDT) Date: Thu, 30 Apr 2009 11:53:14 +0300 Message-ID: <73923e560904300153t22cef75ay81434eeb5a245b2d@mail.gmail.com> From: Yevgen Krapiva To: freebsd-threads@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: How to increase the maximum number of threads per process ? 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, 30 Apr 2009 09:19:27 -0000 Hi. How to increase the maximum number of threads per process ? sysctl kern.threads.max_threads_per_proc=5000 do the trick but if I specify more than 5000 (10000 for example), the system doesn't let me anyway to create more than ~5000 of threads. This is needed for server application which creates a new thread for incoming request. If the number of threads reaches the OS's limits, it crashes. Thanks.