Date: Mon, 02 Jul 2001 10:34:44 +0200 From: Len Conrad <LConrad@Go2France.com> To: freebsd-questions@freebsd.org Subject: Re: kern.maxproc Message-ID: <5.1.0.14.0.20010702082247.02f89918@mail.Go2France.com> In-Reply-To: <20010701132916.E296@blossom.cjclark.org> References: <5.1.0.14.0.20010701213843.02e428c8@mail.Go2France.com> <5.1.0.14.0.20010630174654.03c870c8@mail.Go2France.com> <5.1.0.14.0.20010630174654.03c870c8@mail.Go2France.com> <20010701154102.A376@iv.nn.kiev.ua> <5.1.0.14.0.20010701213843.02e428c8@mail.Go2France.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>And if we go to the code, > > $ grep -w maxproc /usr/src/sys/kern/kern_mib.c > SYSCTL_INT(_kern, KERN_MAXPROC, maxproc, CTLFLAG_RD, > &maxproc, 0, "Maximum number of processes"); > >Note the 'CTLFLAG_RD;' it's read-only. > >You need to recompile to change it. Iīm trying to gather tuning information for Wietse Venema who says "I'm writing a document that describes how to crank up FreeBSD so that it can run lots of processes, and so that it can handle lots of connections. Right now, these guidelines vary from sysctl, loader.conf, to recompiling a kernel. This is confusing." Of course, what he means "lots of connections" required by 100īs and 100īs of smtp and smtpd processes in postfix. Given that the guy is very busy developping postfix basically single-handed and participating in its support list daily, we ought to be pleased heīs concentrating some of his time on a FreeBSD+postfix tuning doc, and that he wouldn't be doing this if he wasnīt seeing a real demand for large to huge FreeBSD+postifix servers, can somebody, hacker level, provide some help here? What we have found is "man 8 systcl" , "man 3 systcl" , "man sysctl.conf" , "man loader.conf". The confusion results from some systcl variables that are read-only from sysctl.conf but writeable in loader.conf. eg, kern.ipc.maxsockets and kern.ipc.nmbclusters. but these latter are not listed in "man 8 sysctl" but are in man 3 sysctl, but not as being writeable in loader.conf, which is not mentioned. So it looks like for sysctl variables, there are these options: writeable from shell or sysctl.conf (but not writeable from loader.conf) read-only from sysctl.conf but writeable only in loader.conf read-only but writeable in custom kernel (re-compile) (but there isnīt any explicit setting for maxproc in 4.3R LINT.) Furthermore, is there any doc as to exactly which and how variables are affected by changing MAXUSERS? LINT says itīs "complicated" :))) and go read param.c. Thanks Len http://MenAndMice.com/DNS-training http://BIND8NT.MEIway.com : ISC BIND 8.2.4 for NT4 & W2K http://IMGate.MEIway.com : Build free, hi-perf, anti-abuse mail gateways 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?5.1.0.14.0.20010702082247.02f89918>