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:                                 ma...@freebsd.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru ***
------------------------------------------------------------------------
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to