Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ULaVo-0002yr-5e for pgsql-performance@arkaria.postgresql.org; Fri, 29 Mar 2013 14:42:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1ULaVn-0000aE-MW for pgsql-performance@arkaria.postgresql.org; Fri, 29 Mar 2013 14:42:35 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ULaVm-0000a9-Sn for pgsql-performance@postgresql.org; Fri, 29 Mar 2013 14:42:35 +0000 Received: from mxin.ulb.ac.be ([164.15.128.112]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ULaVj-0000vB-SN for pgsql-performance@postgresql.org; Fri, 29 Mar 2013 14:42:34 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAGOnVVGkD30E/2dsb2JhbAANNoM6vyqBHoMTAQEBAwE4QAYLCxgJFg8JAwIBAgFFEwgBAYgKrFiKKIkLBI1vgT8WgyoDnFmMcoE3gWk Received: from bebif01.ulb.ac.be (HELO [192.168.0.50]) ([164.15.125.4]) by smtp.ulb.ac.be with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 29 Mar 2013 15:42:27 +0100 Message-ID: <5155A853.1080102@ulb.ac.be> Date: Fri, 29 Mar 2013 15:42:27 +0100 From: Julien Cigar User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130322 Thunderbird/17.0.4 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Postgresql performance degrading... how to diagnose the root cause References: <5155A33A.4090000@axege.com> In-Reply-To: <5155A33A.4090000@axege.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -5.5 (-----) 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 03/29/2013 15:20, Franck Routier wrote: > Hi, > Hello, > I have a postgresql database (8.4) running in production whose > performance is degrading. > There is no single query that underperforms, all queries do. > Another interesting point is that a generic performance test > (https://launchpad.net/tpc-b) gives mediocre peformance when run on > the database, BUT the same test on a newly created database, on the > same pg cluster, on the same tablespace, does perform good. > > So the problem seems to be limited to this database, even on newly > created tables... > > What should I check to find the culprit of this degrading performance ? > Difficult to answer with so few details, but I would start by logging slow queries, and run an explain analyze on them (or use auto_explain). Check if you're CPU bound or I/O bound (top, iostats, vmstat, systat, gstat..), check your configuration (shared_buffers, effective_cache_size, work_mem, checkpoint_segments, cpu_tuple_cost, ...) > Franck > -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance