Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMygn-0000ud-0R for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Jun 2017 15:34:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dMygm-0003Hk-2D for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Jun 2017 15:34:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dMygl-0003Di-27 for pgsql-bugs@postgresql.org; Mon, 19 Jun 2017 15:34:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dMygi-0005fR-6Q for pgsql-bugs@postgresql.org; Mon, 19 Jun 2017 15:34:01 +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 v5JFXwV6031738; Mon, 19 Jun 2017 11:33:58 -0400 From: Tom Lane To: josef.machytka@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14714: long running sessions from remote instance seems to hang some times In-reply-to: <20170619144907.1544.19175@wrigleys.postgresql.org> References: <20170619144907.1544.19175@wrigleys.postgresql.org> Comments: In-reply-to josef.machytka@gmail.com message dated "Mon, 19 Jun 2017 14:49:07 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31736.1497886438.1@sss.pgh.pa.us> Date: Mon, 19 Jun 2017 11:33:58 -0400 Message-ID: <31737.1497886438@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@gmail.com writes: > Sometimes some session goes into some kind of "drowsy" state and runs > incredibly slowly. It causes some very low disk IO and runs like 20x slower > then usual. Is it using a lot of CPU time according to ps or vmstat? > Do you please have any advice what to check or what setting might help? If it's eating CPU time, try using "perf" to find out where. 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