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

Commit05f0308

Browse files
committed
Update our information about OS X shared memory configuration: it's now
possible to set most of the SHM kernel parameters without a reboot.Also, reorder the paragraph to explain the modern configuration method first.There are probably not too many people who still care about how to do it onOS X 10.3 or older.
1 parent854b5eb commit05f0308

File tree

1 file changed

+32
-28
lines changed

1 file changed

+32
-28
lines changed

‎doc/src/sgml/runtime.sgml

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.434 2010/04/08 01:39:37 rhaas Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.435 2010/04/30 22:24:50 tgl Exp $ -->
22

33
<chapter Id="runtime">
44
<title>Server Setup and Operation</title>
@@ -942,29 +942,8 @@ options SEMMAP=256
942942
<indexterm><primary>MacOS X</><secondary>IPC configuration</></>
943943
<listitem>
944944
<para>
945-
In OS X 10.2 and earlier, edit the file
946-
<filename>/System/Library/StartupItems/SystemTuning/SystemTuning</>
947-
and change the values in the following commands:
948-
<programlisting>
949-
sysctl -w kern.sysv.shmmax
950-
sysctl -w kern.sysv.shmmin
951-
sysctl -w kern.sysv.shmmni
952-
sysctl -w kern.sysv.shmseg
953-
sysctl -w kern.sysv.shmall
954-
</programlisting>
955-
</para>
956-
957-
<para>
958-
In OS X 10.3 and later, these commands have been moved to
959-
<filename>/etc/rc</> and must be edited there. Note that
960-
<filename>/etc/rc</> is usually overwritten by OS X updates (such as
961-
10.3.6 to 10.3.7) so you should expect to have to redo your edits
962-
after each update.
963-
</para>
964-
965-
<para>
966-
In OS X 10.3.9 and later, instead of editing <filename>/etc/rc</>
967-
you can create a file named <filename>/etc/sysctl.conf</>,
945+
The recommended method for configuring shared memory in OS X
946+
is to create a file named <filename>/etc/sysctl.conf</>,
968947
containing variable assignments such as:
969948
<programlisting>
970949
kern.sysv.shmmax=4194304
@@ -973,8 +952,7 @@ kern.sysv.shmmni=32
973952
kern.sysv.shmseg=8
974953
kern.sysv.shmall=1024
975954
</programlisting>
976-
This method is better than editing <filename>/etc/rc</> because
977-
your changes will be preserved across system updates. Note that
955+
Note that in some OS X versions,
978956
<emphasis>all five</> shared-memory parameters must be set in
979957
<filename>/etc/sysctl.conf</>, else the values will be ignored.
980958
</para>
@@ -989,8 +967,34 @@ kern.sysv.shmall=1024
989967
</para>
990968

991969
<para>
992-
In all OS X versions, you will need to reboot to have changes in the
993-
shared memory parameters take effect.
970+
In older OS X versions, you will need to reboot to have changes in the
971+
shared memory parameters take effect. As of 10.5 it is possible to
972+
change all but <varname>SHMMNI</> on the fly, using
973+
<application>sysctl</>. But it's still best to set up your preferred
974+
values via <filename>/etc/sysctl.conf</>, so that the values will be
975+
kept across reboots.
976+
</para>
977+
978+
<para>
979+
The file <filename>/etc/sysctl.conf</> is only honored in OS X
980+
10.3.9 and later. If you are running a previous 10.3.x release,
981+
you must edit the file <filename>/etc/rc</>
982+
and change the values in the following commands:
983+
<programlisting>
984+
sysctl -w kern.sysv.shmmax
985+
sysctl -w kern.sysv.shmmin
986+
sysctl -w kern.sysv.shmmni
987+
sysctl -w kern.sysv.shmseg
988+
sysctl -w kern.sysv.shmall
989+
</programlisting>
990+
Note that
991+
<filename>/etc/rc</> is usually overwritten by OS X system updates,
992+
so you should expect to have to redo these edits after each update.
993+
</para>
994+
995+
<para>
996+
In OS X 10.2 and earlier, instead edit these commands in the file
997+
<filename>/System/Library/StartupItems/SystemTuning/SystemTuning</>.
994998
</para>
995999
</listitem>
9961000
</varlistentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp