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 1A5989FA5C8 for ; Wed, 14 Jun 2006 15:11:27 -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 48093-03 for ; Wed, 14 Jun 2006 15:11:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id 6E72A9F9CAA for ; Wed, 14 Jun 2006 15:11:22 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so450904ugf for ; Wed, 14 Jun 2006 11:11:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=cOqup07Y4WPMAPMi2ZFMJBYlPrVI/7dF50P8DYLfNdBQac+jW1sANK/Bmfrad1z2fnFX+gJ3ctiBuOOJ0pS4o0dsuX74RijicgkjmEcw9c0/z5rA7NVHB/nqEIkaB/H+1NNeCgceodkIqagNsrdCI4XgzGHWiYxHxyrulJY8K1c= Received: by 10.67.101.10 with SMTP id d10mr922575ugm; Wed, 14 Jun 2006 11:11:19 -0700 (PDT) Received: by 10.66.216.11 with HTTP; Wed, 14 Jun 2006 11:11:19 -0700 (PDT) Message-ID: Date: Wed, 14 Jun 2006 14:11:19 -0400 From: "John Vincent" To: "Scott Marlowe" Subject: Re: Performance of pg_dump on PGSQL 8.0 Cc: "PGSQL Performance" In-Reply-To: <1150303450.26538.9.camel@state.g2switchworks.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8822_10722423.1150308679487" References: <44902165.7020502@lusis.org> <1150303450.26538.9.camel@state.g2switchworks.com> X-Google-Sender-Auth: 6006274cd31faeef X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/263 X-Sequence-Number: 19620 ------=_Part_8822_10722423.1150308679487 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Out of curiosity, does anyone have any idea what the ratio of actual datasize to backup size is if I use the custom format with -Z 0 compression or the tar format? Thanks. On 6/14/06, Scott Marlowe wrote: > > 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. > -- John E. Vincent lusis.org@gmail.com ------=_Part_8822_10722423.1150308679487 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Out of curiosity, does anyone have any idea what the ratio of actual datasize to backup size is if I use the custom format with -Z 0 compression or the tar format?

Thanks.

On 6/14/06, Scott Marlowe <smarlowe@g2switchworks.com> wrote:
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.



--
John E. Vincent
lusis.org@gmail.com ------=_Part_8822_10722423.1150308679487--