X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4EBC39F9FE3 for ; Wed, 14 Jun 2006 13:44:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 38389-03 for ; Wed, 14 Jun 2006 13:44:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id 48F0B9F9CAA for ; Wed, 14 Jun 2006 13:44:16 -0300 (ADT) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Wed, 14 Jun 2006 16:44:10 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 14 Jun 2006 11:44:10 -0500 Subject: Re: Performance of pg_dump on PGSQL 8.0 From: Scott Marlowe To: pgsql-performance@lusis.org Cc: PGSQL Performance In-Reply-To: <44902165.7020502@lusis.org> References: <44902165.7020502@lusis.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1150303450.26538.9.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 14 Jun 2006 11:44:10 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/258 X-Sequence-Number: 19615 On Wed, 2006-06-14 at 09:47, John E. Vincent wrote: > -- this is the third time I've tried sending this and I never saw it get > through to the list. Sorry if multiple copies show up. > > Hi all, BUNCHES SNIPPED > work_mem = 1048576 ( I know this is high but you should see some of our > sorts and aggregates) Ummm. That's REALLY high. You might want to consider lowering the global value here, and then crank it up on a case by case basis, like during nighttime report generation. Just one or two queries could theoretically run your machine out of memory right now. Just put a "set work_mem=1000000" in your script before the big query runs. > We're inserting around 3mil rows a night if you count staging, info, dim > and fact tables. The vacuum issue is a whole other problem but right now > I'm concerned about just the backup on the current hardware. > > I've got some space to burn so I could go to an uncompressed backup and > compress it later during the day. That's exactly what we do. We just do a normal backup, and have a script that gzips anything in the backup directory that doesn't end in .gz... If you've got space to burn, as you say, then use it at least a few days to see how it affects backup speeds. Seeing as how you're CPU bound, most likely the problem is just the compressed backup.