Skip site navigation (1) Skip section navigation (2)

Re: Usage up to 50% CPU

From: "Andres Retzlaff" <andres_retzlaff(at)hotmail(dot)com>
To: mstone+postgres(at)mathom(dot)us
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Usage up to 50% CPU
Date: 2007-04-28 19:28:14
Message-ID: BAY141-F16157D6D49CE3E6DC40F1A8B4E0@phx.gbl (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
>On Fri, Apr 27, 2007 at 07:23:41PM +0930, Shane Ambler wrote:
>>I would think that as you are sitting and watching the cpu usage, your 
>>query would seem to taking a while to run, leading me to wonder if you are 
>>getting a full table scan that is causing pg to wait for disk response?

>If so, you probably wouldn't be seeing that much cpu usage... (if the cpu 
>is waiting for disk it's >idling)

>Mike Stone

Yes, I notice 3 steeps:
1) the CPU is at 100% (of 1 cpu)
2) the HDD is 100% but no much of the cpu
3) I get the query display

I will see what can I do to improved the speed. At this moment is taking 10 
sec to get the responce.

Andrew Retzlaff

Advertisement: Its simple! Sell your car for just $30 at

In response to

pgsql-performance by date

Next:From: Carlos MorenoDate: 2007-04-28 20:34:49
Subject: Re: Feature Request --- was: PostgreSQL Performance Tuning
Previous:From: Harald Armin MassaDate: 2007-04-28 18:15:52
Subject: Re: Feature Request --- was: PostgreSQL Performance Tuning

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group