1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.32 2000/11/08 17:57:45 petere Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.33 2000/11/10 16:32:09 tgl Exp $
3
3
-->
4
4
5
5
<Chapter Id="runtime">
@@ -1217,12 +1217,12 @@ env PGOPTIONS='-c geqo=off' psql
1217
1217
limits of the IPC resources then the postmaster will refuse to
1218
1218
start up and should leave a marginally instructive error message
1219
1219
about which problem was encountered and what needs to be done
1220
- about it. The relevant kernel parameters have a relatively
1221
- consistent nomenclature across systems; <xref
1220
+ about it. The relevant kernel parameters are named
1221
+ consistently across different systems; <xref
1222
1222
linkend="sysvipc-parameters"> gives an overview. The methods to
1223
1223
set them, however, vary; suggestions for some platforms are given
1224
- below. Be aware, however, that you will have to reboot your
1225
- machine at best, or possibly recompile the kernel, to change these
1224
+ below. Be aware that you will have to reboot your
1225
+ machine at least, possibly even recompile the kernel, to change these
1226
1226
settings.
1227
1227
</para>
1228
1228
@@ -1255,7 +1255,7 @@ env PGOPTIONS='-c geqo=off' psql
1255
1255
<row>
1256
1256
<entry><varname>SHMSEG</></>
1257
1257
<entry>Maximum number of shared memory segments per process</>
1258
- <entry>Must be at least 3, but the default is much higher. </>
1258
+ <entry>must be at least 3, but the default is much higher</>
1259
1259
</row>
1260
1260
1261
1261
<row>
@@ -1267,13 +1267,13 @@ env PGOPTIONS='-c geqo=off' psql
1267
1267
<row>
1268
1268
<entry><varname>SEMMNI</></>
1269
1269
<entry>Maximum number of semaphore identifiers (i.e., sets)</>
1270
- <entry>>= ceil(max_connections % 16)</>
1270
+ <entry>>= ceil(max_connections / 16)</>
1271
1271
</row>
1272
1272
1273
1273
<row>
1274
1274
<entry><varname>SEMMNS</></>
1275
1275
<entry>Maximum number of semaphores system-wide</>
1276
- <entry>number of allowed connections, rounded up to multiple of 16</>
1276
+ <entry>max_connections rounded up to multiple of 16, + room for other applications </>
1277
1277
</row>
1278
1278
1279
1279
<row>
@@ -1337,7 +1337,7 @@ env PGOPTIONS='-c geqo=off' psql
1337
1337
The parameter <varname>SEMMNI</> determines the limit on the
1338
1338
number of semaphore sets that can exist on the system at one time.
1339
1339
Hence this parameter must be at least
1340
- <literal>ceil(max_connections % 16)</>. Lowering the number of
1340
+ <literal>ceil(max_connections / 16)</>. Lowering the number of
1341
1341
allowed connections is a temporary workaround for failures, which
1342
1342
are usually confusingly worded <quote><errorname>No space left on
1343
1343
device</></>, from the function <function>semget()</>.
@@ -1351,7 +1351,7 @@ env PGOPTIONS='-c geqo=off' psql
1351
1351
semaphores needs an entry. When a semaphore set is freed it is
1352
1352
either added to an existing entry that is adjacent to the freed
1353
1353
block or it is registered under a new map entry. If the map is
1354
- full, the freed semaphores gets lost (until reboot). Fragmentation
1354
+ full, the freed semaphores get lost (until reboot). Fragmentation
1355
1355
of the semaphore space could therefore over time lead to less
1356
1356
available semaphores than there should be.
1357
1357
</para>
@@ -1363,9 +1363,9 @@ env PGOPTIONS='-c geqo=off' psql
1363
1363
</para>
1364
1364
1365
1365
<para>
1366
- Various settings related to <quote>semaphore undo</>, such as
1367
- <varname>SEMMNU</> and <varname>SEMUME</>, are not of relevance
1368
- with <productname>Postgres</>.
1366
+ Various other settings related to <quote>semaphore undo</>, such as
1367
+ <varname>SEMMNU</> and <varname>SEMUME</>, are not of concern
1368
+ for <productname>Postgres</>.
1369
1369
</para>
1370
1370
1371
1371
@@ -1386,7 +1386,7 @@ env PGOPTIONS='-c geqo=off' psql
1386
1386
<programlisting>
1387
1387
/sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages... */
1388
1388
</programlisting>
1389
- The default setting of 1024 is for a maximum of 4 MB of shared
1389
+ The default setting of 1024 provides a maximum of 4 MB of shared
1390
1390
memory.
1391
1391
</para>
1392
1392
</formalpara>
@@ -1457,7 +1457,7 @@ options "SEMMNU=120"
1457
1457
to be enabled when the kernel is compiled. (They are by
1458
1458
default.) The maximum size of shared memory is determined by
1459
1459
the option <varname>SHMMAXPGS</> (in pages). The following
1460
- shows an example on how to set the various parameters:
1460
+ shows an example of how to set the various parameters:
1461
1461
<programlisting>
1462
1462
options SYSVSHM
1463
1463
options SHMMAXPGS=4096
0 commit comments