Commit cee63eab authored by Bruce Momjian's avatar Bruce Momjian

Update documentation table describing how shared memory is used by

various facilities.
parent a666d285
<!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.423 2008/12/16 19:30:43 alvherre Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.424 2008/12/18 17:03:09 momjian Exp $ -->
<chapter Id="runtime"> <chapter Id="runtime">
<title>Operating System Environment</title> <title>Operating System Environment</title>
...@@ -1080,41 +1080,45 @@ set semsys:seminfo_semmsl=32 ...@@ -1080,41 +1080,45 @@ set semsys:seminfo_semmsl=32
<table id="shared-memory-parameters"> <table id="shared-memory-parameters">
<title>Configuration parameters affecting <title><productname>PostgreSQL</productname> shared memory usage</>
<productname>PostgreSQL</productname>'s shared memory usage</>
<tgroup cols="2"> <tgroup cols="2">
<thead> <thead>
<row> <row>
<entry>Name</> <entry>Usage</>
<entry>Approximate multiplier (bytes per increment) as of 8.3</> <entry>Approximate shared memory bytes required (as of 8.3)</>
</row> </row>
</thead> </thead>
<tbody> <tbody>
<row> <row>
<entry><xref linkend="guc-max-connections"></> <entry>Connections</>
<entry>1800 + 270 * <xref linkend="guc-max-locks-per-transaction"></entry> <entry>(1800 + 270 * <xref
linkend="guc-max-locks-per-transaction">) * <xref
linkend="guc-max-connections"></entry>
</row> </row>
<row> <row>
<entry><xref linkend="guc-autovacuum-max-workers"></> <entry>Autovacuum workers</>
<entry>1800 + 270 * <xref linkend="guc-max-locks-per-transaction"></entry> <entry>(1800 + 270 * <xref
linkend="guc-max-locks-per-transaction">) * <xref
linkend="guc-autovacuum-max-workers"></entry>
</row> </row>
<row> <row>
<entry><xref linkend="guc-max-prepared-transactions"></> <entry>Prepared transactions</>
<entry>770 + 270 * <xref linkend="guc-max-locks-per-transaction"></entry> <entry>(770 + 270 * <xref
linkend="guc-max-locks-per-transaction">) * <xref linkend="guc-max-prepared-transactions"></entry>
</row> </row>
<row> <row>
<entry><xref linkend="guc-shared-buffers"></> <entry>Shared disk buffers</>
<entry>8400 (assuming 8 kB <symbol>BLCKSZ</>)</entry> <entry>(<xref linkend="guc-block-size"> + 208) * <xref linkend="guc-shared-buffers"></entry>
</row> </row>
<row> <row>
<entry><xref linkend="guc-wal-buffers"></> <entry>WAL buffers</>
<entry>8200 (assuming 8 kB <symbol>XLOG_BLCKSZ</>)</entry> <entry>(<xref linkend="guc-wal-block-size"> + 8) * <xref linkend="guc-wal-buffers"></entry>
</row> </row>
<row> <row>
...@@ -1125,18 +1129,8 @@ set semsys:seminfo_semmsl=32 ...@@ -1125,18 +1129,8 @@ set semsys:seminfo_semmsl=32
</tgroup> </tgroup>
</table> </table>
<note>
<para>
The multipliers for <varname>shared_buffers</> and
<varname>wal_buffers</> should be the number of buffers, not the
amount in bytes. To find out the number of shared or wal buffers, divide
the amount in bytes by <xref linkend="guc-block-size"> and
<xref linkend="guc-wal-block-size">, respectively.
</para>
</note>
</sect2> </sect2>
<sect2> <sect2>
<title>Resource Limits</title> <title>Resource Limits</title>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment