11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.51 2001/02/15 04:28:50 tgl Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.52 2001/02/16 16:10:06 momjian Exp $
33-->
44
55<Chapter Id="runtime">
@@ -1536,14 +1536,13 @@ env PGOPTIONS='-c geqo=off' psql
15361536 <para>
15371537 By default, only 4 MB of shared memory is supported. Keep in
15381538 mind that shared memory is not pageable; it is locked in RAM.
1539- To increase the number of buffers supported by the
1540- postmaster, increase <varname>SHMMAXPGS </>by 1024for every
1541- additional 4 MB of shared memory :
1539+ To increase the number of buffers supported by the postmaseter, add the
1540+ following to your kernel config file. A <varname>SHMALL </>value of 1024
1541+ represents 4MB of shared memory. Increase it accordingly :
15421542<programlisting>
1543- /sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages... */
1543+ options "SHMALL=4096"
1544+ options "SHMMAX=\(SHMALL*PAGE_SIZE\)"
15441545</programlisting>
1545- The default setting of 1024 provides a maximum of 4 MB of shared
1546- memory.
15471546 </para>
15481547 </formalpara>
15491548
@@ -1561,7 +1560,7 @@ $ <userinput>bpatch -r sysptsize</>
15611560 the bpatch value, plus add 1 for every additional 4 MB of
15621561 shared memory you desire.
15631562<programlisting>
1564- /sys/i386/i386/i386_param.c:28:#define SYSPTSIZE 0 /* dynamically... */
1563+ options " SYSPTSIZE=13"
15651564</programlisting>
15661565 <varname>sysptsize</> can not be changed by sysctl on the fly.
15671566 </para>