Skip to content

Commit c1bb287

Browse files
committed
Improve OS X shared-memory documentation: fix typos and provide a usable
example of /etc/sysctl.conf contents.
1 parent 5b8ac71 commit c1bb287

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.363 2006/03/04 03:47:29 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.364 2006/03/05 03:50:44 tgl Exp $
33
-->
44

55
<chapter Id="runtime">
@@ -878,27 +878,45 @@ sysctl -w kern.sysv.shmmni
878878
sysctl -w kern.sysv.shmseg
879879
sysctl -w kern.sysv.shmall
880880
</programlisting>
881+
</para>
882+
883+
<para>
881884
In OS X 10.3 and later, these commands have been moved to
882885
<filename>/etc/rc</> and must be edited there. Note that
883886
<filename>/etc/rc</> is usually overwritten by OS X updates (such as
884887
10.3.6 to 10.3.7) so you should expect to have to redo your editing
885-
after each update. In all versions, you'll need to reboot to make
886-
changes take effect.
888+
after each update.
889+
</para>
890+
891+
<para>
892+
In OS X 10.3.9 and later, instead of editing <filename>/etc/rc</>
893+
you may create a file named <filename>/etc/sysctl.conf</>,
894+
containing variable assignments such as
895+
<programlisting>
896+
kern.sysv.shmmax=4194304
897+
kern.sysv.shmmin=1
898+
kern.sysv.shmmni=32
899+
kern.sysv.shmseg=8
900+
kern.sysv.shmall=1024
901+
</programlisting>
902+
This method is better than editing <filename>/etc/rc</> because
903+
your changes will be preserved across system updates. Note that
904+
<emphasis>all five</> shared-memory parameters must be set in
905+
<filename>/etc/sysctl.conf</>, else the values will be ignored.
906+
</para>
907+
908+
<para>
909+
Beware that recent releases of OS X ignore attempts to set
910+
<varname>SHMMAX</> to a value that isn't an exact multiple of 4096.
887911
</para>
888912

889913
<para>
890-
In OS X 10.3.9 and later, the file <filename>/etc/sysctl.conf</>
891-
allows shared memory setting to be saved across operating system
892-
upgrades, and is the recommended method for setting these
893-
parameters. When using this file, all five shared memory values
894-
must be set or the changes will be ignored.
914+
<varname>SHMALL</> is measured in 4KB pages on this platform.
895915
</para>
896916

897917
<para>
898-
<varname>SHMALL</> is measured in 4KB pages on this platform,
899-
and recent releases of OS X reject attempts to set
900-
and <varname>SHMMAX</> to a value that isn't an exact
901-
multiple of 4096.
918+
In all OS X versions, you'll need to reboot to make changes in the
919+
shared memory parameters take effect.
902920
</para>
903921
</listitem>
904922
</varlistentry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy