331
331
332
332
<listitem>
333
333
<para>
334
- On <productname>NetBSD</productname>, either use the
334
+ On <productname>NetBSD</productname>, use either the
335
335
<productname>FreeBSD</productname> or
336
336
<productname>Linux</productname> start scripts, depending on
337
- preference. <indexterm><primary>NetBSD</><secondary>start script</secondary></>
337
+ preference.
338
+ <indexterm><primary>NetBSD</><secondary>start script</secondary></>
338
339
</para>
339
340
</listitem>
340
341
@@ -827,37 +828,63 @@ options "SEMMNS=240"
827
828
</para>
828
829
829
830
<para>
830
- <systemitem class="osname">FreeBSD</> versions before 4.0 work like
831
- <systemitem class="osname">NetBSD</> and <systemitem class="osname">
832
- OpenBSD</> (see below).
831
+ <systemitem class="osname">FreeBSD</> versions before 4.0 work like
832
+ <systemitem class="osname">OpenBSD</> (see below).
833
833
</para>
834
834
</listitem>
835
835
</varlistentry>
836
836
837
837
<varlistentry>
838
838
<term><systemitem class="osname">NetBSD</></term>
839
- <term><systemitem class="osname">OpenBSD</></term>
840
839
<indexterm><primary>NetBSD</><secondary>IPC configuration</></>
840
+ <listitem>
841
+ <para>
842
+ In <systemitem class="osname">NetBSD</> 5.0 and later,
843
+ IPC parameters can be adjusted using <command>sysctl</command>,
844
+ for example:
845
+ <screen>
846
+ <prompt>$</prompt> <userinput>sysctl -w kern.ipc.shmmax=16777216</userinput>
847
+ </screen>
848
+ To have these settings persist over reboots, modify
849
+ <filename>/etc/sysctl.conf</filename>.
850
+ </para>
851
+
852
+ <para>
853
+ You might also want to configure your kernel to lock shared
854
+ memory into RAM and prevent it from being paged out to swap.
855
+ This can be accomplished using the <command>sysctl</command>
856
+ setting <literal>kern.ipc.shm_use_phys</literal>.
857
+ </para>
858
+
859
+ <para>
860
+ <systemitem class="osname">NetBSD</> versions before 5.0 work like
861
+ <systemitem class="osname">OpenBSD</> (see below), except that
862
+ parameters should be set with the keyword <literal>options</> not
863
+ <literal>option</>.
864
+ </para>
865
+ </listitem>
866
+ </varlistentry>
867
+
868
+ <varlistentry>
869
+ <term><systemitem class="osname">OpenBSD</></term>
841
870
<indexterm><primary>OpenBSD</><secondary>IPC configuration</></>
842
871
<listitem>
843
872
<para>
844
873
The options <varname>SYSVSHM</> and <varname>SYSVSEM</> need
845
874
to be enabled when the kernel is compiled. (They are by
846
875
default.) The maximum size of shared memory is determined by
847
876
the option <varname>SHMMAXPGS</> (in pages). The following
848
- shows an example of how to set the various parameters on
849
- <systemitem class="osname">NetBSD</>
850
- (<systemitem class="osname">OpenBSD</> uses <literal>option</> instead):
877
+ shows an example of how to set the various parameters:
851
878
<programlisting>
852
- options SYSVSHM
853
- options SHMMAXPGS=4096
854
- options SHMSEG=256
855
-
856
- options SYSVSEM
857
- options SEMMNI=256
858
- options SEMMNS=512
859
- options SEMMNU=256
860
- options SEMMAP=256
879
+ option SYSVSHM
880
+ option SHMMAXPGS=4096
881
+ option SHMSEG=256
882
+
883
+ option SYSVSEM
884
+ option SEMMNI=256
885
+ option SEMMNS=512
886
+ option SEMMNU=256
887
+ option SEMMAP=256
861
888
</programlisting>
862
889
</para>
863
890
@@ -870,7 +897,6 @@ options SEMMAP=256
870
897
</listitem>
871
898
</varlistentry>
872
899
873
-
874
900
<varlistentry>
875
901
<term><systemitem class="osname">HP-UX</></term>
876
902
<indexterm><primary>HP-UX</><secondary>IPC configuration</></>
0 commit comments