Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id C1B3C63355F for ; Sun, 21 Mar 2010 14:04:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60737-09 for ; Sun, 21 Mar 2010 17:04:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f221.google.com (mail-bw0-f221.google.com [209.85.218.221]) by mail.postgresql.org (Postfix) with ESMTP id 085E863229A for ; Sun, 21 Mar 2010 14:04:01 -0300 (ADT) Received: by bwz21 with SMTP id 21so4589294bwz.35 for ; Sun, 21 Mar 2010 10:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=MFwswZ8vy+1uurZXslQObnx9oP0JjK84wLF2VFFYM7c=; b=FaURrMorgIE6J9g3ODZrBbHYNF4G4FQ2Ux/v01kqPmm0Sp+TOIZKOabNws0ryQsQ8i WQPpzpXGPfANfVkYiLv0DYApErxAzSTEIpMOP9EPq35UMICt6Vx7POnCh19V4ttzSXar Jsqd9FsxmKm+G6OnC1cHlYsxdLOf2ahFGLOiQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=cHi9ikufMV9w7fkRbJHYdQ7FkF2kZIZvVjI4mzXZHgwPGB5ahYxea7FcXlh0iYnxGf +bgkHQNsPaYIlzh/u94Vsl43BheFdku9MDPPaQ7WJVvglgeNhFWKbOAuq1drPgWv4Jl3 MCvsITfFZr7cgf0975RToBKBs9K64+2Uj1tjQ= MIME-Version: 1.0 Received: by 10.204.85.73 with SMTP id n9mr2430693bkl.71.1269191040705; Sun, 21 Mar 2010 10:04:00 -0700 (PDT) Date: Sun, 21 Mar 2010 12:04:00 -0500 Message-ID: Subject: GZIP of pre-zipped output From: Dave Crooke To: David Newall Cc: pgsql-performance@postgresql.org, robertmhaas@gmail.com, Tom Lane , Craig Ringer Content-Type: multipart/alternative; boundary=0016e6d9728a22269a04825291e7 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201003/260 X-Sequence-Number: 38085 --0016e6d9728a22269a04825291e7 Content-Type: text/plain; charset=ISO-8859-1 If you are really so desparate to save a couple of GB that you are resorting to -Z9 then I'd suggest using bzip2 instead. bzip is designed for things like installer images where there will be massive amounts of downloads, so it uses a ton of cpu during compression, but usually less than -Z9 and makes a better result. Cheers Dave On Mar 21, 2010 10:50 AM, "David Newall" wrote: Tom Lane wrote: > > I would bet that the reason for the slow throughput is that gzip > is fruitlessl... Indeed, I didn't expect much reduction in size, but I also didn't expect a four-order of magnitude increase in run-time (i.e. output at 10MB/second going down to 500KB/second), particularly as my estimate was based on gzipping a previously gzipped file. I think it's probably pathological data, as it were. Might even be of interest to gzip's maintainers. --0016e6d9728a22269a04825291e7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

If you are really so desparate to save a couple of GB that you are resor= ting to -Z9 then I'd suggest using bzip2 instead.

bzip is designed for things like installer images where there will be ma= ssive amounts of downloads, so it uses a ton of cpu during compression, but= usually less than -Z9 and makes a better result.

Cheers
Dave

On Mar 21, 2010 10:50 AM, "David Newall&q= uot; <postgresql@davidnewa= ll.com> wrote:

Tom Lane wrote:
= >
> I would bet that the reason for the slow throughput is that gzip
&g= t; is fruitlessl...

Indeed, I didn't expect much reduction in size, but I also didn't e= xpect a four-order of magnitude increase in run-time (i.e. output at 10MB/s= econd going down to 500KB/second), particularly as my estimate was based on= gzipping a previously gzipped file. =A0I think it's probably pathologi= cal data, as it were. =A0Might even be of interest to gzip's maintainer= s.

--0016e6d9728a22269a04825291e7--