Re: very high CPU usage in "top", but not in "mpstat" - Mailing list pgsql-performance

From Paul Tuckfield
Subject Re: very high CPU usage in "top", but not in "mpstat"
Date
Msg-id DE781E0C-9EBF-11D8-965C-000393BD6C3E@tuckfield.com
Whole thread Raw
In response to Re: very high CPU usage in "top", but not in "mpstat"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
I'm guessing you have a 4 cpu box:
1 99 percent busy process on a 4 way box == about 25% busy overall.


On May 5, 2004, at 6:03 AM, Tom Lane wrote:

> "Cyrille Bonnet" <cyrille@3months.com> writes:
>> Should I be worried that Postgres is eating up 99% of my CPU??? Or is
>> this
>> *expected* behaviour?
>
> It's not expected, unless you are running some very long-running query.
>
> The conflict between what top says and what mpstat says is strange; I
> wonder if you might have a buggy version of one of them?  You should
> probably check some other tools (try "vmstat 1" for instance) to see if
> you can get a consensus on whether the CPU is maxed out or not ...
>
>             regards, tom lane
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 8: explain analyze is your friend
>


pgsql-performance by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: History of oids in postgres?
Next
From: Richard Huxton
Date:
Subject: Re: LIKE and INDEX