Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOPMf-0005HY-FI for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Jun 2017 14:15:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dOPMf-0001Do-1z for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Jun 2017 14:15:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dOPLv-0006qy-UH for pgsql-bugs@postgresql.org; Fri, 23 Jun 2017 14:14:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dOPLt-0001n1-Hc for pgsql-bugs@postgresql.org; Fri, 23 Jun 2017 14:14:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5NEENj1008415; Fri, 23 Jun 2017 10:14:23 -0400 From: Tom Lane To: Josef Machytka cc: Pavel Stehule , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14714: long running sessions from remote instance seems to hang some times In-reply-to: References: <20170619144907.1544.19175@wrigleys.postgresql.org> Comments: In-reply-to Josef Machytka message dated "Fri, 23 Jun 2017 13:37:33 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8413.1498227263.1@sss.pgh.pa.us> Date: Fri, 23 Jun 2017 10:14:23 -0400 Message-ID: <8414.1498227263@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Josef Machytka 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