Update the sysctl faq item:

Tell people that kern.maxproc should be tuned through /boot/loader.conf.

PR:		docs/85733
Requested by:	Brian Candler <B dot Candler at pobox dot com>
Submitted by:	Daniel Gerzo <danger at rulez dot sk>
This commit is contained in:
Remko Lodder 2005-12-26 14:39:49 +00:00
parent 9ec0cfc10c
commit c44138e569
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=26704

View file

@ -3361,18 +3361,25 @@ quit</programlisting>
<para>If your machine is lightly loaded, and you are simply
running a very large number of processes, you can adjust
this with the <varname>kern.maxproc</varname> sysctl. If
these processes are being run by a single user, you will
this with the <varname>kern.maxproc</varname> tunable. If
this tunable needs adjustion it needs to be defined in
in <filename>/boot/loader.conf</filename>. The tunable
will not get adjusted untill the system is rebooted. For
more information about tuning tunables, you should see the
&man.loader.conf.5; and &man.sysctl.conf.5; manual pages.
If these processes are being run by a single user, you will
also need to adjust <varname>kern.maxprocperuid</varname>
to be one less than your new
<varname>kern.maxproc</varname> value. (It must be at
least one less because one system program, &man.init.8;,
must always be running.)</para>
<para>To make a sysctl permanent across reboots, set this in
<filename>/etc/sysctl.conf</filename> in recent versions
of FreeBSD, or <filename>/etc/rc.local</filename> in older
versions.</para>
<para>To make a sysctl change permanent place the proper value
in <filename>/etc/sysctl.conf</filename>. More information
about system tuning with &man.sysctl.8; can be found at
the <ulink
url="&url.books.handbook;/configtuning-sysctl.html">Tuning
with sysctl</ulink> section of the Handbook.</para>
</answer>
</qandaentry>