From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FjLs2-0002y7-H1 for garchives@archives.gentoo.org; Thu, 25 May 2006 19:51:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k4PJoQuj005780; Thu, 25 May 2006 19:50:26 GMT Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k4PJiSbv021494 for ; Thu, 25 May 2006 19:44:29 GMT Received: by nz-out-0102.google.com with SMTP id z3so1842982nzf for ; Thu, 25 May 2006 12:44:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KiDRsAZYmQuRdBpas/Re+xOeFA5ScZVQsMRwMsQn1o4rnYHNQvZ1adADSjPtQjmlEYQ9E+hHfYLVLzuUokxAsD3SKbNCd00O95XcJAKbNrIIKOEdZjLSPccEJhwtDKmtjLVOa9WN5NUNAc6OauPZJhofOkFUkwxnCMbvUuMXuno= Received: by 10.64.53.12 with SMTP id b12mr4499361qba; Thu, 25 May 2006 12:44:28 -0700 (PDT) Received: by 10.64.91.13 with HTTP; Thu, 25 May 2006 12:44:28 -0700 (PDT) Message-ID: <342e1090605251244y65e38172r81a196c21592c600@mail.gmail.com> Date: Thu, 25 May 2006 16:44:28 -0300 From: "Daniel da Veiga" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Now Know Why Portage Is So Slow In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Disposition: inline References: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k4PJiSbv021494 X-Archives-Salt: 76190e76-d5c7-4c56-a97a-88e07976c033 X-Archives-Hash: 91d510c35314bac2483ff0aa09cf4e44 On 5/25/06, Lord Sauron wrote: > I think I may have made a break through here! > > I've always noticed that everything portage is very slow. It's like > it's having to un-tar and un-bzip everything all the time... lo and > behold, it is. No, it is not. > > I've found (after much exploration) that there is a archive: > /portage-20060123.tar.bz2 Simply a portage snapshot, maybe the one you used to install Gentoo in the first place? Take a look at the date and tell me I'm wrong. > > This has - to the best of my knowledge - all the ebuild headers or > whatever for everything. I know I can un-tar this and all, however, I > want portage to use it in its uncompressed state, just to speed things > up. I'm not burning for hard drive space, so a little more speed > would be great. Of course, it is a portage snapshot, it has a whole compressed portage tree, used to install, or update portage when using alternative methods for those (like me) that lack the capacity to use remote RSYNC. > > However, I have no idea where to start to try and configure portage to > reflect a change like this. I've read the man pages for ebuild and > emerge several times over without finding any hints, so I was thinking > someone on this list would know. There's no "change" and there's no such feature. If you take a look at /usr/portage, you'll notice that is has all "portage related" stuff there, a snapshot is decompressed there when you install (correct me if I'm wrong, but you installed using the Gentoo Installer, didn't you? if you had a complete experience of Gentoo install, you would know that by now, that's why I strongly advice new users to AVOID THE INSTALLER). If you sync once in a while, it is updated. Portage is not kept compressed. > > I also think that there's another file, /metadata.tar.bz2, which I > think is portage-related. If possible I'd like to uncompress that as > well. Oh, this one was a good choice, metadata is used by portage, but if you take a look at /usr/portage/metadata, it is uncompressed there too, and that is what portage uses. > > I think this is the cause of a slow portage because everything takes a > long time to start going, then it's just fine. It takes about as long > to start going as it does to open the archive > /portage-20060123.tar.bz2 - conincidence? I think not! But it is. That's because of caching, not because it uncompress everything every time and compress it again later, that would be stupid (forgive my language). > > I also get the bonehead award: there was a new kernel sitting on my > hard drive and just yesterday I found and installed it. It was > remarkably easy to install! I loaded the configuration file from my > old kernel and then just make && make install and it worked! I didn't > even have to edit /boot/grub/menu.lst! Dang... I got done and said > "that was easy." I think I'm really getting the hang of all this! You have run an "emerge -u world" and it got the kernel sources, you have no special needs and so the default configuration fit your need, compiling kernels is EASY, making them work, that's a hard one. You sincerely must be booting from your old kernel and your /usr/src/linux link must be pointing at your old sources, else you would have some problems and probably would have to recompile, reconfigure some stuff, because after make and all, you should copy the image to /boot and, if necessary, change the grub.conf (menu.lst) to point at the right file. See the Kernel upgrade guide at Gentoo.org for more info. -- Daniel da Veiga Computer Operator - RS - Brazil -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ ------END GEEK CODE BLOCK------ -- gentoo-user@gentoo.org mailing list