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>
970949kern.sysv.shmmax=4194304
@@ -973,8 +952,7 @@ kern.sysv.shmmni=32
973952kern.sysv.shmseg=8
974953kern.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>