8000 Update information about configuring SysV IPC parameters on NetBSD. · sqlparser/postgres@0564f62 · GitHub
[go: up one dir, main page]

Skip to content
  • Commit 0564f62

    Browse files
    committed
    Update information about configuring SysV IPC parameters on NetBSD.
    Per Emmanuel Kasper, sysctl works fine as of NetBSD 5.0.
    1 parent d3050de commit 0564f62

    File tree

    1 file changed

    +45
    -18
    lines changed

    1 file changed

    +45
    -18
    lines changed

    doc/src/sgml/runtime.sgml

    Lines changed: 45 additions & 18 deletions
    Original file line numberDiff line numberDiff line change
    @@ -285,10 +285,11 @@ fi
    285285

    286286
    <listitem>
    287287
    <para>
    288-
    On <productname>NetBSD</productname>, either use the
    288+
    On <productname>NetBSD</productname>, use either the
    289289
    <productname>FreeBSD</productname> or
    290290
    <productname>Linux</productname> start scripts, depending on
    291-
    preference. <indexterm><primary>NetBSD</><secondary>start script</secondary></>
    291+
    preference.
    292+
    <indexterm><primary>NetBSD</><secondary>start script</secondary></>
    292293
    </para>
    293294
    </listitem>
    294295

    @@ -776,36 +777,63 @@ options "SEMMNS=240"
    776777
    </para>
    777778

    778779
    <para>
    779-
    <systemitem class="osname">FreeBSD</> versions before 4.0 work like
    780-
    <systemitem class="osname">NetBSD</> and <systemitem class="osname">
    781-
    OpenBSD</> (see below).
    780+
    <systemitem class="osname">FreeBSD</> versions before 4.0 work like
    781+
    <systemitem class="osname">OpenBSD</> (see below).
    782782
    </para>
    783783
    </listitem>
    784784
    </varlistentry>
    785785

    786786
    <varlistentry>
    787787
    <term><systemitem class="osname">NetBSD</></term>
    788-
    <term><systemitem class="osname">OpenBSD</></term>
    789788
    <indexterm><primary>NetBSD</><secondary>IPC configuration</></>
    789+
    <listitem>
    790+
    <para>
    791+
    In <systemitem class="osname">NetBSD</> 5.0 and later,
    792+
    IPC parameters can be adjusted using <command>sysctl</command>,
    793+
    for example:
    794+
    <screen>
    795+
    <prompt>$</prompt> <userinput>sysctl -w kern.ipc.shmmax=16777216</userinput>
    796+
    </screen>
    797+
    To have these settings persist over reboots, modify
    798+
    <filename>/etc/sysctl.conf</filename>.
    799+
    </para>
    800+
    801+
    <para>
    802+
    You might also want to configure your kernel to lock shared
    803+
    memory into RAM and prevent it from being paged out to swap.
    804+
    This can be accomplished using the <command>sysctl</command>
    805+
    setting <literal>kern.ipc.shm_use_phys</literal>.
    806+
    </para>
    807+
    808+
    <para>
    809+
    <systemitem class="osname">NetBSD</> versions before 5.0 work like
    810+
    <systemitem class="osname">OpenBSD</> (see below), except that
    811+
    parameters should be set with the keyword <literal>options</> not
    812+
    <literal>option</>.
    813+
    </para>
    814+
    </listitem>
    815+
    </varlistentry>
    816+
    817+
    <varlistentry>
    818+
    <term><systemitem class="osname">OpenBSD</></term>
    790819
    <indexterm><primary>OpenBSD</><secondary>IPC configuration</></>
    791820
    <listitem>
    792821
    <para>
    793822
    The options <varname>SYSVSHM</> and <varname>SYSVSEM</> need
    794823
    to be enabled when the kernel is compiled. (They are by
    795824
    default.) The maximum size of shared memory is determined by
    796825
    the option <varname>SHMMAXPGS</> (in pages). The following
    797-
    shows an example of how to set the various parameters
    798-
    (<systemitem class="osname">OpenBSD</> uses <literal>option</> instead):
    826+
    shows an example of how to set the various parameters:
    799827
    <programlisting>
    800-
    options SYSVSHM
    801-
    options SHMMAXPGS=4096
    802-
    options SHMSEG=256
    803-
    804-
    options SYSVSEM
    805-
    options SEMMNI=256
    806-
    options SEMMNS=512
    807-
    options SEMMNU=256
    808-
    options SEMMAP=256
    828+
    option SYSVSHM
    829+
    option SHMMAXPGS=4096
    830+
    option SHMSEG=256
    831+
    832+
    option SYSVSEM
    833+
    option SEMMNI=256
    834+
    option SEMMNS=512
    835+
    option SEMMNU=256
    836+
    option SEMMAP=256
    809837
    </programlisting>
    810838
    </para>
    811839

    @@ -818,7 +846,6 @@ options SEMMAP=256
    818846
    </listitem>
    819847
    </varlistentry>
    820848

    821-
    822849
    <varlistentry>
    823850
    <term><systemitem class="osname">HP-UX</></term>
    824851
    <indexterm><primary>HP-UX</><secondary>IPC configuration</></>

    0 commit comments

    Comments
     (0)
    0