From: Merlin Moncure <mmoncure@gmail.com>
To: Willo van der Merwe <willo@studentvillage.co.za>
Cc: pgsql-performance@postgresql.org
Subject: Re: PostgreSQL performance issues
Date: Wed, 30 Aug 2006 11:08:07 -0400
Message-ID: <b42b73150608300808j29a18519g885086f7cb6876f6@mail.gmail.com> (raw)
In-Reply-To: <44F56649.9050604@studentvillage.co.za>
References: <44F446B2.2090900@studentvillage.co.za>
<b42b73150608291639o226b645cq41175b416590f029@mail.gmail.com>
<44F56649.9050604@studentvillage.co.za>
On 8/30/06, Willo van der Merwe <willo@studentvillage.co.za> wrote:
> This was just an example. All queries have slowed down. Could it be that
> I've reached some cut-off and now my disk is thrashing?
>
> Currently the load looks like this:
> Cpu0 : 96.8% us, 1.9% sy, 0.0% ni, 0.3% id, 0.0% wa, 0.0% hi, 1.0% si
> Cpu1 : 97.8% us, 1.6% sy, 0.0% ni, 0.3% id, 0.0% wa, 0.0% hi, 0.3% si
> Cpu2 : 96.8% us, 2.6% sy, 0.0% ni, 0.3% id, 0.0% wa, 0.0% hi, 0.3% si
> Cpu3 : 96.2% us, 3.2% sy, 0.0% ni, 0.3% id, 0.0% wa, 0.0% hi, 0.3% si
>
I don't think so, it looks like you are cpu bound. Your server has a
(fairly high) budget of records per second it can crunch through. You
have hit that limit and backpressure is building up and server load is
escalating. This almost certainly due to inefficient sql, which is
very easy to do especially if you are using some type of middleware
which writes the sql for you. The trick here would be to turn all sql
logging on and find out where your budget is getting spent. solving
the problem may be a simple matter of adding an index or crafting a
stored procedure.
merlin
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: mmoncure@gmail.com, willo@studentvillage.co.za
Subject: Re: PostgreSQL performance issues
In-Reply-To: <b42b73150608300808j29a18519g885086f7cb6876f6@mail.gmail.com>
References: <44F446B2.2090900@studentvillage.co.za> <b42b73150608291639o226b645cq41175b416590f029@mail.gmail.com> <44F56649.9050604@studentvillage.co.za> <b42b73150608300808j29a18519g885086f7cb6876f6@mail.gmail.com>
* 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