pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josef Machytka <josef.machytka@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14714: long running sessions from remote instance seems to hang some times
Date: Fri, 23 Jun 2017 10:14:23 -0400
Message-ID: <8414.1498227263@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGvVEFuZPMeY+zY7mv3kuQbYi3Y2msnom-tXaGZ_aT3gqqruAw@mail.gmail.com>
References: <20170619144907.1544.19175@wrigleys.postgresql.org>
	<CAFj8pRAtMZQnKCRGr_w3FLt1Ot4Rbea7Dp2q8SrtKv3Kja8q=Q@mail.gmail.com>
	<CAGvVEFuEz2bPFoG-3weuorB6-T-2i_evzEzDzgqnHN7TBCpfUA@mail.gmail.com>
	<CAFj8pRA_TOScxvsB8XwrtXRVGtL_0mgG-kWO055NkaRZhYBJRg@mail.gmail.com>
	<CAGvVEFuZPMeY+zY7mv3kuQbYi3Y2msnom-tXaGZ_aT3gqqruAw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Josef Machytka <josef.machytka@gmail.com> writes:
> sorry, here is file with sample - basically several group by aggregations
> over different partitioned tables have been locked in this "drowsy" state

The amount of time being spent in the kernel is strikingly high.  I wonder
if you're seeing some variant of the old "context swap storm" problem.
Try watching the output of "vmstat 1" for awhile to see if the cs rate
is high.

			regards, tom lane


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



view thread (13+ messages)  latest in thread

Message-ID: <8414.1498227263@sss.pgh.pa.us>
Permalink:  ../8414.1498227263@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8414.1498227263@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, josef.machytka@gmail.com, pavel.stehule@gmail.com
  Subject: Re: BUG #14714: long running sessions from remote instance seems to hang some times
  In-Reply-To: <8414.1498227263@sss.pgh.pa.us>
  References: <20170619144907.1544.19175@wrigleys.postgresql.org> <CAFj8pRAtMZQnKCRGr_w3FLt1Ot4Rbea7Dp2q8SrtKv3Kja8q=Q@mail.gmail.com> <CAGvVEFuEz2bPFoG-3weuorB6-T-2i_evzEzDzgqnHN7TBCpfUA@mail.gmail.com> <CAFj8pRA_TOScxvsB8XwrtXRVGtL_0mgG-kWO055NkaRZhYBJRg@mail.gmail.com> <CAGvVEFuZPMeY+zY7mv3kuQbYi3Y2msnom-tXaGZ_aT3gqqruAw@mail.gmail.com> <8414.1498227263@sss.pgh.pa.us>

* 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