1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Properly document semphore requirements by accounting for worker

processes.

Backpatch to 9.1 and 9.0.

Submitted by Anton Yuzhaninov, confirmed by Robert Haas
This commit is contained in:
Bruce Momjian
2011-09-06 11:08:34 -04:00
parent 0603ba3415
commit f85adb65bf

View File

@ -604,13 +604,13 @@ psql: could not connect to server: No such file or directory
<row> <row>
<entry><varname>SEMMNI</></> <entry><varname>SEMMNI</></>
<entry>Maximum number of semaphore identifiers (i.e., sets)</> <entry>Maximum number of semaphore identifiers (i.e., sets)</>
<entry>at least <literal>ceil((max_connections + autovacuum_max_workers) / 16)</literal></> <entry>at least <literal>ceil((max_connections + autovacuum_max_workers + 4) / 16)</literal></>
</row> </row>
<row> <row>
<entry><varname>SEMMNS</></> <entry><varname>SEMMNS</></>
<entry>Maximum number of semaphores system-wide</> <entry>Maximum number of semaphores system-wide</>
<entry><literal>ceil((max_connections + autovacuum_max_workers) / 16) * 17</literal> plus room for other applications</> <entry><literal>ceil((max_connections + autovacuum_max_workers + 4) / 16) * 17</literal> plus room for other applications</>
</row> </row>
<row> <row>
@ -685,7 +685,7 @@ psql: could not connect to server: No such file or directory
linkend="sysvipc-parameters">). The parameter <varname>SEMMNI</> linkend="sysvipc-parameters">). The parameter <varname>SEMMNI</>
determines the limit on the number of semaphore sets that can determines the limit on the number of semaphore sets that can
exist on the system at one time. Hence this parameter must be at exist on the system at one time. Hence this parameter must be at
least <literal>ceil((max_connections + autovacuum_max_workers) / 16)</>. least <literal>ceil((max_connections + autovacuum_max_workers + 4) / 16)</>.
Lowering the number Lowering the number
of allowed connections is a temporary workaround for failures, of allowed connections is a temporary workaround for failures,
which are usually confusingly worded <quote>No space which are usually confusingly worded <quote>No space