View previous topic :: View next topic |
Author |
Message |
Lasitus Apprentice
Joined: 05 Oct 2002 Posts: 188 Location: Orlando, FL
|
Posted: Wed Feb 26, 2003 11:32 pm Post subject: An idea to speed up installs |
|
|
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 |
|
|
Lasitus Apprentice
Joined: 05 Oct 2002 Posts: 188 Location: Orlando, FL
|
Posted: Wed Feb 26, 2003 11:37 pm Post subject: |
|
|
Does GRP do this? Perhaps I should have read about it before suggesting this. |
|
Back to top |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Wed Feb 26, 2003 11:45 pm Post subject: |
|
|
You'd have to download both binaries (GRP) and the sources... That's just a bit too much. I vote NAY _________________ Lego my ego, and I'll lego your knowledge
www.tuxslare.org - My reborn website |
|
Back to top |
|
|
gsfgf Veteran
Joined: 08 May 2002 Posts: 1266
|
Posted: Wed Feb 26, 2003 11:56 pm Post subject: |
|
|
Lasitus wrote: | Does GRP do this? Perhaps I should have read about it before suggesting this. |
I believe it will. |
|
Back to top |
|
|
plate Bodhisattva
Joined: 25 Jul 2002 Posts: 1663 Location: Berlin
|
Posted: Thu Feb 27, 2003 2:20 am Post subject: |
|
|
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. |
|
Back to top |
|
|
Lasitus Apprentice
Joined: 05 Oct 2002 Posts: 188 Location: Orlando, FL
|
Posted: Thu Feb 27, 2003 5:35 am Post subject: |
|
|
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 |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Thu Feb 27, 2003 11:30 am Post subject: |
|
|
darktux wrote: | You'd have to download both binaries (GRP) and the sources... That's just a bit too much. I vote NAY |
_________________ Lego my ego, and I'll lego your knowledge
www.tuxslare.org - My reborn website |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20485
|
Posted: Thu Feb 27, 2003 2:07 pm Post subject: |
|
|
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 |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Thu Feb 27, 2003 5:04 pm Post subject: |
|
|
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. _________________ Lego my ego, and I'll lego your knowledge
www.tuxslare.org - My reborn website |
|
Back to top |
|
|
Lasitus Apprentice
Joined: 05 Oct 2002 Posts: 188 Location: Orlando, FL
|
Posted: Thu Feb 27, 2003 6:12 pm Post subject: |
|
|
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 |
|
|
Naughtyus Guru
Joined: 14 Jul 2002 Posts: 463 Location: Vancouver, BC
|
Posted: Fri Feb 28, 2003 1:06 am Post subject: |
|
|
What about a distributed computing type effort for pre-compiling (and hosting?) binaries for different systems? |
|
Back to top |
|
|
seratne n00b
Joined: 27 Jun 2002 Posts: 5
|
Posted: Fri Feb 28, 2003 1:10 am Post subject: |
|
|
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 |
|
|
Arthur Vandelay n00b
Joined: 09 Jan 2003 Posts: 55
|
Posted: Fri Feb 28, 2003 1:27 am Post subject: |
|
|
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 |
|
|
moosesocks n00b
Joined: 09 Dec 2002 Posts: 36
|
Posted: Fri Feb 28, 2003 2:09 am Post subject: |
|
|
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 |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
|
Back to top |
|
|
|