Re: [GENERAL] CPU Load 100% when pg_dump start in Postgresql 8.4

2012-04-03 Thread Brent Wood
Can you not nice the dump process to free up resources during the dump? Of course this will not free up any locks, and will make them hang around longer as the dump is slowed down. Brent Wood GIS/DBA consultant NIWA +64 (4) 4 386-0300 From: pgsql-general

Re: [GENERAL] CPU move

2011-11-27 Thread frank
This message has been digitally signed by the sender. Re___GENERAL__CPU_move.eml Description: Binary data - Hi-Tech Gears Ltd, Gurgaon, India -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.

Re: [GENERAL] CPU move

2011-11-27 Thread Frank Lanitz
Am 26.11.2011 19:18, schrieb Carlos Henrique Reimer: > Hi, > > We're planning to move our postgreSQL database from one CPU box to > another box. > > I'm considering an alternative procedure for the move as the standard > one (pg_dump from the old, copy dump to the new box, psql to restore in > th

Re: [GENERAL] CPU move

2011-11-26 Thread Alan Hodgson
On Saturday, November 26, 2011 10:18:56 AM Carlos Henrique Reimer wrote: > Hi, > > We're planning to move our postgreSQL database from one CPU box to another > box. > > I'm considering an alternative procedure for the move as the standard one > (pg_dump from the old, copy dump to the new box, psq

Re: [GENERAL] CPU

2007-12-04 Thread Harald Armin Massa
Josh, However, the two extra cores (even if slower), will greatly help if you > have any kind of concurrency. > as much as I understand with running Postgres in the default configuration, there *will* be concurrency, without an "if" ? I am thinking of the background writer, the autovacuum proces

Re: [GENERAL] CPU

2007-12-03 Thread Greg Smith
On Mon, 3 Dec 2007, Joshua D. Drake wrote: Well honestly, with how cheap you can get a quad core from Intel... I say do that Exactly, the budget single processor configuration to beat in server land right now is the Xeon X3210. The frequency of the cores is a little on the low side, so indi

Re: [GENERAL] CPU

2007-12-03 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 03 Dec 2007 22:30:58 -0600 Ron Johnson <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 12/03/07 21:27, Joshua D. Drake wrote: > > Uwe C. Schroeder wrote: > >> On Monday 03 December 2007, Tom Allison wrote:

Re: [GENERAL] CPU

2007-12-03 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/03/07 21:27, Joshua D. Drake wrote: > Uwe C. Schroeder wrote: >> On Monday 03 December 2007, Tom Allison wrote: >>> is there much of a difference in performance between a XEON, dual >>> core from intel and a dual core AMD 64 CPU? > > Well honest

Re: [GENERAL] CPU

2007-12-03 Thread Joshua D. Drake
Uwe C. Schroeder wrote: On Monday 03 December 2007, Tom Allison wrote: is there much of a difference in performance between a XEON, dual core from intel and a dual core AMD 64 CPU? Well honestly, with how cheap you can get a quad core from Intel... I say do that :). The general difference bet

Re: [GENERAL] CPU

2007-12-03 Thread Uwe C. Schroeder
On Monday 03 December 2007, Tom Allison wrote: > is there much of a difference in performance between a XEON, dual > core from intel and a dual core AMD 64 CPU? > > I need a bit of an upgrade and am not sure which, if any, have a > significant advantage for postgres databases. > Personally I've ne

Re: [GENERAL] CPU load high

2007-08-23 Thread Patrick
Hi Max, To find out what is causing the big load you could also try to use 'ATOP' which can be found at http://www.atcomputing.nl/atop. This tool shows more (accurate) information than the regular TOP. There are also some kernel patches available which, when applied to your kernel, even show more

Re: [GENERAL] CPU load high

2007-08-23 Thread Max Zorloff
On Thu, 23 Aug 2007 12:24:32 +0400, Hannes Dorbath <[EMAIL PROTECTED]> wrote: On 23.08.2007 11:04, Max Zorloff wrote: When one postgres process waits for lock to release does it use any cpu? And also, when apache waits for query to finish, does it use cpu? No, but are you sure what you see

Re: [GENERAL] CPU load high

2007-08-23 Thread Hannes Dorbath
On 23.08.2007 11:04, Max Zorloff wrote: When one postgres process waits for lock to release does it use any cpu? And also, when apache waits for query to finish, does it use cpu? No, but are you sure what you see is not i/o wait? What values does top display in the %wa columns in the CPU rows?

Re: [GENERAL] CPU load high

2007-08-23 Thread Max Zorloff
On Thu, 23 Aug 2007 08:29:03 +0400, Tom Lane <[EMAIL PROTECTED]> wrote: "Max Zorloff" <[EMAIL PROTECTED]> writes: ... The problem is that after the number of concurrent users rises to 100, CPU becomes almost 100% loaded. How do I find out what's hogging the CPU? 'top' shows demon using 8%

Re: [GENERAL] CPU load high

2007-08-23 Thread Patrick Lindeman
Hi Max, To find out what is causing the big load you could also try to use 'ATOP' which can be found at http://www.atcomputing.nl/atop. This tool shows more (accurate) information than the regular TOP. There are also some kernel patches available which, when applied to your kernel, even show more

Re: [GENERAL] CPU load high

2007-08-22 Thread Tom Lane
"Max Zorloff" <[EMAIL PROTECTED]> writes: > ... The problem is that after the number of concurrent users rises to > 100, CPU becomes almost 100% loaded. How do I find out what's hogging the > CPU? > 'top' shows demon using 8% cpu on top, and some amount of postgres > processes each using 2%

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-11 Thread Tom Lane
"Thomas F. O'Connell" <[EMAIL PROTECTED]> writes: > Honestly, I'd prefer to see pg_autovacuum improved to do O(n) rather > than O(n^2) table activity. At this point, though, I'm probably not > too likely to have much time to hack pg_autovacuum before 8.1 is > released, although if it doesn't

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-10 Thread Thomas F. O'Connell
I was usleeping in tiny increments in each iteration of the loop. I didn't try break it into iterative groups like this. Honestly, I'd prefer to see pg_autovacuum improved to do O(n) rather than O(n^2) table activity. At this point, though, I'm probably not too likely to have much time to h

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-10 Thread Shelby Cain
--- "Thomas F. O'Connell" <[EMAIL PROTECTED]> wrote: > Phil, > > If you complete this patch, I'm very interested to see it. > > I think I'm the person Matthew is talking about who inserted a sleep > > value. Because of the sheer number of tables involved, even small > values of sleep cause

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-09 Thread Thomas F. O'Connell
Phil, If you complete this patch, I'm very interested to see it. I think I'm the person Matthew is talking about who inserted a sleep value. Because of the sheer number of tables involved, even small values of sleep caused pg_autovacuum to iterate too slowly over its table lists to be of u

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-07 Thread Tom Lane
Phil Endecott <[EMAIL PROTECTED]> writes: > (Incidentally, I have also found that the indexes on my pg_attributes > table were taking up over half a gigabyte, which came down to less than > 40 megs after reindexing them. Is there a case for having autovacuum > also call reindex?) Lots of temp

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-07 Thread Phil Endecott
Matthew T. O'Connor wrote: The integrated version of autovacuum that didn't make the cut before 8.0 avoids this problem since the autovacuum data is stored in the database. What is the status of this? Is it something that will be included in 8.1 or 8.0.n? I might be able to patch the curren

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-07 Thread Bruce Momjian
Phil Endecott wrote: > Matthew T. O'Connor wrote: > > The integrated version > > of autovacuum that didn't make the cut before 8.0 avoids this problem > > since the autovacuum data is stored in the database. > > What is the status of this? Is it something that will be included in > 8.1 or 8.0.

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-07 Thread Matthew T. O'Connor
Phil Endecott wrote: Matthew T. O'Connor wrote: The integrated version of autovacuum that didn't make the cut before 8.0 avoids this problem since the autovacuum data is stored in the database. What is the status of this? Is it something that will be included in 8.1 or 8.0.n? I might be

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-07 Thread Matthew T. O'Connor
Phil Endecott wrote: Matthew T. O'Connor wrote: Indeed you have. I have head a few similar reports but perhaps none as bad as yours. One person put a small sleep value so that it doesn't spin so tight. You could also just up the sleep delay so that it doesn't do this work quite so often.

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-07 Thread Phil Endecott
Matthew T. O'Connor wrote: Phil Endecott wrote: > Could it be that there is some code in autovacuum that is O(n^2) in > the number of tables? Browsing the code using webcvs, I have found this: for (j = 0; j < PQntuples(res); j++) { tbl_elem = DLGetHead(dbs->table_list); while (tbl_elem

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-06 Thread Matthew T. O'Connor
Phil Endecott wrote: Following up on my own post from last night: > Could it be that there is some code in autovacuum that is O(n^2) in > the number of tables? Browsing the code using webcvs, I have found this: for (j = 0; j < PQntuples(res); j++) { tbl_elem = DLGetHead(dbs->table_list);

Re: [GENERAL] CPU-intensive autovacuuming

2005-06-06 Thread Phil Endecott
Following up on my own post from last night: > Could it be that there is some code in autovacuum that is O(n^2) in > the number of tables? Browsing the code using webcvs, I have found this: for (j = 0; j < PQntuples(res); j++) { tbl_elem = DLGetHead(dbs->table_list); while (tbl_

Re: [GENERAL] CPU Usage

2004-02-12 Thread Christopher Browne
Quoth [EMAIL PROTECTED] ("Mark Cubitt"): > is there a way of finding out which table is using a certain amount of CPU > power? That doesn't entirely make sense. Tables normally use up disk space. What consumes CPU power is the computation of queries, and, for big, expensive queries, it is pretty

Re: [GENERAL] CPU killer

2000-10-27 Thread Tod McQuillin
On Fri, 27 Oct 2000, Vilson farias wrote: > I've been using Postgres in a Pentium 75Mhz, Linux RedHat 6.2, 32Mb. > >Every big query I execute uses too much cpu (more than 90%). > >I start postgres with these params: su -l postgres -c > '/usr/bin/postmaster -B 2048 -i -D "/home/post

Re: [GENERAL] CPU killer

2000-10-27 Thread Igor Roboul
On Fri, Oct 27, 2000 at 07:12:57PM -0200, Vilson farias wrote: >I start postgres with these params: su -l postgres -c > '/usr/bin/postmaster -B 2048 -i -D "/home/postgres/data"' &. Try starting postmaster with 'nice': nice /usr/bin/postmaster -B 2048 -i -D /home/postgres/data & -- Igor Ro

Re: [GENERAL] CPU killer

2000-10-27 Thread Alfred Perlstein
* Vilson farias <[EMAIL PROTECTED]> [001027 21:38] wrote: > Greetings, > > I've been using Postgres in a Pentium 75Mhz, Linux RedHat 6.2, 32Mb. > >Every big query I execute uses too much cpu (more than 90%). > >I start postgres with these params: su -l postgres -c > '/usr/bin/postma