From owner-cvs-src@FreeBSD.ORG Tue Dec 9 16:19:13 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3970416A4CE; Tue, 9 Dec 2003 16:19:13 -0800 (PST) Received: from perrin.nxad.com (internal.nxad.com [69.1.70.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EE2343D2C; Tue, 9 Dec 2003 16:18:56 -0800 (PST) (envelope-from sean@nxad.com) Received: by perrin.nxad.com (Postfix, from userid 1001) id 9A07B21058; Tue, 9 Dec 2003 16:17:24 -0800 (PST) Date: Tue, 9 Dec 2003 16:17:24 -0800 From: Sean Chittenden To: Tim Kientzle Message-ID: <20031210001724.GB16547@perrin.nxad.com> References: <200312072352.hB7Nqsw6011333@repoman.freebsd.org> <20031208190305.GA956@cirb503493.alcatel.com.au> <20031209070020.GC59494@perrin.nxad.com> <20031209165827.GA18959@dragon.nuxi.com> <3FD65A5D.6060407@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FD65A5D.6060407@acm.org> X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 3849 3760 1AFE 7B17 11A0 83A6 DD99 E31F BC84 B341 X-Web-Homepage: http://sean.chittenden.org/ User-Agent: Mutt/1.5.4i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: Scott Long cc: cvs-all@FreeBSD.org cc: obrien@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/conf GENERIC src/sys/alpha/conf GENERIC src/sys/sparc64/conf GENERIC src/sys/amd64/conf GENERIC src/sys/pc98/conf GENERIC X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2003 00:19:13 -0000 > >On Mon, Dec 08, 2003 at 11:00:20PM -0800, Sean Chittenden wrote: > > > >>... Moving from gzip to bzip2 for the base files reduces the > >>current size of the base files by about 13-22%. > > > >I've been trying to move us to bzip2 for the base distribution files > >since 4.6 (2 years now). RE has blocked it before ... > > Two observations: > 1) bunzip2 requires almost 4MB of memory, > compared to gunzip's 600KB. You must be talking about RAM and not disk space. % du -h /usr/bin/bzip2 /usr/lib/libbz2.so.1 26K /usr/bin/bzip2 62K /usr/lib/libbz2.so.1 A few notes on RAM consumption: *) Kiss the notion of getting stock FreeBSD to run on your tipped out 8086 w/ 4MB of RAM. :) Last I heard, base FreeBSD required 8MB of RAM. With a 128MB stick costing ~$20, I'm hard pressed to scrounge up any sympathy for those trying to run the latest and greatest on the oldest and most skanky. For the 8MB machines out there, however, there's the -s switch to bzip2 that reduces the runtime size by about 50% down to ~2300K. man bzip2 *) For those folks, myself included, who use FreeBSD on devices... we're not using bzip2 on them and aren't about to use a CD to install an OS onto an EPROM. :) > 2) bunzip2 is about 10x slower than gunzip on my system. > (Decompressing the openoffice tarball: 42s vs. 4s) 10% speed vs. 20% disk on install CDs. *shrug* With CPUs getting faster and the standard ISO image still being a CD (no gripes from the DVD users in the crowd!) that's confined to ~660MB, I'd say space requirements win out. I think speed of install only matters on TV spots when we're watching Mark Murray install a complete FreeBSD server in 3min (note, 120% of 3min is about 3.5min... not catastrophic loss of performance for what is essentially a one time operation). For the extra space (potentially up to ~85MB-145MB), I think the 30sec is worth it. Oh, and aren't we already using bzip2 for the packages? Given that's the bulk of the time that would be spent on installations for desktops, doesn't that make this a rather mute point? > Switching to bzip2 format could significantly slow installs and/or > boost minimum memory requirements. Eh, perspective... it's not that bad. > Has anyone built a set of bzip2 install CDs and measured > the time hit and/or memory requirements? No, but here's the sh script that'd give you the data w/o building a release: cat base.[ab] > base.gz gunzip -c base.gz > base bzip2 -9c base > base.bz2 /usr/bin/time /usr/bin/gunzip -c base.gz > /dev/null /usr/bin/time /usr/bin/bunzip -c base.bz2 > /dev/null /usr/bin/time /usr/bin/bunzip -sc base.bz2 > /dev/null -sc -- Sean Chittenden