From owner-freebsd-questions@FreeBSD.ORG Thu Feb 23 09:16:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48CC016A420 for ; Thu, 23 Feb 2006 09:16:02 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEEDB43D45 for ; Thu, 23 Feb 2006 09:16:01 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by xproxy.gmail.com with SMTP id h30so7405wxd for ; Thu, 23 Feb 2006 01:16:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HmD+cbo9lKIjU7dar+bBNGXOqYOh4a6CYjWrip986tU/BHrYx5ml3gF0skajyNoiYWGkwzhbhqMltrPtoLXWpcKx6lGjY+3HQzoXTwdz2Q6Li24elntUmcrKaoTnUJiStx6fZfGLCooOziiwb5KNELYRLf9pN2fC8jNmVGTdqLg= Received: by 10.70.123.15 with SMTP id v15mr1560724wxc; Thu, 23 Feb 2006 01:16:01 -0800 (PST) Received: by 10.70.65.9 with HTTP; Thu, 23 Feb 2006 01:16:01 -0800 (PST) Message-ID: Date: Thu, 23 Feb 2006 03:16:01 -0600 From: "Nikolas Britton" To: "Thawan Kooburat" In-Reply-To: <7ff80ef30602221125u483cc47cy795ce8442a52b332@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7ff80ef30602180204s54cd69afy9c4c11a297ea31a4@mail.gmail.com> <7ff80ef30602221125u483cc47cy795ce8442a52b332@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Increase process number in FreeBSD 6.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 09:16:02 -0000 On 2/22/06, Thawan Kooburat wrote: > Hi > I am using FreeBSD 6.0. My course assignment required me to > increase process number running on a system. > I have already modify /boot/loader.conf on following parameters > > kern.maxusers =3D 384 > kern.maxproc =3D 50000 > kern.maxprocperuid =3D 50000 > > But after reboot maxproc and maxprocperuid is only 5278 and 4755 > respectively. From my research maxproc is calculated from maxusers, > but i think my maxproc number is limited by other factors as well. > Are there any suggestion to this problem without increasing RAM? > > My system is running on VMware and 256 MB of RAM available. The test > program create process by using fork() and child processes is put to > sleep() immediately after its creation. > > I'm not sure if this still works but put "options MAXUSERS=3D512" in the kernel config file and rebuild the kernel. also maybe put it in sysctl.conf "The auto-tuning algorithm sets maxuser equal to the amount of memory in th= e system, with a minimum of 32, and a maximum of 384." -- BSD Podcasts @ http://bsdtalk.blogspot.com/