Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can portage download the next file while compiling?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Filip*
n00b
n00b


Joined: 01 Sep 2004
Posts: 60
Location: Utrecht, The Netherlands

PostPosted: Sun Mar 06, 2005 10:32 am    Post subject: Can portage download the next file while compiling? Reply with quote

Hi,

When doing emerge world, portage has to download several large files (asking for the complete bandwith of my computer, but keeping the CPU free) and then compile them (keeping my CPU at 100% but my network at 0). Can't portage automatically start downloading the next file while compiling the previous? That would utilise my computer a lot more, and speed up large builds.
Perhaps this question has already been answered, but I wouldn't know where to start searching.

Filip
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Mar 06, 2005 10:38 am    Post subject: Reply with quote

Filip*,

Proceed as follows:-
In one Virtual Terminal (or xterm) run your emerge with the -f flag e.g.
Code:
emerge world -uDf
this will only fetch things from the net.
When it has a headstart, on another terminal run the same command without the -f e.g.
Code:
emerge world -uD
This emerge will find that it already has the files it needs and only compile.
If the compile catches up, you will get lock messages, because only one instance of emerge can be downloading the same file, even if both try.

Read
Code:
man emerge
for the background.
_________________
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
Filip*
n00b
n00b


Joined: 01 Sep 2004
Posts: 60
Location: Utrecht, The Netherlands

PostPosted: Sun Mar 06, 2005 10:52 am    Post subject: Reply with quote

Nice trick! I had considered something like that, but I was afraid to see those locks. It would be nice if portage did this by itself though.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Mar 06, 2005 11:22 am    Post subject: Reply with quote

Filip*,

Proper locking like that is a recent addition. So its safe to leave it unattended.
It would get in a real mess before, when the compile tried to download.
_________________
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
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Sun Mar 06, 2005 11:49 am    Post subject: Reply with quote

See https://forums.gentoo.org/viewtopic-t-297712.html, especially https://forums.gentoo.org/viewtopic-p-2111172.html#2111172

Moved to dups, please post further questions/comments in the thread above.
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