Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suggestion: estimated emerge times?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  

What do you think?
Good idea! You're not an idiot after all.
0%
 0%  [ 0 ]
It could work..
42%
 42%  [ 6 ]
Eh.
0%
 0%  [ 0 ]
It's flawed, but not totally unfeasible.
50%
 50%  [ 7 ]
Won't work, or too inaccurate.
7%
 7%  [ 1 ]
Total Votes : 14

Author Message
Imek
Guru
Guru


Joined: 20 Jan 2004
Posts: 390
Location: Newcastle, England

PostPosted: Thu Apr 01, 2004 8:09 pm    Post subject: Suggestion: estimated emerge times? Reply with quote

Hi,

This may seem like a fatally flawed or/and n00bish suggestion, but I thought I'd suggest it anyway. When I first installed Gentoo, I was at a loss as to how long it would take to compile. I found a website which had a limited list of how long it would take to compile each program on a 1GHz machine, so you could multiply/divide it to meet your clock speed. Then I thought, why not put this into portage, so that you could tell it to estimate how long it would take to compile on your PC. Sure, it wouldn't be that accurate, but a rough estimation would really ease the installation for new people, no doubt. I don't think it would be that hard to collect the right data wouldn't be that hard, would it? Or am I wrong? Criticise as required.

Thanks,

- I
_________________
- I
(very old) "Current" desktop | Adopt an unanswered post today!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54304
Location: 56N 3W

PostPosted: Thu Apr 01, 2004 8:18 pm    Post subject: Reply with quote

Imek,

There are lots of things that contribute to compile times, not just CPU speed.

Including -pipe in CCFLAGS makes a huge difference, providing you have the memory to make use of it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Thu Apr 01, 2004 8:21 pm    Post subject: Reply with quote

It could work... but there are a lot of contingencies to consider, like USE settings, CFLAGS, memory (virtual and RAM), and network connection speed/reliability. There'd need to be a lot of work done on portage, and the algorithm to figure it out for a given package is non-trivial, or so it seems to me. Adding it up for a set of packages shouldn't be difficult. The main drawback I see is that it can't possibly be accurate, since different programs, all other things being equal, will by the nature of the beast have different compile times.

I would search bugzilla and see if anyone has posted such a feature request. If not, you could submit one. Good luck in having it implemented any time soon though. (-:
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
jdhardy
n00b
n00b


Joined: 18 Mar 2004
Posts: 6

PostPosted: Thu Apr 01, 2004 10:52 pm    Post subject: Reply with quote

A better idea would be to automate the use of LFS's SBUs (Standard Binutils Units). Basically, take a package everyone has (like binutils), time the emerge, and then scale everything to that (Mozilla, for example, would be about 5-10 SBUs). The gentoo devs have to build most of the major packages anyway for the CDs, and all the users are constantly compiling; after each emerge, upload the time taken *in SBUs* to a central server (and average them out, say), and store the SBUs in the ebuild metadata (or fetch them).

It won't be perfect (nothing is), but it would be an estimate at least. I don't know if the binutils ebuild strips CFLAGS though (it probably does), so those would have an effect as well. Maybe a better 'base' package is needed (Bash?).
Back to top
View user's profile Send private message
G-Style
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 275
Location: Toronto, Canada

PostPosted: Fri Apr 02, 2004 12:01 am    Post subject: Reply with quote

It could work, but you would have to base the times on a certain CPU speed, and many people here have many different CPU speeds to begin with. Which would make the estimated time not all that accurant.
_________________
Mastering Windows isn't impressive. But mastering Linux is.
Back to top
View user's profile Send private message
rfujimoto
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 195

PostPosted: Fri Apr 02, 2004 12:08 am    Post subject: Reply with quote

Hardware, USE flags, CFLAGS, dependencies. I disagree, there's too many uncontrollable variables. In my opinion it's better to not have something then to have something that can be consistently wrong.

There was at one time a patch for emerge to use a progress bar. It was based on a time per file algo I believe. My memory is a bit fuzzy though, so I could be wrong how it works. I'd run a search on "progress and bar" in the Doc Tips & Tricks forum.

EDIT: I found the thread
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Apr 02, 2004 12:30 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=7159 (Thats topic 7,159 of 151,384)
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum