Re: High CPU Load

From: "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
To: Jérôme BENOIS <benois(at)argia-engineering(dot)fr>
Cc: "Scott Marlowe" <smarlowe(at)g2switchworks(dot)com>, "Dave Dutcher" <dave(at)tridecap(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: High CPU Load
Date: 2006-09-14 21:22:48
Message-ID: 1d4e0c10609141422o57ecf28eobf3d0b7594bb242f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jérôme,

Perhaps it's a stupid question but are your queries slower than
before? You didn't tell it.

IMHO, it's not a problem to have a high load if you have a lot of
users and your queries are fast (and with 8.1, they should be far
faster than before).

To take a real example, we had a problem with a quad xeon running
postgres 7.4 and even when there were a lot of queries, the load was
always lower than 4 and suddenly the queries were really slow and the
database was completely unusable.
When we upgraded to 8.1, on very high load, we had a far higher cpu
load but queries were far faster even with a high cpu load.

Considering your top output, I suspect you use HT and you should
really remove it if it's the case.

--
Guillaume

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Craig A. James 2006-09-14 21:35:00 Re: RAID 0 not as fast as expected
Previous Message Tom Lane 2006-09-14 21:14:26 Re: High CPU Load