From owner-freebsd-questions Fri Feb 9 10:36:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 1DF9737B401 for ; Fri, 9 Feb 2001 10:36:11 -0800 (PST) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id UAA15159; Fri, 9 Feb 2001 20:41:51 +0100 Message-ID: <3A8438E4.F5C72C3C@i-clue.de> Date: Fri, 09 Feb 2001 19:37:24 +0100 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Omer Faruk Sen Cc: questions@FreeBSD.ORG Subject: Re: kern.maxproc (system tunning) References: <20010208113206.91352.qmail@web9307.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Omer Faruk Sen schrieb: > > I have a problem with my system.In fact I want to > tweak my system to get a better performance.As far as > I know freebsd meant to be slow first but tweaking it > it can be a system of fortue :) And it is now but > needs tweaking. > Anyway my problem: > How can I change kern.maxproc? Change it using sysctl -w. > When I try to raise > that value I get result of > ------------------ > su-2.04# sysctl -w kern.maxproc=1000 > sysctl: oid 'kern.maxproc' is read only > ---------------- Oooops. Well, have a look at /usr/src/sys/i386/conf/LINT. It shows all the "read-only" kernel options. Tweak as you think fit. Build a kernel with new values, install, reboot. To learn more about building your own kernel, have a look at the handbook. > I think there are more values to tweak.And here they > are (at least ones that I could able to find to have a > better perfomance) > > kern.maxvnodes=10000 > kern.maxfiles=2500 > kern.maxproc=1000 > kern.maxfilesperproc=2500 > kern.maxprocperuid=1500 > > I have used arbitrary values for them.Do I have to > make a balance among them? As long as you don't understand what these values manipulate, better leave them alone. I personally just adjust the maxusers option to something between 64 and 512, depending on how mauch processes I expect to run simulatneously. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message