Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dORuA-0001uX-Do for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Jun 2017 16:57:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dORu9-000102-FX for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Jun 2017 16:57:57 +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 1dORu8-0000zg-U5 for pgsql-bugs@postgresql.org; Fri, 23 Jun 2017 16:57:57 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dORu6-0005ER-3i for pgsql-bugs@postgresql.org; Fri, 23 Jun 2017 16:57:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 38F4920B1C; Fri, 23 Jun 2017 12:57:52 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 23 Jun 2017 12:57:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=QRSFQBWvzY0bTCtkhR CimYH1bmpP+J1iwysT1P2RwrE=; b=MP429yb8d/Ckh3YzowQbJJz5q5szMNyOJ8 8s6Tj/Xqnkrz2GA2wgsGxjzrzLWwrvJvo1xTp/1O8o9ecQcEM+RxVonwL/tabrZh wkQdUVqoF/iEqeoO9pPUYOssZyahUAvNXoLR0UaTrB15Ceq/3ZPoK5PML5eQzkCF u8CdtVSpVRjhZOwDPXCgn0mVzsrqHJ0Qh8g8Ida6BREntEhFKZnK8M9wud6tLBOK LtI+y3onsFyYh4u7TUPRdMVKuh3U1vQQH7d9cCGh6PO68loMIH5ezmBO4+WfQpnx 36JuPmn7sez0Qch6Yyon4yO5pV34f8tadYgZ+Hsvj5dngFzmtMBw== X-ME-Sender: X-Sasl-enc: ZgglO4atUSVH9t4N5v9kGUulIbwN764u/G0l62xxqS+x 1498237071 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id EF8A97E622; Fri, 23 Jun 2017 12:57:51 -0400 (EDT) Date: Fri, 23 Jun 2017 09:57:51 -0700 From: Andres Freund 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 Message-ID: <20170623165751.7x6qbhbfmtt4fyp6@alap3.anarazel.de> References: <20170619144907.1544.19175@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170619144907.1544.19175@wrigleys.postgresql.org> 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 Hi, On 2017-06-19 14:49:07 +0000, josef.machytka@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 14714 > Logged by: Josef Machytka > Email address: josef.machytka@gmail.com > PostgreSQL version: 9.6.3 > Operating system: Debian jessie > Description: > > On pg 9.6.* we have sometimes strange problem with some sessions. We > experienced it from bash scripts, golang program and node.js applications. > Environment are Google Compute Engine instances with Debian 8. > > 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. This happens mainly when database is under heavy load and it > happens randomly to different tasks. It happens randomly to both connections > from local instance (cronjob running on instance with PG) and remote > connections from other instances. > > When we restart task it runs normally. I cannot see any changes in process > priority in OS, process switches between sleeping and running state and I do > not see any locks or waits in pg_stat_activity or pg_locks. Usually all > other processes finish OK and this "drowsy" one runs "for ever..." Which version of the os & kernel is this? This kind of sounds like the symptoms that we've observed more frequently a while ago with the kernel's transparent_hugepages management. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs