Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1201)

Issue 2891013: Integrate parallel_emerge with emerge, boosting performance. (Closed)

Created:
10 years, 5 months ago by davidjames
Modified:
9 years, 4 months ago
Reviewers:
Nick Sanders
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Base URL:
ssh://git@chromiumos-git/crosutils.git
Visibility:
Public.

Description

Integrate parallel_emerge with emerge, boosting performance. Instead of loosely wrapping emerge, parallel_emerge now integrates tightly with emerge. This boosts performance while allowing us to map dependencies more accurately. With this change, build_image --fast can clock under 4 minutes, and build_packages --fast now clocks as low as 4:30. With the --rebuild option, build_packages takes 5:30, but it has the big benefit of producing actually-correct results. Note that this change also depends on us updating the various build scripts to prefix calls to parallel_emerge with sudo -E. TEST=Ran several parallel_emerge test cases, build_packages --fast, and build_image --fast BUG=none

Patch Set 1 : Re-upload #

Total comments: 20

Patch Set 2 : Rewrite to use classes, significantly improve performance #

Patch Set 3 : Lots of little cleanups #

Patch Set 4 : Yet more comments #

Patch Set 5 : Minor fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1082 lines, -615 lines) Patch
M parallel_emerge View 1 2 3 4 6 chunks +1082 lines, -615 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
davidjames
10 years, 5 months ago (2010-07-12 22:03:11 UTC) #1
Nick Sanders
lgtm w/ changes Basically emerge code is kind of hard to follow, and calling into ...
10 years, 5 months ago (2010-07-13 06:03:39 UTC) #2
davidjames
This should shave a minute or two off of build_packages and build_image. Check it out. ...
10 years, 5 months ago (2010-07-20 05:16:23 UTC) #3
Nick Sanders
10 years, 5 months ago (2010-07-20 05:43:40 UTC) #4
lgtm w/ comment below, plus sudo change

http://codereview.chromium.org/2891013/diff/11002/23001
File parallel_emerge (right):

http://codereview.chromium.org/2891013/diff/11002/23001#newcode1029
parallel_emerge:1029: print "Emerging", target
Can you mention that get is blocking

Powered by Google App Engine
This is Rietveld 408576698