pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add logging for excessive ProcSignalBarrier waits.
Date: Wed, 11 May 2022 06:03:29 +0000
Message-ID: <E1nofRZ-0007lK-6c@gemulon.postgresql.org> (raw)

Add logging for excessive ProcSignalBarrier waits.

To enable diagnosis of systems that are not processing ProcSignalBarrier
requests promptly, add a LOG message every 5 seconds if we seem to be
wedged.  Although you could already see this state as a wait event in
pg_stat_activity, the log message also shows the PID of the process that
is preventing progress.

Also add DEBUG1 logging around the whole wait loop.

Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/CA%2BTgmoYJ03r5359gQutRGP9BtigYCg3_UskcmnVjBf-QO3-0pQ%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0d3431497dbe91ba1e428ace4e9537c109eaff07

Modified Files
--------------
src/backend/storage/ipc/procsignal.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)



Message-ID: <E1nofRZ-0007lK-6c@gemulon.postgresql.org>
Permalink:  ../E1nofRZ-0007lK-6c@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nofRZ-0007lK-6c@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Add logging for excessive ProcSignalBarrier waits.
  In-Reply-To: <E1nofRZ-0007lK-6c@gemulon.postgresql.org>
  References: <E1nofRZ-0007lK-6c@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox