Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
An idea to speed up installs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Lasitus
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 188
Location: Orlando, FL

PostPosted: Wed Feb 26, 2003 11:32 pm    Post subject: An idea to speed up installs Reply with quote

I was sitting here waiting for KDE to compile and an idea popped into my head. Let me start by saying I love Gentoo like the idea of customization and making a system compiled just for my very own computer. While it takes a lot of time, I am sticking with it. You can have the best of both worlds though, if you have enough hard drive space... I don't know if anyone has posted this before but here i goes:

There could be an option in make.conf for people with large HDs and good bandwidth to download precompiled binaries for say a 386 and compile later as time allows. It could work say like this:

1) The user says emerge kde
2) It downloads all precompiled packages that are dependencies of kde and extracts and installs them. (kde too of course)
3) In a database somewhere, it keeps track of what has been downloaded and optimized. I'm thinking a large que type database that deletes records completed...
4) The user walks off from the computer. An idle indicator starts compiling packages in the order downloaded and putting files with a . in front for hiding them much like the /._cfg0000name.ext
5) If a file is not in use, it replaces it and goes on....

What do you think? good idea? feasible? worthwhile?


Last edited by Lasitus on Thu Feb 27, 2003 12:10 am; edited 1 time in total
Back to top
View user's profile Send private message
Lasitus
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 188
Location: Orlando, FL

PostPosted: Wed Feb 26, 2003 11:37 pm    Post subject: Reply with quote

Does GRP do this? Perhaps I should have read about it before suggesting this.
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Wed Feb 26, 2003 11:45 pm    Post subject: Reply with quote

You'd have to download both binaries (GRP) and the sources... That's just a bit too much. I vote NAY :wink:
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Wed Feb 26, 2003 11:56 pm    Post subject: Reply with quote

Lasitus wrote:
Does GRP do this? Perhaps I should have read about it before suggesting this.


I believe it will.
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Thu Feb 27, 2003 2:20 am    Post subject: Reply with quote

gsfgf wrote:
Lasitus wrote:
Does GRP do this? Perhaps I should have read about it before suggesting this.


I believe it will.

I believe he should. :D
Back to top
View user's profile Send private message
Lasitus
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 188
Location: Orlando, FL

PostPosted: Thu Feb 27, 2003 5:35 am    Post subject: Reply with quote

ok, tell me if I'm wrong, but what I found is GRP is simply a precompiled version of something. My suggestion is the best of both worlds. Precompiled with a background compiler that optimizes when the computer isn't busy or is idle. So, it would be different.

I suppose it wouldn't be too hard to make a script do that. A simple "emerge package" with an install log would do that.
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Thu Feb 27, 2003 11:30 am    Post subject: Reply with quote

darktux wrote:
You'd have to download both binaries (GRP) and the sources... That's just a bit too much. I vote NAY :wink:

_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20485

PostPosted: Thu Feb 27, 2003 2:07 pm    Post subject: Reply with quote

Lasitus wrote:
ok, tell me if I'm wrong, but what I found is GRP is simply a precompiled version of something. My suggestion is the best of both worlds. Precompiled with a background compiler that optimizes when the computer isn't busy or is idle. So, it would be different.
So, you want the binaries to recompile themselves automatically?

gcc is a compiler. nice & emerge will compile stuff in the background. I"m not getting how your idea is different.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Thu Feb 27, 2003 5:04 pm    Post subject: Reply with quote

pjp wrote:
Lasitus wrote:
ok, tell me if I'm wrong, but what I found is GRP is simply a precompiled version of something. My suggestion is the best of both worlds. Precompiled with a background compiler that optimizes when the computer isn't busy or is idle. So, it would be different.
So, you want the binaries to recompile themselves automatically?


I think that's what he has in mind. I haven't checked out GRP, but I believe they only have binaries, and not the necessary files to build from source. Do correct me if I'm wrong. :roll:
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
Lasitus
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 188
Location: Orlando, FL

PostPosted: Thu Feb 27, 2003 6:12 pm    Post subject: Reply with quote

Quote:
So, you want the binaries to recompile themselves automatically?

Yes, the instant gratification of a precompiled binary and an optimized system that does its work while the computer is not in use... eg the user doesn't wait and has the same result as running an emerge.

I plan to make a script that does this, and I thought I would share my thoughts as it is something I really would be interested in. So, naturally I assumed someone else would be too... :-) oh well, from the sounds of it, no one would be interested in a feature such as this.
Back to top
View user's profile Send private message
Naughtyus
Guru
Guru


Joined: 14 Jul 2002
Posts: 463
Location: Vancouver, BC

PostPosted: Fri Feb 28, 2003 1:06 am    Post subject: Reply with quote

What about a distributed computing type effort for pre-compiling (and hosting?) binaries for different systems?
Back to top
View user's profile Send private message
seratne
n00b
n00b


Joined: 27 Jun 2002
Posts: 5

PostPosted: Fri Feb 28, 2003 1:10 am    Post subject: Reply with quote

I'd be interested in this. However as others have mentioned, it can be done manually with a little effort. Basically download the GRP of the package you want, install it, then emerge the same package again with a nice level that will only take idle cpu time. The only problem is getting all of the binary packages, as i believe a GRP isn't provided for every package in the portage tree.
Back to top
View user's profile Send private message
Arthur Vandelay
n00b
n00b


Joined: 09 Jan 2003
Posts: 55

PostPosted: Fri Feb 28, 2003 1:27 am    Post subject: Reply with quote

Geez, has anybody ever thought of just planning ahead when doing a big compile? Do it overnight, or when at work. This is way of life for me with my duron 700.
Back to top
View user's profile Send private message
moosesocks
n00b
n00b


Joined: 09 Dec 2002
Posts: 36

PostPosted: Fri Feb 28, 2003 2:09 am    Post subject: Reply with quote

Hmm.... let me try to clarify a few things.

What the poster wants to do is to get a system up and running in under an hour by using binary packages. When the PC is idle, the source code is then downloaded and compiled, and the binary packages are safely unmerged transparently to the user.

GRP does not do this. It simply installs a pre-compiled equivilant to the source distribution, and emerge isn't aware of it. (and the current group of GRP packages is grossly outdated, and only availible at install time).

Regarding distributed compilation, see distcc, which does exactly that. At the moment, I believe it does not work perfectly with portage.
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Fri Feb 28, 2003 12:23 pm    Post subject: Reply with quote

Actually I'm using distcc for quite some time now, read this:

http://gentoo.superlucidity.net/www/distcc.html
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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