Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Running Multiple emerges
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
scottneh
Apprentice
Apprentice


Joined: 07 Aug 2009
Posts: 239
Location: Where the Sewer meets the Sea

PostPosted: Sun Sep 20, 2009 2:17 pm    Post subject: Running Multiple emerges Reply with quote

Anyone have any opinions on running multiple emerges in sepaerate terminal windows at the same time? Just curious ifits a good or bad practice?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Sun Sep 20, 2009 3:35 pm    Post subject: Reply with quote

It mostly works, but I would not recommend it for non-trivial cases. I had a bad experience with it once a few years ago when the locking made a mistake and allowed emerge #2 to start work on a package that emerge #1 was already building. If you are merging multiple packages that do not parallelize well, consider using the --jobs option to emerge, which will let it manage multiple merges in parallel. The problem I had was that two completely separate emerge processes were running, and thus were unaware of the details of each others' activities. If one instance of emerge manages all the jobs, it should avoid that problem.
Back to top
View user's profile Send private message
saboya
Guru
Guru


Joined: 28 Nov 2006
Posts: 552
Location: Brazil

PostPosted: Sun Sep 20, 2009 4:28 pm    Post subject: Reply with quote

Basically what Hu said. If you emerge packages that don't depende on each other, you should be fine.
Back to top
View user's profile Send private message
andreas_st
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2007
Posts: 112
Location: 48N 16E

PostPosted: Sun Sep 20, 2009 5:53 pm    Post subject: Reply with quote

It is certainly not good practice. Things like
Code:
emerge --resume --skipfirst
may not work as expected when multiple emerge processes are active.
If you want to do more in parallel, edit /etc/make.conf and increase the number for -j in MAKEOPTS.
_________________
Registered Linux user #62727
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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