From owner-freebsd-questions@FreeBSD.ORG Fri Jul 23 19:06:51 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD5EA106564A for ; Fri, 23 Jul 2010 19:06:51 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (paka.cyberleo.net [66.219.31.21]) by mx1.freebsd.org (Postfix) with ESMTP id B58518FC13 for ; Fri, 23 Jul 2010 19:06:51 +0000 (UTC) Received: from [172.16.44.4] (h-74-2-96-2.chcgilgm.static.covad.net [74.2.96.2]) by paka.cyberleo.net (Postfix) with ESMTPSA id 2B5CF284AD; Fri, 23 Jul 2010 15:06:50 -0400 (EDT) Message-ID: <4C49E848.4060900@cyberleo.net> Date: Fri, 23 Jul 2010 14:06:48 -0500 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100710 Thunderbird/3.0.5 MIME-Version: 1.0 To: Fbsd8 References: <4C495958.5000106@a1poweruser.com> In-Reply-To: <4C495958.5000106@a1poweruser.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: bf1783@gmail.com, freebsd-questions@FreeBSD.org Subject: Re: ports INDEX file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 19:06:51 -0000 On 07/23/2010 03:56 AM, Fbsd8 wrote: > Now the Freebsd method of the 22,000 individual ports each with 3 to 5 > files is a method which has out lived its usefulness. TAKE NOTE: NO > FLAME WAR INTENDED. I just think a option should exist for us who don't > follow the bleeding edge. Sure to some people that big ports tree is no > big deal, but I bet they don't do backups. That ports tree directory is > a large resource hog if you lift the blinders and look at the big picture. Not really: # mkisofs -D -R -no-pad -iso-level 4 -V ports-$(date "+%Y%m%d%H%M%S") -o ports.iso /usr/ports # mkuzip -s 65536 -o ports.iso.uzip ports.iso # mdconfig -a -t vnode -u 7 -f ports.iso # kldload geom_uzip # mount -t cd9660 /dev/md7.uzip /usr/ports # du -sh ports ports.iso ports.iso.uzip # As of last update July 4th 834M ports 565M ports.iso 69M ports.iso.uzip Needs mkisofs and FreeBSD >= 7, but it reduces the impact of the tree drastically, and can speed up metadata operations, if your disk happens to be slower than your CPU, as the whole tree (or at least all the filesystem metadata) can be feasibly cached compressed in memory. It also ensures congruent package versions, if you process the tree on one machine and distribute it to all others. Plus, you can exclude the tree from backup entirely and just cache the compressed file someplace safe. I use this same trick with Gentoo's Portage tree, with squashfs, and observe similar benefits. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/