pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Create and use wait events for read, write, and fsync operations
Date: Sat, 18 Mar 2017 11:43:13 +0000
Message-ID: <E1cpClN-0001LH-OR@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Create and use wait events for read, write, and fsync operations.

Previous commits, notably 53be0b1add7064ca5db3cd884302dfc3268d884e and
6f3bd98ebfc008cbd676da777bb0b2376c4c4bfa, made it possible to see from
pg_stat_activity when a backend was stuck waiting for another backend,
but it's also fairly common for a backend to be stuck waiting for an
I/O.  Add wait events for those operations, too.

Rushabh Lathia, with further hacking by me.  Reviewed and tested by
Michael Paquier, Amit Kapila, Rajkumar Raghuwanshi, and Rahila Syed.

Discussion: http://postgr.es/m/CAGPqQf0LsYHXREPAZqYGVkDqHSyjf=KsD=k0GTVPAuzyThh-VQ@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/249cf070e36721a65be74838c53acf8249faf935

Modified Files
--------------
doc/src/sgml/monitoring.sgml                    | 271 ++++++++++++++++++++++++
src/backend/access/heap/rewriteheap.c           |  17 +-
src/backend/access/transam/slru.c               |  12 ++
src/backend/access/transam/timeline.c           |  11 +
src/backend/access/transam/twophase.c           |   9 +
src/backend/access/transam/xlog.c               |  31 +++
src/backend/access/transam/xlogutils.c          |   3 +
src/backend/postmaster/pgstat.c                 | 233 ++++++++++++++++++++
src/backend/replication/logical/reorderbuffer.c |   9 +
src/backend/replication/logical/snapbuild.c     |  14 ++
src/backend/replication/slot.c                  |  13 ++
src/backend/replication/walsender.c             |   4 +
src/backend/storage/file/buffile.c              |  11 +-
src/backend/storage/file/copydir.c              |   7 +-
src/backend/storage/file/fd.c                   |  28 ++-
src/backend/storage/ipc/dsm_impl.c              |   3 +
src/backend/storage/smgr/md.c                   |  21 +-
src/backend/utils/cache/relmapper.c             |   7 +
src/backend/utils/init/miscinit.c               |  17 ++
src/include/pgstat.h                            |  78 +++++++
src/include/storage/fd.h                        |  12 +-
21 files changed, 782 insertions(+), 29 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cpClN-0001LH-OR@gemulon.postgresql.org>
Permalink:  ../E1cpClN-0001LH-OR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cpClN-0001LH-OR@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: rhaas@postgresql.org
  Subject: Re: pgsql: Create and use wait events for read, write, and fsync operations
  In-Reply-To: <E1cpClN-0001LH-OR@gemulon.postgresql.org>
  References: <E1cpClN-0001LH-OR@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