pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Cigar <jcigar@ulb.ac.be>
To: pgsql-performance@postgresql.org
Subject: Re: Postgresql performance degrading... how to diagnose the root cause
Date: Fri, 29 Mar 2013 15:42:27 +0100
Message-ID: <5155A853.1080102@ulb.ac.be> (raw)
In-Reply-To: <5155A33A.4090000@axege.com>
References: <5155A33A.4090000@axege.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

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



view thread (9+ messages)  latest in thread

Message-ID: <5155A853.1080102@ulb.ac.be>
Permalink:  ../5155A853.1080102@ulb.ac.be/
Also on:    postgresql.org/message-id/5155A853.1080102@ulb.ac.be

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jcigar@ulb.ac.be
  Subject: Re: Postgresql performance degrading... how to diagnose the root cause
  In-Reply-To: <5155A853.1080102@ulb.ac.be>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox