285
285
286
286
<listitem>
287
287
<para>
288
- On <productname>NetBSD</productname>,either use the
288
+ On <productname>NetBSD</productname>, use either the
289
289
<productname>FreeBSD</productname> or
290
290
<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></>
292
293
</para>
293
294
</listitem>
294
295
@@ -776,36 +777,63 @@ options "SEMMNS=240"
776
777
</para>
777
778
778
779
<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).
782
782
</para>
783
783
</listitem>
784
784
</varlistentry>
785
785
786
786
<varlistentry>
787
787
<term><systemitem class="osname">NetBSD</></term>
788
- <term><systemitem class="osname">OpenBSD</></term>
789
788
<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>
790
819
<indexterm><primary>OpenBSD</><secondary>IPC configuration</></>
791
820
<listitem>
792
821
<para>
793
822
The options <varname>SYSVSHM</> and <varname>SYSVSEM</> need
794
823
to be enabled when the kernel is compiled. (They are by
795
824
default.) The maximum size of shared memory is determined by
796
825
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:
799
827
<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
809
837
</programlisting>
810
838
</para>
811
839
@@ -818,7 +846,6 @@ options SEMMAP=256
818
846
</listitem>
819
847
</varlistentry>
820
848
821
-
822
849
<varlistentry>
823
850
<term><systemitem class="osname">HP-UX</></term>
824
851
<indexterm><primary>HP-UX</><secondary>IPC configuration</></>