From owner-svn-src-head@FreeBSD.ORG Sun May 12 21:14:37 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A16FDAC8; Sun, 12 May 2013 21:14:37 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id F2C6FF78; Sun, 12 May 2013 21:14:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.5/8.14.5) with ESMTP id r4CLEZB6077368; Mon, 13 May 2013 01:14:35 +0400 (MSK) (envelope-from marck@rinet.ru) Date: Mon, 13 May 2013 01:14:35 +0400 (MSK) From: Dmitry Morozovsky To: Baptiste Daroussin Subject: Re: svn commit: r250565 - head/etc In-Reply-To: <20130512205146.GZ91136@ithaqua.etoilebsd.net> Message-ID: References: <201305121523.r4CFNxBR055568@svn.freebsd.org> <518FFA4B.9080505@freebsd.org> <20130512205146.GZ91136@ithaqua.etoilebsd.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (woozle.rinet.ru [0.0.0.0]); Mon, 13 May 2013 01:14:35 +0400 (MSK) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Eitan Adler , Matthew Jacob X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 21:14:37 -0000 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 *** ------------------------------------------------------------------------