Content-Length: 312393 | pFad | http://github.com/postgrespro/postgres/commit/82ce2fe7e627c512f5a187f1cd5d6bcd47786fa1

4D Update SysV parameter configuration documentation for FreeBSD. · postgrespro/postgres@82ce2fe · GitHub
Skip to content

Commit 82ce2fe

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 4b1812b commit 82ce2fe

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
@@ -794,25 +794,27 @@ options "SEMMNS=240"
794794
<command>loader</command> interfaces. The following
795795
parameters can be set using <command>sysctl</command>:
796796
<screen>
797-
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.shmall=32768</userinput>
798-
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.shmmax=134217728</userinput>
799-
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.semmap=256</userinput>
797+
<prompt>#</prompt> <userinput>sysctl kern.ipc.shmall=32768</userinput>
798+
<prompt>#</prompt> <userinput>sysctl kern.ipc.shmmax=134217728</userinput>
800799
</screen>
801-
To have these settings persist over reboots, modify
800+
To make these settings persist over reboots, modify
802801
<filename>/etc/sysctl.conf</filename>.
803802
</para>
804803

805804
<para>
806-
The remaining semaphore settings are read-only as far as
807-
<command>sysctl</command> is concerned, but can be changed
808-
before boot using the <command>loader</command> prompt:
809-
<screen>
810-
<prompt>(loader)</prompt> <userinput>set kern.ipc.semmni=256</userinput>
811-
<prompt>(loader)</prompt> <userinput>set kern.ipc.semmns=512</userinput>
812-
<prompt>(loader)</prompt> <userinput>set kern.ipc.semmnu=256</userinput>
813-
</screen>
814-
Similarly these can be saved between reboots in
815-
<filename>/boot/loader.conf</filename>.
805+
These semaphore-related settings are read-only as far as
806+
<command>sysctl</command> is concerned, but can be set in
807+
<filename>/boot/loader.conf</filename>:
808+
<programlisting>
809+
kern.ipc.semmni=256
810+
kern.ipc.semmns=512
811+
kern.ipc.semmnu=256
812+
</programlisting>
813+
After modifying these values a reboot is required for the new
814+
settings to take effect.
815+
(Note: FreeBSD does not use <varname>SEMMAP</>. Older versions
816+
would accept but ignore a setting for <literal>kern.ipc.semmap</>;
817+
newer versions reject it altogether.)
816818
</para>
817819

818820
<para>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/82ce2fe7e627c512f5a187f1cd5d6bcd47786fa1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy