mirror of
https://github.com/postgres/postgres.git
synced 2025-05-14 00:03:46 -04:00
Update information about configuring SysV IPC parameters on NetBSD.
Per Emmanuel Kasper, sysctl works fine as of NetBSD 5.0.
This commit is contained in:
parent
b06231a974
commit
50be28d2ac
@ -315,10 +315,11 @@ fi
|
|||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
On <productname>NetBSD</productname>, either use the
|
On <productname>NetBSD</productname>, use either the
|
||||||
<productname>FreeBSD</productname> or
|
<productname>FreeBSD</productname> or
|
||||||
<productname>Linux</productname> start scripts, depending on
|
<productname>Linux</productname> start scripts, depending on
|
||||||
preference. <indexterm><primary>NetBSD</><secondary>start script</secondary></>
|
preference.
|
||||||
|
<indexterm><primary>NetBSD</><secondary>start script</secondary></>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
@ -830,16 +831,44 @@ options "SEMMNS=240"
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
<systemitem class="osname">FreeBSD</> versions before 4.0 work like
|
<systemitem class="osname">FreeBSD</> versions before 4.0 work like
|
||||||
<systemitem class="osname">NetBSD</> and <systemitem class="osname">
|
<systemitem class="osname">OpenBSD</> (see below).
|
||||||
OpenBSD</> (see below).
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><systemitem class="osname">NetBSD</></term>
|
<term><systemitem class="osname">NetBSD</></term>
|
||||||
<term><systemitem class="osname">OpenBSD</></term>
|
|
||||||
<indexterm><primary>NetBSD</><secondary>IPC configuration</></>
|
<indexterm><primary>NetBSD</><secondary>IPC configuration</></>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
In <systemitem class="osname">NetBSD</> 5.0 and later,
|
||||||
|
IPC parameters can be adjusted using <command>sysctl</command>,
|
||||||
|
for example:
|
||||||
|
<screen>
|
||||||
|
<prompt>$</prompt> <userinput>sysctl -w kern.ipc.shmmax=16777216</userinput>
|
||||||
|
</screen>
|
||||||
|
To have these settings persist over reboots, modify
|
||||||
|
<filename>/etc/sysctl.conf</filename>.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
You might also want to configure your kernel to lock shared
|
||||||
|
memory into RAM and prevent it from being paged out to swap.
|
||||||
|
This can be accomplished using the <command>sysctl</command>
|
||||||
|
setting <literal>kern.ipc.shm_use_phys</literal>.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<systemitem class="osname">NetBSD</> versions before 5.0 work like
|
||||||
|
<systemitem class="osname">OpenBSD</> (see below), except that
|
||||||
|
parameters should be set with the keyword <literal>options</> not
|
||||||
|
<literal>option</>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><systemitem class="osname">OpenBSD</></term>
|
||||||
<indexterm><primary>OpenBSD</><secondary>IPC configuration</></>
|
<indexterm><primary>OpenBSD</><secondary>IPC configuration</></>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
@ -847,18 +876,17 @@ options "SEMMNS=240"
|
|||||||
to be enabled when the kernel is compiled. (They are by
|
to be enabled when the kernel is compiled. (They are by
|
||||||
default.) The maximum size of shared memory is determined by
|
default.) The maximum size of shared memory is determined by
|
||||||
the option <varname>SHMMAXPGS</> (in pages). The following
|
the option <varname>SHMMAXPGS</> (in pages). The following
|
||||||
shows an example of how to set the various parameters
|
shows an example of how to set the various parameters:
|
||||||
(<systemitem class="osname">OpenBSD</> uses <literal>option</> instead):
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
options SYSVSHM
|
option SYSVSHM
|
||||||
options SHMMAXPGS=4096
|
option SHMMAXPGS=4096
|
||||||
options SHMSEG=256
|
option SHMSEG=256
|
||||||
|
|
||||||
options SYSVSEM
|
option SYSVSEM
|
||||||
options SEMMNI=256
|
option SEMMNI=256
|
||||||
options SEMMNS=512
|
option SEMMNS=512
|
||||||
options SEMMNU=256
|
option SEMMNU=256
|
||||||
options SEMMAP=256
|
option SEMMAP=256
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@ -871,7 +899,6 @@ options SEMMAP=256
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><systemitem class="osname">HP-UX</></term>
|
<term><systemitem class="osname">HP-UX</></term>
|
||||||
<indexterm><primary>HP-UX</><secondary>IPC configuration</></>
|
<indexterm><primary>HP-UX</><secondary>IPC configuration</></>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user