Re: Performance bottleneck. High active sessions but postmaster kernel threads are in a sleep state, low CPU utilization

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Hotmail <crajac66(at)hotmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Performance bottleneck. High active sessions but postmaster kernel threads are in a sleep state, low CPU utilization
Date: 2021-03-31 09:47:28
Message-ID: 11921e4e3efa7782168b8e02b89d004ba5b6b00a.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, 2021-03-30 at 12:22 -0600, Hotmail wrote:
> We are trying to gain some insight into a performance bottleneck that we are hitting while load testing Postgres on 11.11.
> [hundreds of active sessions, but CPU is not maxed out]

With that many active sessions you are probably hitting some contention inside
the database. Look at "wait_event" and "wait_event_type" in pg_stat_activity.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Nikhil Shetty 2021-03-31 11:16:14 Re: Recovery doesn't pause during PITR
Previous Message Laurenz Albe 2021-03-31 09:44:23 Re: Recovery doesn't pause during PITR