pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Hotmail <crajac66@hotmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Performance bottleneck. High active sessions but postmaster kernel threads are in a sleep state, low CPU utilization
Date: Wed, 31 Mar 2021 11:47:28 +0200
Message-ID: <11921e4e3efa7782168b8e02b89d004ba5b6b00a.camel@cybertec.at> (raw)
In-Reply-To: <BYAPR06MB4023F39ED590D9E1179414C3D77D9@BYAPR06MB4023.namprd06.prod.outlook.com>
References: <ef99be8f-149a-477b-92bb-1aac5d6e7cfa@Spark>
	<BYAPR06MB4023F39ED590D9E1179414C3D77D9@BYAPR06MB4023.namprd06.prod.outlook.com>

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






view thread (7+ messages)  latest in thread

Message-ID: <11921e4e3efa7782168b8e02b89d004ba5b6b00a.camel@cybertec.at>
Permalink:  ../11921e4e3efa7782168b8e02b89d004ba5b6b00a.camel@cybertec.at/
Also on:    postgresql.org/message-id/11921e4e3efa7782168b8e02b89d004ba5b6b00a.camel@cybertec.at

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, crajac66@hotmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Performance bottleneck. High active sessions but postmaster kernel threads are in a sleep state, low CPU utilization
  In-Reply-To: <11921e4e3efa7782168b8e02b89d004ba5b6b00a.camel@cybertec.at>

* 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