1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.423 2008/12/16 19:30:43 alvherre Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.424 2008/12/18 17:03:09 momjian Exp $ -->
2
2
3
3
<chapter Id="runtime">
4
4
<title>Operating System Environment</title>
@@ -1080,41 +1080,45 @@ set semsys:seminfo_semmsl=32
1080
1080
1081
1081
1082
1082
<table id="shared-memory-parameters">
1083
- <title>Configuration parameters affecting
1084
- <productname>PostgreSQL</productname>'s shared memory usage</>
1083
+ <title><productname>PostgreSQL</productname> shared memory usage</>
1085
1084
1086
1085
<tgroup cols="2">
1087
1086
<thead>
1088
1087
<row>
1089
- <entry>Name </>
1090
- <entry>Approximate multiplier ( bytes per increment) as of 8.3</>
1088
+ <entry>Usage </>
1089
+ <entry>Approximate shared memory bytes required ( as of 8.3) </>
1091
1090
</row>
1092
1091
</thead>
1093
1092
1094
1093
<tbody>
1095
1094
<row>
1096
- <entry><xref linkend="guc-max-connections"></>
1097
- <entry>1800 + 270 * <xref linkend="guc-max-locks-per-transaction"></entry>
1095
+ <entry>Connections</>
1096
+ <entry>(1800 + 270 * <xref
1097
+ linkend="guc-max-locks-per-transaction">) * <xref
1098
+ linkend="guc-max-connections"></entry>
1098
1099
</row>
1099
1100
1100
1101
<row>
1101
- <entry><xref linkend="guc-autovacuum-max-workers"></>
1102
- <entry>1800 + 270 * <xref linkend="guc-max-locks-per-transaction"></entry>
1102
+ <entry>Autovacuum workers</>
1103
+ <entry>(1800 + 270 * <xref
1104
+ linkend="guc-max-locks-per-transaction">) * <xref
1105
+ linkend="guc-autovacuum-max-workers"></entry>
1103
1106
</row>
1104
1107
1105
1108
<row>
1106
- <entry><xref linkend="guc-max-prepared-transactions"></>
1107
- <entry>770 + 270 * <xref linkend="guc-max-locks-per-transaction"></entry>
1109
+ <entry>Prepared transactions</>
1110
+ <entry>(770 + 270 * <xref
1111
+ linkend="guc-max-locks-per-transaction">) * <xref linkend="guc-max-prepared-transactions"></entry>
1108
1112
</row>
1109
1113
1110
1114
<row>
1111
- <entry><xref linkend="guc-shared- buffers"> </>
1112
- <entry>8400 (assuming 8 kB <symbol>BLCKSZ</>) </entry>
1115
+ <entry>Shared disk buffers</>
1116
+ <entry>(<xref linkend="guc-block-size"> + 208) * <xref linkend="guc-shared-buffers"> </entry>
1113
1117
</row>
1114
1118
1115
1119
<row>
1116
- <entry><xref linkend="guc-wal- buffers"> </>
1117
- <entry>8200 (assuming 8 kB <symbol>XLOG_BLCKSZ</>) </entry>
1120
+ <entry>WAL buffers</>
1121
+ <entry>(<xref linkend="guc-wal-block-size"> + 8) * <xref linkend="guc-wal-buffers"> </entry>
1118
1122
</row>
1119
1123
1120
1124
<row>
@@ -1125,18 +1129,8 @@ set semsys:seminfo_semmsl=32
1125
1129
</tgroup>
1126
1130
</table>
1127
1131
1128
- <note>
1129
- <para>
1130
- The multipliers for <varname>shared_buffers</> and
1131
- <varname>wal_buffers</> should be the number of buffers, not the
1132
- amount in bytes. To find out the number of shared or wal buffers, divide
1133
- the amount in bytes by <xref linkend="guc-block-size"> and
1134
- <xref linkend="guc-wal-block-size">, respectively.
1135
- </para>
1136
- </note>
1137
1132
</sect2>
1138
1133
1139
-
1140
1134
<sect2>
1141
1135
<title>Resource Limits</title>
1142
1136
0 commit comments