You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct the formulas for System V IPC parameters SEMMNI and SEMMNS in docs.
In runtime.sgml, the old formulas for calculating the reasonable
values of SEMMNI and SEMMNS were incorrect. They have forgotten to
count the number of semaphores which both the checkpointer process
(introduced in 9.2) and the background worker processes (introduced
in 9.3) need.
This commit fixes those formulas so that they count the number of
semaphores which the checkpointer process and the background worker
processes need.
Report and patch by Kyotaro Horiguchi. Only the patch for 9.3 was
modified by me. Back-patch to 9.2 where the checkpointer process was
added and the number of needed semaphores was increased.
Author: Kyotaro Horiguchi
Reviewed-by: Fujii Masao
Backpatch: 9.2
Discussion: http://www.postgresql.org/message-id/20160203.125119.66820697.horiguchi.kyotaro@lab.ntt.co.jp
Copy file name to clipboardExpand all lines: doc/src/sgml/runtime.sgml
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -645,13 +645,13 @@ psql: could not connect to server: No such file or directory
645
645
<row>
646
646
<entry><varname>SEMMNI</></>
647
647
<entry>Maximum number of semaphore identifiers (i.e., sets)</>
648
-
<entry>at least <literal>ceil((max_connections + autovacuum_max_workers + 4) / 16)</literal></>
648
+
<entry>at least <literal>ceil((max_connections + autovacuum_max_workers + number of background processes + 5) / 16)</literal></>
649
649
</row>
650
650
651
651
<row>
652
652
<entry><varname>SEMMNS</></>
653
653
<entry>Maximum number of semaphores system-wide</>
654
-
<entry><literal>ceil((max_connections + autovacuum_max_workers + 4) / 16) * 17</literal> plus room for other applications</>
654
+
<entry><literal>ceil((max_connections + autovacuum_max_workers + number of background processes + 5) / 16) * 17</literal> plus room for other applications</>
655
655
</row>
656
656
657
657
<row>
@@ -699,20 +699,23 @@ psql: could not connect to server: No such file or directory
699
699
700
700
<para>
701
701
<productname>PostgreSQL</> uses one semaphore per allowed connection
702
-
(<xref linkend="guc-max-connections">) and allowed autovacuum worker
703
-
process (<xref linkend="guc-autovacuum-max-workers">), in sets of 16.
0 commit comments