Skip to content

Commit d764835

Browse files
committed
Properly document semphore requirements by accounting for worker
processes. Backpatch to 9.1 and 9.0. Submitted by Anton Yuzhaninov, confirmed by Robert Haas
1 parent 5c8676e commit d764835

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,13 +604,13 @@ psql: could not connect to server: No such file or directory
604604
<row>
605605
<entry><varname>SEMMNI</></>
606606
<entry>Maximum number of semaphore identifiers (i.e., sets)</>
607-
<entry>at least <literal>ceil((max_connections + autovacuum_max_workers) / 16)</literal></>
607+
<entry>at least <literal>ceil((max_connections + autovacuum_max_workers + 4) / 16)</literal></>
608608
</row>
609609

610610
<row>
611611
<entry><varname>SEMMNS</></>
612612
<entry>Maximum number of semaphores system-wide</>
613-
<entry><literal>ceil((max_connections + autovacuum_max_workers) / 16) * 17</literal> plus room for other applications</>
613+
<entry><literal>ceil((max_connections + autovacuum_max_workers + 4) / 16) * 17</literal> plus room for other applications</>
614614
</row>
615615

616616
<row>
@@ -685,7 +685,7 @@ psql: could not connect to server: No such file or directory
685685
linkend="sysvipc-parameters">). The parameter <varname>SEMMNI</>
686686
determines the limit on the number of semaphore sets that can
687687
exist on the system at one time. Hence this parameter must be at
688-
least <literal>ceil((max_connections + autovacuum_max_workers) / 16)</>.
688+
least <literal>ceil((max_connections + autovacuum_max_workers + 4) / 16)</>.
689689
Lowering the number
690690
of allowed connections is a temporary workaround for failures,
691691
which are usually confusingly worded <quote>No space

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy