File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Bruce Momjian (pgman@candle.pha.pa.us) 2000-07-7
11
11
1) To increase the amount of malloc'ed memory and files opened by
12
12
PostgreSQL, add this:
13
13
14
- :datasize-cur=600M :\
14
+ :datasize-cur=256M :\
15
15
:openfiles-cur=256:
16
16
17
17
to your /etc/login.conf file.
Original file line number Diff line number Diff line change 1
1
<!--
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 $
3
3
-->
4
4
5
5
<Chapter Id="runtime">
@@ -1536,14 +1536,13 @@ env PGOPTIONS='-c geqo=off' psql
1536
1536
<para>
1537
1537
By default, only 4 MB of shared memory is supported. Keep in
1538
1538
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 1024 for 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 :
1542
1542
<programlisting>
1543
- /sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages... */
1543
+ options "SHMALL=4096"
1544
+ options "SHMMAX=\(SHMALL*PAGE_SIZE\)"
1544
1545
</programlisting>
1545
- The default setting of 1024 provides a maximum of 4 MB of shared
1546
- memory.
1547
1546
</para>
1548
1547
</formalpara>
1549
1548
@@ -1561,7 +1560,7 @@ $ <userinput>bpatch -r sysptsize</>
1561
1560
the bpatch value, plus add 1 for every additional 4 MB of
1562
1561
shared memory you desire.
1563
1562
<programlisting>
1564
- /sys/i386/i386/i386_param.c:28:#define SYSPTSIZE 0 /* dynamically... */
1563
+ options " SYSPTSIZE=13"
1565
1564
</programlisting>
1566
1565
<varname>sysptsize</> can not be changed by sysctl on the fly.
1567
1566
</para>
You can’t perform that action at this time.
0 commit comments