Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83c461e

Browse files
committed
Update information about configuring SysV IPC parameters on NetBSD.
Per Emmanuel Kasper, sysctl works fine as of NetBSD 5.0.
1 parent33dcc3e commit83c461e

File tree

1 file changed

+45
-19
lines changed

1 file changed

+45
-19
lines changed

‎doc/src/sgml/runtime.sgml

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,11 @@ fi
331331

332332
<listitem>
333333
<para>
334-
On <productname>NetBSD</productname>,eitheruse the
334+
On <productname>NetBSD</productname>, use either the
335335
<productname>FreeBSD</productname> or
336336
<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></>
338339
</para>
339340
</listitem>
340341

@@ -827,37 +828,63 @@ options "SEMMNS=240"
827828
</para>
828829

829830
<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).
833833
</para>
834834
</listitem>
835835
</varlistentry>
836836

837837
<varlistentry>
838838
<term><systemitem class="osname">NetBSD</></term>
839-
<term><systemitem class="osname">OpenBSD</></term>
840839
<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>
841870
<indexterm><primary>OpenBSD</><secondary>IPC configuration</></>
842871
<listitem>
843872
<para>
844873
The options <varname>SYSVSHM</> and <varname>SYSVSEM</> need
845874
to be enabled when the kernel is compiled. (They are by
846875
default.) The maximum size of shared memory is determined by
847876
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:
851878
<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
861888
</programlisting>
862889
</para>
863890

@@ -870,7 +897,6 @@ options SEMMAP=256
870897
</listitem>
871898
</varlistentry>
872899

873-
874900
<varlistentry>
875901
<term><systemitem class="osname">HP-UX</></term>
876902
<indexterm><primary>HP-UX</><secondary>IPC configuration</></>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp