Skip to content

Commit 8ffdcbf

Browse files
committed
Add note that some versions of OS X require SHMMAX to be an exact multiple
of 4096. Also add comment explaining why we don't suggest using /etc/sysctl.conf to avoid needing to edit /etc/rc.
1 parent 649e74b commit 8ffdcbf

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.354 2005/10/15 20:12:33 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.355 2005/10/16 21:22:12 tgl Exp $
33
-->
44

55
<chapter Id="runtime">
@@ -879,14 +879,27 @@ sysctl -w kern.sysv.shmmni
879879
sysctl -w kern.sysv.shmseg
880880
sysctl -w kern.sysv.shmall
881881
</programlisting>
882-
In OS X 10.3, these commands have been moved to <filename>/etc/rc</>
883-
and must be edited there. You'll need to reboot to make changes
884-
take effect. Note that <filename>/etc/rc</> is usually
885-
overwritten by OS X updates (such as 10.3.6 to 10.3.7) so you
886-
should expect to have to redo your editing after each update.
882+
In OS X 10.3 and later, these commands have been moved to
883+
<filename>/etc/rc</> and must be edited there. Note that
884+
<filename>/etc/rc</> is usually overwritten by OS X updates (such as
885+
10.3.6 to 10.3.7) so you should expect to have to redo your editing
886+
after each update. In all versions, you'll need to reboot to make
887+
changes take effect.
887888
</para>
889+
890+
<!--
891+
It might appear that we could recommend putting sysctl settings into
892+
/etc/sysctl.conf so that they aren't destroyed by OS version updates.
893+
This does not work as of OS X 10.4.2, however, because /etc/rc
894+
promptly overrides whatever SHM settings are read from sysctl.conf :-(
895+
Perhaps someday we can recommend this ...
896+
-->
897+
888898
<para>
889899
<varname>SHMALL</> is measured in 4KB pages on this platform.
900+
Also note that some releases of OS X will reject attempts to
901+
set <varname>SHMMAX</> to a value that isn't an exact multiple
902+
of 4096.
890903
</para>
891904
</listitem>
892905
</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