[OE-core] [PATCH 1/1] cmake-native: Set --parallel for configure
Burton, Ross
ross.burton at intel.com
Thu Dec 20 12:22:46 UTC 2018
On Thu, 20 Dec 2018 at 12:16, Burton, Ross <ross.burton at intel.com> wrote:
> I see similar wins here, walltime for cmake-native's build goes from
> five minutes to one minute.
For anyone playing along at home, this is what I did:
Cleaned tmp, applied patch to the mut branch.
$ git checkout HEAD^; bitbake cmake-native -C unpack
$ git checkout mut ; bitbake cmake-native -C unpack
Force a full build of cmake-native for both commits.
Then use buildstats-diff to compare the runs:
$ buildstats-diff /data/poky-tmp/master/buildstats/*
PKG TASK ABSDIFF RELDIFF CPUTIME1 -> CPUTIME2
cmake-native do_configure 29.1s +11.0% 265.7s -> 294.8s
Cumulative cputime:
18.0s +2.2% 13:41.4 (821.4s) -> 13:59.3 (839.3s)
Oh, that's odd: it took *more* time to run. But the output from my
bitbake clearly showed bitbake taking five minutes before and one
minute after.
Oh, *walltime* not *cputime*.
$ buildstats-diff /data/poky-tmp/master/buildstats/* --diff-attr walltime
PKG TASK ABSDIFF RELDIFF WALLTIME1 -> WALLTIME2
cmake-native do_configure -214.6s -82.4% 260.4s -> 45.8s
Cumulative walltime:
-218.4s -72.3% 05:02.1 (302.1s) -> 01:23.7 (83.7s)
cputime is generally a more useful metric during a build, but for
isolated tests like this walltime is also relevant. This is
demonstrating that the same work is happening, but in parallel.
Ross
More information about the Openembedded-core
mailing list