Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2013 01:14:35 +0400 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Eitan Adler <eadler@freebsd.org>, Matthew Jacob <mjacob@freebsd.org>
Subject:   Re: svn commit: r250565 - head/etc
Message-ID:  <alpine.BSF.2.00.1305130056280.70132@woozle.rinet.ru>
In-Reply-To: <20130512205146.GZ91136@ithaqua.etoilebsd.net>
References:  <201305121523.r4CFNxBR055568@svn.freebsd.org> <alpine.BSF.2.00.1305121952120.44610@woozle.rinet.ru> <518FFA4B.9080505@freebsd.org> <20130512205146.GZ91136@ithaqua.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 12 May 2013, Baptiste Daroussin wrote:

> > >> Log:
> > >>    Make newsyslog compress logs with xz instead of bzip2 to save space.
> > > While it may be useful for contemporary x64 machines, where CPU power is not an
> > > issue, I'm afraid it could produce more harm than goodness on old hardware
> > > and/or other architectures like arm.
> > >
> > >
> > +1
> 
> iirc there was a discussion about it a year or 2 ago, where it was stated that
> most of the time the gain of using xz for newsyslog was insignificant, pretty
> much no space saved, but the loss in cpu time was significant.

I've just prepared quick test to be feeded to ministat, but preliminary results 
are:

on *real* contemporary server
hw.model: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz
hw.ncpu: 12
amd64 stable/9

~1.5G maillog on md (and otherwise unloaded machine, LA <.3) is compressed to:

method	realtm	arsize
====================
gzip	45s	183M
bzip2	5m32s	115M
xz	11m43s	112M

all archivers are used without any special switches, just 
$arch <$log >$log.$suffix

I would tend to use xz for distributives (including freebsd-updates or 
portsnap), where compression process is quite rare, but download size is 
significant -- but not for logs, backups, or other similar once-packed data...


-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1305130056280.70132>