1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-02 11:44:50 +03:00

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 7a42dff47, which touches the same text and for some reason
was not back-patched at the time.
This commit is contained in:
Tom Lane 2014-08-14 16:05:55 -04:00
parent 054fc30965
commit c5e2333aaf

View File

@ -753,25 +753,27 @@ psql: could not connect to server: No such file or directory
<command>loader</command> interfaces. The following <command>loader</command> interfaces. The following
parameters can be set using <command>sysctl</command>: parameters can be set using <command>sysctl</command>:
<screen> <screen>
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.shmall=32768</userinput> <prompt>#</prompt> <userinput>sysctl kern.ipc.shmall=32768</userinput>
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.shmmax=134217728</userinput> <prompt>#</prompt> <userinput>sysctl kern.ipc.shmmax=134217728</userinput>
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.semmap=256</userinput>
</screen> </screen>
To have these settings persist over reboots, modify To make these settings persist over reboots, modify
<filename>/etc/sysctl.conf</filename>. <filename>/etc/sysctl.conf</filename>.
</para> </para>
<para> <para>
The remaining semaphore settings are read-only as far as These semaphore-related settings are read-only as far as
<command>sysctl</command> is concerned, but can be changed <command>sysctl</command> is concerned, but can be set in
before boot using the <command>loader</command> prompt: <filename>/boot/loader.conf</filename>:
<screen> <programlisting>
<prompt>(loader)</prompt> <userinput>set kern.ipc.semmni=256</userinput> kern.ipc.semmni=256
<prompt>(loader)</prompt> <userinput>set kern.ipc.semmns=512</userinput> kern.ipc.semmns=512
<prompt>(loader)</prompt> <userinput>set kern.ipc.semmnu=256</userinput> kern.ipc.semmnu=256
</screen> </programlisting>
Similarly these can be saved between reboots in After modifying these values a reboot is required for the new
<filename>/boot/loader.conf</filename>. settings to take effect.
(Note: FreeBSD does not use <varname>SEMMAP</>. Older versions
would accept but ignore a setting for <literal>kern.ipc.semmap</>;
newer versions reject it altogether.)
</para> </para>
<para> <para>