|
1 | 1 | <!-- |
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 $ |
3 | 3 | --> |
4 | 4 |
|
5 | 5 | <chapter Id="runtime"> |
@@ -878,27 +878,45 @@ sysctl -w kern.sysv.shmmni |
878 | 878 | sysctl -w kern.sysv.shmseg |
879 | 879 | sysctl -w kern.sysv.shmall |
880 | 880 | </programlisting> |
| 881 | + </para> |
| 882 | + |
| 883 | + <para> |
881 | 884 | In OS X 10.3 and later, these commands have been moved to |
882 | 885 | <filename>/etc/rc</> and must be edited there. Note that |
883 | 886 | <filename>/etc/rc</> is usually overwritten by OS X updates (such as |
884 | 887 | 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. |
887 | 911 | </para> |
888 | 912 |
|
889 | 913 | <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. |
895 | 915 | </para> |
896 | 916 |
|
897 | 917 | <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. |
902 | 920 | </para> |
903 | 921 | </listitem> |
904 | 922 | </varlistentry> |
|
0 commit comments