Re: User-perspective knowledge about wait events

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Schneider <schneider(at)ardentperf(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, pgsql-www(at)postgresql(dot)org
Subject: Re: User-perspective knowledge about wait events
Date: 2017-09-26 23:28:27
Message-ID: CAB7nPqR4hN+X740RK6PQym_k5iqp6JgU2hYUEu6Ba9ooLuBieA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-www

On Wed, Sep 27, 2017 at 3:26 AM, Schneider <schneider(at)ardentperf(dot)com> wrote:
> However I think that it would be immensely helpful to start gathering
> knowledge somewhere on wait events from the user perspective. Listing
> a few of the wait events which users will probably see most often
> along with practical suggestions of what users could further examine
> or even what they could change to make improvements on their database
> systems.

I am not sure that listing wait events individually based on the
frequency they could be seen is that helpful, but profiles for
different workloads matter. For example, Postgres has pgbench in core,
so we could look at profiles generated with its generic tests, and
look at the profiles generated every second and then append them in a
custom table. By looking at how many of them are present you can guess
by what roughly Postgres is bottlecked by, and you can conclude this
and that.

For example, seeing a lot of SyncRep events in sessions would mean
that the synchronous standby may not be following its primary very
smoothly. Gathering a set of examples on wiki page with some rough
analysis I think would be a good start.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-09-26 23:31:09 Re: v10 pg_ctl compatibility
Previous Message Robert Haas 2017-09-26 23:21:43 Re: Multicolumn hash indexes

Browse pgsql-www by date

  From Date Subject
Next Message Alexander Korotkov 2017-09-27 21:45:15 Re: GSoC 2017: weekly progress reports (week 6)
Previous Message Schneider 2017-09-26 18:26:39 User-perspective knowledge about wait events