Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-12 Thread Jeff Frost
On Wed, 12 Jul 2006, Neil Hepworth wrote: Yes, it was the same DB so, yes 8.1 gives roughly a four fold improvement (assuming hardware and OS differences aren't that significant - I'd expect the Linux version to be faster if anything); which certainly ain't bad! :) Good idea for the vacuumdb -a

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-12 Thread Jeff Frost
ew version ? - Original Message - From: "Jeff Frost" <[EMAIL PROTECTED]> To: "Neil Hepworth" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, July 12, 2006 10:27 AM Subject: Re: [PERFORM] High CPU Usage - PostgreSQL 7.3 On Wed, 12 Jul 2006, Neil Hepworth wrote:

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-11 Thread Neil Hepworth
Yes, it was the same DB so, yes 8.1 gives roughly a four fold improvement (assuming hardware and OS differences aren't that significant - I'd expect the Linux version to be faster if anything); which certainly ain't bad! :)   Good idea for the vacuumdb -a -v on the laptop, I re imported the databa

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-11 Thread Jeff Frost
On Tue, 11 Jul 2006, Jeff Frost wrote: On Wed, 12 Jul 2006, Neil Hepworth wrote: You might also want to turn on autovacuum and see if that helps. What's your disk subsystem like? In fact, what's the entire DB server hardware like? By the way, how big does the temp table get? If it's large

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-11 Thread Jeff Frost
On Wed, 12 Jul 2006, Neil Hepworth wrote: I am using version PostgreSQL 7.3.10 (RPM: postgresql73-rhel21-7.3.10-2). Unfortunately vacuumdb -a -v does not give the FSM info at the end (need a newer version of postgres for that). Running the same queries on 8.1 reduces the time taken to about 16

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-11 Thread Neil Hepworth
Thanks for the tip; I'll try that when we initially upgrade, hopefully soon.   Neil  On 12/07/06, Bruno Wolff III <[EMAIL PROTECTED]> wrote: On Mon, Jul 10, 2006 at 17:55:38 +1000,Neil Hepworth <[EMAIL PROTECTED] > wrote:>> running on our server (obviously we need to update certain queries,> e.g. d

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-11 Thread Bruno Wolff III
On Mon, Jul 10, 2006 at 17:55:38 +1000, Neil Hepworth <[EMAIL PROTECTED]> wrote: > > running on our server (obviously we need to update certain queries, > e.g. delete .. using.. and test with 8.1 first) - I will be pushing > for an upgrade as soon as possible. And the fsync=false is a You can

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-10 Thread Scott Marlowe
On Sun, 2006-07-09 at 19:52, Neil Hepworth wrote: > Hi, > > I am running PostgreSQL 7.3 on a Linux box (RHEL 2.1 - Xeon 2.8GHz > with 1GB of RAM) and seeing very high CPU usage (normally over 90%) > when I am running the following queries, and the queries take a long > time to return; over an hour

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-10 Thread Jeff Frost
On Mon, 10 Jul 2006, Neil Hepworth wrote: I should also explain that I run through these queries on multiple tables and with some slightly different parameters for the "consolidation" so I run through those 3 queries (or similar) 9 times and this takes a total of about 2 hours, with high CPU u

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-10 Thread Neil Hepworth
I should also explain that I run through these queries on multiple tables and with some slightly different parameters for the "consolidation" so I run through those 3 queries (or similar) 9 times and this takes a total of about 2 hours, with high CPU usage. And I am running the queries from a rem

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-10 Thread Neil Hepworth
Thanks for the reply. The database is vacuum analysed regularly and during my testing I tried running the vacuum analyse full immediately before the running through the set of queries (which does help a bit - reduces the time to about 80% but is is still over an hour, with basically 100% CPU). I

Re: [PERFORM] High CPU Usage - PostgreSQL 7.3

2006-07-09 Thread Jeff Frost
On Mon, 10 Jul 2006, Neil Hepworth wrote: I am running PostgreSQL 7.3 on a Linux box (RHEL 2.1 - Xeon 2.8GHz with 1GB of RAM) and seeing very high CPU usage (normally over 90%) when I am running the following queries, and the queries take a long time to return; over an hour! First off, when is