Skip to content

Commit c5e2333

Browse files
committed
Update SysV parameter configuration documentation for FreeBSD.
FreeBSD hasn't made any use of kern.ipc.semmap since 1.1, and newer releases reject attempts to set it altogether; so stop recommending that it be adjusted. Per bug #11161. Back-patch to all supported branches. Before 9.3, also incorporate commit 7a42dff, which touches the same text and for some reason was not back-patched at the time.
1 parent 054fc30 commit c5e2333

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -753,25 +753,27 @@ psql: could not connect to server: No such file or directory
753753
<command>loader</command> interfaces. The following
754754
parameters can be set using <command>sysctl</command>:
755755
<screen>
756-
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.shmall=32768</userinput>
757-
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.shmmax=134217728</userinput>
758-
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.semmap=256</userinput>
756+
<prompt>#</prompt> <userinput>sysctl kern.ipc.shmall=32768</userinput>
757+
<prompt>#</prompt> <userinput>sysctl kern.ipc.shmmax=134217728</userinput>
759758
</screen>
760-
To have these settings persist over reboots, modify
759+
To make these settings persist over reboots, modify
761760
<filename>/etc/sysctl.conf</filename>.
762761
</para>
763762

764763
<para>
765-
The remaining semaphore settings are read-only as far as
766-
<command>sysctl</command> is concerned, but can be changed
767-
before boot using the <command>loader</command> prompt:
768-
<screen>
769-
<prompt>(loader)</prompt> <userinput>set kern.ipc.semmni=256</userinput>
770-
<prompt>(loader)</prompt> <userinput>set kern.ipc.semmns=512</userinput>
771-
<prompt>(loader)</prompt> <userinput>set kern.ipc.semmnu=256</userinput>
772-
</screen>
773-
Similarly these can be saved between reboots in
774-
<filename>/boot/loader.conf</filename>.
764+
These semaphore-related settings are read-only as far as
765+
<command>sysctl</command> is concerned, but can be set in
766+
<filename>/boot/loader.conf</filename>:
767+
<programlisting>
768+
kern.ipc.semmni=256
769+
kern.ipc.semmns=512
770+
kern.ipc.semmnu=256
771+
</programlisting>
772+
After modifying these values a reboot is required for the new
773+
settings to take effect.
774+
(Note: FreeBSD does not use <varname>SEMMAP</>. Older versions
775+
would accept but ignore a setting for <literal>kern.ipc.semmap</>;
776+
newer versions reject it altogether.)
775777
</para>
776778

777779
<para>

0 commit comments

Comments
 (0)