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 75A869FA3D7 for ; Wed, 14 Jun 2006 18:18:26 -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 73619-04 for ; Wed, 14 Jun 2006 18:18:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by postgresql.org (Postfix) with ESMTP id 01A139FA5C8 for ; Wed, 14 Jun 2006 18:18:16 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so544455ugf for ; Wed, 14 Jun 2006 14:18:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=iyZrmVQsk3IwKXJnN8zBCHE27V1st9yrTpNFT8licKad5dzimYEBrwzu4oYcgWLRJHfyGTlXaREyfunES644bgneBl7zhlDWwXLTQFpcyIv2wYn6Z2p1YsDgY5bBmN3O9CcMaJbInCiJ0xfPKZysC18e8lsme88/lhvBf6Ib40w= Received: by 10.67.97.7 with SMTP id z7mr1062360ugl; Wed, 14 Jun 2006 14:18:14 -0700 (PDT) Received: by 10.66.216.11 with HTTP; Wed, 14 Jun 2006 14:18:14 -0700 (PDT) Message-ID: Date: Wed, 14 Jun 2006 17:18:14 -0400 From: "John Vincent" Reply-To: pgsql-performance@lusis.org To: "Jim C. Nasby" Subject: Re: Performance of pg_dump on PGSQL 8.0 Cc: "Scott Marlowe" , "PGSQL Performance" In-Reply-To: <20060614211343.GP34196@pervasive.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12542_19336241.1150319894353" References: <44902165.7020502@lusis.org> <1150303450.26538.9.camel@state.g2switchworks.com> <20060614211343.GP34196@pervasive.com> X-Google-Sender-Auth: 04b273d9f4f4f5ec X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/275 X-Sequence-Number: 19632 ------=_Part_12542_19336241.1150319894353 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/14/06, Jim C. Nasby wrote: > > On Wed, Jun 14, 2006 at 02:11:19PM -0400, John Vincent wrote: > > 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? > > -Z 0 should mean no compression. But the custom format is still a binary backup, no? Something you can try is piping the output of pg_dump to gzip/bzip2. On > some OSes, that will let you utilize 1 CPU for just the compression. If > you wanted to get even fancier, there is a parallelized version of bzip2 > out there, which should let you use all your CPUs. > > Or if you don't care about disk IO bandwidth, just compress after the > fact (though, that could just put you in a situation where pg_dump > becomes bandwidth constrained). Unfortunately if we working with our current source box, the 1 CPU is already the bottleneck in regards to compression. If I run the pg_dump from the remote server though, I might be okay. -- > Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com > Pervasive Software http://pervasive.com work: 512-231-6117 > vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461 > ------=_Part_12542_19336241.1150319894353 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 6/14/06, Jim C. Nasby <jnasby@pervasive.com> wrote:
On Wed, Jun 14, 2006 at 02:11:19PM -0400, John Vincent wrote:
> 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?

-Z 0 should mean no compression.

But the custom format is still a binary backup, no?

Something you can try is piping the output of pg_dump to gzip/bzip2. On
some OSes, that will let you utilize 1 CPU for just the compression. If
you wanted to get even fancier, there is a parallelized version of bzip2
out there, which should let you use all your CPUs.

Or if you don't care about disk IO bandwidth, just compress after the
fact (though, that could just put you in a situation where pg_dump
becomes bandwidth constrained).

Unfortunately if we working with our current source box, the 1 CPU is already the bottleneck in regards to compression. If I run the pg_dump from the remote server though, I might be okay.

--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

------=_Part_12542_19336241.1150319894353--