11<!--
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 $
33-->
44
55<Chapter Id="runtime">
@@ -1217,12 +1217,12 @@ env PGOPTIONS='-c geqo=off' psql
12171217 limits of the IPC resources then the postmaster will refuse to
12181218 start up and should leave a marginally instructive error message
12191219 about which problem was encountered and what needs to be done
1220- about it. The relevant kernel parametershave a relatively
1221- consistent nomenclature across systems; <xref
1220+ about it. The relevant kernel parametersare named
1221+ consistently across different systems; <xref
12221222 linkend="sysvipc-parameters"> gives an overview. The methods to
12231223 set them, however, vary; suggestions for some platforms are given
1224- below. Be aware, however, that you will have to reboot your
1225- machine atbest, or possibly recompile the kernel, to change these
1224+ below. Be aware that you will have to reboot your
1225+ machine atleast, possibly even recompile the kernel, to change these
12261226 settings.
12271227 </para>
12281228
@@ -1255,7 +1255,7 @@ env PGOPTIONS='-c geqo=off' psql
12551255 <row>
12561256 <entry><varname>SHMSEG</></>
12571257 <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</>
12591259 </row>
12601260
12611261 <row>
@@ -1267,13 +1267,13 @@ env PGOPTIONS='-c geqo=off' psql
12671267 <row>
12681268 <entry><varname>SEMMNI</></>
12691269 <entry>Maximum number of semaphore identifiers (i.e., sets)</>
1270- <entry>>= ceil(max_connections% 16)</>
1270+ <entry>>= ceil(max_connections/ 16)</>
12711271 </row>
12721272
12731273 <row>
12741274 <entry><varname>SEMMNS</></>
12751275 <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 </>
12771277 </row>
12781278
12791279 <row>
@@ -1337,7 +1337,7 @@ env PGOPTIONS='-c geqo=off' psql
13371337 The parameter <varname>SEMMNI</> determines the limit on the
13381338 number of semaphore sets that can exist on the system at one time.
13391339 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
13411341 allowed connections is a temporary workaround for failures, which
13421342 are usually confusingly worded <quote><errorname>No space left on
13431343 device</></>, from the function <function>semget()</>.
@@ -1351,7 +1351,7 @@ env PGOPTIONS='-c geqo=off' psql
13511351 semaphores needs an entry. When a semaphore set is freed it is
13521352 either added to an existing entry that is adjacent to the freed
13531353 block or it is registered under a new map entry. If the map is
1354- full, the freed semaphoresgets lost (until reboot). Fragmentation
1354+ full, the freed semaphoresget lost (until reboot). Fragmentation
13551355 of the semaphore space could therefore over time lead to less
13561356 available semaphores than there should be.
13571357 </para>
@@ -1363,9 +1363,9 @@ env PGOPTIONS='-c geqo=off' psql
13631363 </para>
13641364
13651365 <para>
1366- Various settings related to <quote>semaphore undo</>, such as
1367- <varname>SEMMNU</> and <varname>SEMUME</>, are not ofrelevance
1368- with <productname>Postgres</>.
1366+ Variousother settings related to <quote>semaphore undo</>, such as
1367+ <varname>SEMMNU</> and <varname>SEMUME</>, are not ofconcern
1368+ for <productname>Postgres</>.
13691369 </para>
13701370
13711371
@@ -1386,7 +1386,7 @@ env PGOPTIONS='-c geqo=off' psql
13861386<programlisting>
13871387/sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages... */
13881388</programlisting>
1389- The default setting of 1024is for a maximum of 4 MB of shared
1389+ The default setting of 1024provides a maximum of 4 MB of shared
13901390 memory.
13911391 </para>
13921392 </formalpara>
@@ -1457,7 +1457,7 @@ options "SEMMNU=120"
14571457 to be enabled when the kernel is compiled. (They are by
14581458 default.) The maximum size of shared memory is determined by
14591459 the option <varname>SHMMAXPGS</> (in pages). The following
1460- shows an exampleon how to set the various parameters:
1460+ shows an exampleof how to set the various parameters:
14611461<programlisting>
14621462options SYSVSHM
14631463options SHMMAXPGS=4096