Gentoo Archives: gentoo-user

From: Fernando Meira <fmeira@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] genlop times was: migrating to gcc-3.4.4
Date: Thu, 25 Aug 2005 17:42:05
Message-Id: a3c2e88b050825103375335b94@mail.gmail.com
In Reply to: Re: [gentoo-user] genlop times was: migrating to gcc-3.4.4 by Willie Wong
1 On 8/25/05, Willie Wong <wwong@×××××××××.edu> wrote:
2 >
3 > On Thu, Aug 25, 2005 at 11:51:32AM +0000, Fernando Meira wrote:
4 > > I have a P4-2.4GHz laptop.
5 > > I forgot to say that the estimation time was made by genlop. And was
6 > quite
7 > > wrong! It took something like 11h to compile 112 packages, (though I've
8 > > interrupted while compiling gcc-3.3.6.. so it had to restart it anew).
9 > From
10 > > this, I don't know if I should trust genlop anymore.. or is there
11 > something
12 > > to configure so that it is more accurate?
13 > >
14 > > Just for the record, the migration to gcc-3.4.4 went just fine.. until
15 > now
16 > > at least. :)
17 >
18 > hum. Genlop looks at the past emerge times of the packages, calculates
19 > an average based on that.
20 >
21 > The one thing genlop can't do is figure out how long it takes to merge
22 > new packages. So it just skips them. That is the only way I see genlop
23 > being wrong by so much. (The other possibility is that you were
24 > running the box with a high load WHILE compiling, though I guess you
25 > won't be complaining if that were the case.)
26
27
28 That was not the case. I started emerge system just before going to bed, so
29 it had all cpu for itself (considering that the remaining apps, such as X,
30 and others, were not very active).
31 I would say that most of the emerged packages were emerged before.. but
32 maybe not that much so that genlop could be accurate. Also, a new compiler
33 was being used.. no idea how much can that change the performance.
34
35 To be honest, I've found the genlop time quite reliable... I've
36 > rebuilt my systems with --emptytree a few times in the past 6 months.
37 > (Once after killing PAM and LDAP, once after changing to hardened,
38 > once after changing from ~x86 to x86, and once after a major rehaul of
39 > my USE flags; these are on my desktop machine only). The 500 or so
40 > packages came up to be 1 day and 15 hours from genlop. The actual
41 > compiles never took more than 2 days, and that was while the computer
42 > was still in use. Once it actually finished before the estimated time.
43 >
44 > Do note that, however, genlop can only calculate its merge time based
45 > on past averages. So if you made major changes to your system, or if
46 > the codebase changed significantly upstream, genlop can be completely
47 > wrong. For example, looking at past emerges of glibc, I see the
48 > compile time goes from everything between 28 minutes to 3 hours.
49 > genlop tells me that if I were to remerge glibc it would take me 1
50 > hour and 9 minutes. But I know from experience if I were to install
51 > 2.3.5-r1, it will most likely only take me 40 minutes, and if I were
52 > to compile glibc-2.3.4.20050125-r1, it will take me about 2 hour and
53 > 10 minutes. Why the funky discrepancy I don't know. So I think that
54 > while genlop is generally rather reliable for a rough idea on how long
55 > I need to wait for the compile (i.e. is it worth it just sitting here
56 > reading a book or should I just go to bed), the numbers it give should
57 > be taken with a grain of salt if you don't have a large number of
58 > history of emerges for it to base its guesses on.
59 >
60 > W
61 >
62
63 Ok.. so I'll get better estimations the more times I update my system.
64 Great!! That was in fact the first time I've used genlop. It's quite
65 interesting to be able to predict how much something will take to emerge.
66 For what you said, "is it worth it just sitting here reading a book or
67 should I just go to bed", would it be possible to check an active emerge for
68 the estimated time left? That would tell you what you should do... does
69 genlop do that?
70
71 Cheers,
72 Fernando

Replies

Subject Author
Re: [gentoo-user] genlop times was: migrating to gcc-3.4.4 Willie Wong <wwong@×××××××××.EDU>