Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 16153 invoked from network); 22 Jan 2008 17:21:09 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-69-64-49-119.inaddr.intergenia.de with SMTP; 22 Jan 2008 17:21:08 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B33737EB2AF;
 Tue, 22 Jan 2008 18:21:08 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 14110-06; Tue, 22 Jan 2008 18:21:08 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 2D2777EB259;
 Tue, 22 Jan 2008 18:21:08 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 22 Jan 2008 18:18:58 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 38FE97EAF6A
 for <oracle-l@freelists.org>; Tue, 22 Jan 2008 18:18:58 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 13880-04 for <oracle-l@freelists.org>;
 Tue, 22 Jan 2008 18:18:58 -0500 (EST)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C681E7EAF65
 for <oracle-l@freelists.org>; Tue, 22 Jan 2008 18:18:57 -0500 (EST)
Received: by fg-out-1718.google.com with SMTP id d23so2066829fga.32
        for <oracle-l@freelists.org>; Tue, 22 Jan 2008 15:18:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        bh=sTE3DO3FQfSRUkZmPJgBfNrPM9upio7GsjhSgR8L90I=;
        b=j+HSKRStv9hpUvR/S1ft+oufaqa6Deqow1d8FY+sOQHa9sn321lgQnxUNPK4FgECE3h+c2y5c8wSQPO0X6Rqzw4iJmkpV+vl42FTb4SsiQhL1Hg6NyRHmVlsLRFJz38HIfy9YNKO7ZABSZE8/kBk717R0dovcYTtHlfWXM2Kxzk=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=w5w0GvgSnQKdSxeUB9ztp3PTm2mhqblak0R7+5zHNguC6lKkp2Eyu6i8cXnjp4ZRE1GIe1JaMlZSUd4Gbzcsgs97CJqgRtFUTCb+M1MkbHtkOg56Apouhtf7OoPA/Q35LawZhY68n9Q1PXLkPyIDcBusYg874NZzxvzkGAAagJQ=
Received: by 10.86.51.2 with SMTP id y2mr8251363fgy.6.1201043936477;
        Tue, 22 Jan 2008 15:18:56 -0800 (PST)
Received: by 10.86.83.9 with HTTP; Tue, 22 Jan 2008 15:18:56 -0800 (PST)
Message-ID: <329b3afe0801221518x36a941e1ga2ca456f7a311152@mail.gmail.com>
Date: Tue, 22 Jan 2008 20:18:56 -0300
From: "Luis Fernando Cerri" <lfcerri@gmail.com>
To: alberto.dellera@gmail.com
Subject: Re: gzip vs. compress
Cc: rafiq9857@hotmail.com, joe_dba@hotmail.com, oracle-l@freelists.org
In-Reply-To: <4ef2fbf50801221450g7a887eb7w9a0e0a6b7aac8a0f@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <BLU108-W9E42A6E05C8CC5384D638973E0@phx.gbl>
	 <BAY107-W15CE9A0AFF45D13DA8C1BBA13E0@phx.gbl>
	 <4ef2fbf50801221450g7a887eb7w9a0e0a6b7aac8a0f@mail.gmail.com>
X-archive-position: 4853
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: lfcerri@gmail.com
Precedence: normal
Reply-to: lfcerri@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain

Adding my 0.02, you'd can do some tests on your box and, as others
have said, make your mind based on what is cheaper for you: disk space
or CPU.


Original random.out is about 7MB:



$ time gzip random.out

real  0m7.231s
user  0m6.650s
sys   0m0.540s


$ ls -l random.out.gz
-rw-r--r--    1 owner users       39641 Jan 22 11:39 random.out.gz



$ time compress random.out

real  0m26.246s
user  0m22.470s
sys   0m1.220s



$ ls -l random.out.Z
-rw-r--r--    1 owner users      386673 Jan 22 11:39 random.out.Z


HTH,
Cerri


2008/1/22, Alberto Dell'Era <alberto.dellera@gmail.com>:
> On Jan 22, 2008 9:04 PM, M Rafiq <rafiq9857@hotmail.com> wrote:
> >  Only observation is high CPU usage for gzip than compress though.
>
> Also worth mentioning:
>
> > man gzip
> (snip)
> -# --fast --best
>        Regulate  the  speed  of  compression  using  the specified
> digit #, where -1 or --fast indicates the fastest compression
>        method (less compression) and -9 or --best indicates the
> slowest compression method (best compression).  The default com-
>        pression level is -6 (that is, biased towards high compression
> at expense of speed).
>
> probably (not tested myself) you might experience less CPU utilization
> by setting a low compression rate, if CPU is at a premium.
>
> --
> Alberto Dell'Era
> "the more you know, the faster you go"
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>
--
http://www.freelists.org/webpage/oracle-l


