From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11930 invoked from network); 28 Mar 2004 18:02:47 +0000 Received: from smtp.gentoo.org (128.193.0.39) by eagle.gentoo.oregonstate.edu with DES-CBC3-SHA encrypted SMTP; 28 Mar 2004 18:02:47 +0000 Received: from lists.gentoo.org ([128.193.0.34] helo=eagle.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.24) id 1B7ecL-00029G-Qw for arch-gentoo-portage-dev@lists.gentoo.org; Sun, 28 Mar 2004 18:02:41 +0000 Received: (qmail 5999 invoked by uid 50004); 28 Mar 2004 18:02:40 +0000 Mailing-List: contact gentoo-portage-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail Reply-To: gentoo-portage-dev@lists.gentoo.org X-BeenThere: gentoo-portage-dev@gentoo.org Received: (qmail 31184 invoked from network); 28 Mar 2004 18:02:39 +0000 Message-ID: <1188.10.97.1.45.1080496947.squirrel@127.0.0.1> Date: Sun, 28 Mar 2004 20:02:27 +0200 (CEST) From: "Bart Van Kerkhove" To: gentoo-portage-dev@lists.gentoo.org Reply-To: overige.vk@easynet.be User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: [gentoo-portage-dev] downloading kernel sources with portage X-Archives-Salt: 886e18db-a1f2-418a-a35a-dba45cfce653 X-Archives-Hash: 7d39babe58c1f83af031f516a193e554 Hi there, I’ve been using Gentoo Linux for about a year now and one thing that has been bothering me is that every time a new kernel comes out portage downloads the full version of the new kernel instead of a patch. Since every kernel gets stored in distfiles it would be very easy to use the older kernel and only download the patch. For example the 2.6.x series: linux-2.6.0.tar.bz2 32476 KB 32 MB linux-2.6.1.tar.bz2 32461 KB 32 MB linux-2.6.2.tar.bz2 33106 KB 32 MB linux-2.6.3.tar.bz2 33469 KB 33 MB linux-2.6.4.tar.bz2 33581 KB 33 MB linux-2.6.*.tar.bz2 165093 KB 161 MB Since portage has downloaded all 5 full kernels for me I’ve downloaded 160MB of kernel sources. If we had simply patched the allready stored 2.6.0 kernel it would have been only 40MB: linux-2.6.0.tar.bz2 32476 KB 32 MB patch-2.6.1.bz2 760 KB 1 MB patch-2.6.2.bz2 2268 KB 2 MB patch-2.6.3.bz2 2006 KB 2 MB patch-2.6.4.bz2 2210 KB 2 MB linux.*+patch.* 39720 KB 39 MB I’ve tried this myself and it’s as easy as: tar -xvjpf linux-2.6.0.tar.bz2 && cd linux-2.6.0 patch -p1 < ../patch-2.6.1 patch -p1 < ../patch-2.6.2 patch -p1 < ../patch-2.6.3 patch -p1 < ../patch-2.6.4 cd .. && mv linux-2.6.0 linux-2.6.4 Since bandwith doesn’t grow on trees and the patching doesn’t take long, saving far over a gigabyte every 10 users it seems to me this is well worth it. I understand we can’t patch forever, but every 5 kernels or so is a big saving in bandwith. Comments? What do you think? FrostFire -- gentoo-portage-dev@gentoo.org mailing list