public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Daniel da Veiga" <danieldaveiga@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Now Know Why Portage Is So Slow
Date: Thu, 25 May 2006 16:44:28 -0300	[thread overview]
Message-ID: <342e1090605251244y65e38172r81a196c21592c600@mail.gmail.com> (raw)
In-Reply-To: <e5a3e9ac0605251145x246593cfr8d061b349a95160d@mail.gmail.com>

On 5/25/06, Lord Sauron <lordsauronthegreat@gmail.com> 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



  parent reply	other threads:[~2006-05-25 19:51 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-25 18:45 [gentoo-user] Now Know Why Portage Is So Slow Lord Sauron
2006-05-25 19:30 ` [gentoo-user] " Thomas Kirchner
2006-05-25 23:00   ` Lord Sauron
2006-05-25 23:12     ` Bo Ørsted Andresen
2006-05-26  2:12       ` Lord Sauron
2006-05-26  2:22         ` Hemmann, Volker Armin
2006-05-26  4:04           ` Ryan Tandy
2006-05-26  5:48           ` Alexander Skwar
2006-05-26  7:25             ` Neil Bothwick
2006-05-27 11:42               ` Iain Buchanan
2006-05-27 13:09                 ` Alexander Skwar
2006-05-27 13:44                 ` Bo Ørsted Andresen
2006-05-27 18:29                   ` Lord Sauron
2006-05-28 15:06                     ` [gentoo-user] " Thomas Kirchner
2006-05-29 20:52                       ` Lord Sauron
2006-05-26 15:51             ` [gentoo-user] " Hemmann, Volker Armin
2006-05-26 16:13               ` Bo Ørsted Andresen
2006-05-26 19:04                 ` Hemmann, Volker Armin
2006-05-26 19:28                   ` Alexander Skwar
2006-05-26 22:25                     ` Hemmann, Volker Armin
2006-05-26 22:43                       ` Neil Bothwick
2006-05-27  0:15                         ` Hemmann, Volker Armin
2006-05-27  6:16                       ` Alexander Skwar
2006-05-27  7:58                         ` Neil Bothwick
2006-05-27  8:36                           ` Steven Susbauer
2006-05-27  8:37                             ` Alexander Skwar
2006-05-25 23:41     ` Teresa and Dale
2006-05-25 23:51     ` Iain Buchanan
2006-05-26  4:33       ` Lord Sauron
2006-05-26  7:28       ` Neil Bothwick
     [not found]         ` <20060526131947.7354f200@lx-arnau.pic.es>
2006-05-26 13:48           ` Alexander Skwar
2006-05-26  4:00     ` Ryan Tandy
2006-05-25 19:44 ` Daniel da Veiga [this message]
2006-05-25 19:59   ` Thomas Kirchner
2006-05-26  4:45     ` Lord Sauron
2006-05-29  1:26       ` [gentoo-user] " Thomas Kirchner
2006-05-29 20:55         ` Lord Sauron
2006-05-29 22:26           ` Bo Ørsted Andresen
2006-05-25 20:25   ` [gentoo-user] " Steven Susbauer
2006-05-25 20:33     ` Daniel da Veiga
2006-05-25 21:07       ` Neil Bothwick
2006-05-25 21:20         ` Daniel da Veiga
2006-05-25 23:56           ` Iain Buchanan
2006-05-26  2:50             ` Daniel da Veiga
2006-05-26  3:58               ` Iain Buchanan
2006-05-26 17:00               ` Lord Sauron
2006-05-26  2:40       ` Steven Susbauer
2006-05-26  2:51         ` Daniel da Veiga
2006-05-26  4:00           ` Richard Fish
2006-05-26  4:42   ` Lord Sauron
2006-05-26  7:55     ` leszek
2006-05-26  8:15       ` leszek
2006-05-26 17:02       ` Lord Sauron
2006-05-26 19:23         ` Neil Bothwick
2006-05-27 11:40           ` Iain Buchanan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=342e1090605251244y65e38172r81a196c21592c600@mail.gmail.com \
    --to=danieldaveiga@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox