Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tjbh0-0007qv-G5 for pgsql-performance@arkaria.postgresql.org; Fri, 14 Dec 2012 20:17:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tjbgy-0002tD-RF for pgsql-performance@arkaria.postgresql.org; Fri, 14 Dec 2012 20:17:08 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjbgZ-0002Yd-Mr for pgsql-performance@postgresql.org; Fri, 14 Dec 2012 20:16:43 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjbgX-0001Bo-Bu for pgsql-performance@postgresql.org; Fri, 14 Dec 2012 20:16:42 +0000 X-Originating-IP: 217.70.178.130 Received: from mfilter1-d.gandi.net (mfilter1-d.gandi.net [217.70.178.130]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 6B9EE172094; Fri, 14 Dec 2012 21:16:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter1-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter1-d.gandi.net (mfilter1-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id ZFy13Iwe76k8; Fri, 14 Dec 2012 21:16:21 +0100 (CET) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-098-027-058-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 466DA17208B; Fri, 14 Dec 2012 21:16:21 +0100 (CET) Message-ID: <50CB8913.8050202@dunslane.net> Date: Fri, 14 Dec 2012 15:16:19 -0500 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-perform Subject: Re: backend suddenly becomes slow, then remains slow References: <50CB7284.3020008@pgexperts.com> <5309.1355514960@sss.pgh.pa.us> In-Reply-To: <5309.1355514960@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 12/14/2012 02:56 PM, Tom Lane wrote: > Andrew Dunstan writes: >> One of my clients has an odd problem. Every so often a backend will >> suddenly become very slow. The odd thing is that once this has happened >> it remains slowed down, for all subsequent queries. Zone reclaim is off. >> There is no IO or CPU spike, no checkpoint issues or stats timeouts, no >> other symptom that we can see. The problem was a lot worse that it is >> now, but two steps have alleviated it mostly, but not completely: much >> less aggressive autovacuuming and reducing the maximum lifetime of >> backends in the connection pooler to 30 minutes. >> It's got us rather puzzled. Has anyone seen anything like this? > Maybe the kernel is auto-nice'ing the process once it's accumulated X > amount of CPU time? > > That was my initial thought, but the client said not. We'll check again. cheers andrew -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance