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