Date: Fri, 09 Feb 2001 19:37:24 +0100 From: Christoph Sold <so@server.i-clue.de> To: Omer Faruk Sen <ofsenfreebsd@yahoo.com> Cc: questions@FreeBSD.ORG Subject: Re: kern.maxproc (system tunning) Message-ID: <3A8438E4.F5C72C3C@i-clue.de> References: <20010208113206.91352.qmail@web9307.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A8438E4.F5C72C3C>