[Buildroot] Build time increase in 2018.02
tpiepho at impinj.com
Sat Mar 10 01:14:13 UTC 2018
We've seen a big increase in build time with the latest buildroot. On
a vpshere instance, times have gone up from 45 minutes to 180+ minutes.
I think there are some issues with poor vm performance that can be
addressed outside of buildroot, but even on a real Linux workstation,
there's been a significant increase in time.
Here's a breakdown of build time by task for a build that takes 26.5
minutes. ccache is in use and is quite effectively decreasing the
compile time. I've split out all the instrumentation steps so they can
be accounted separately from the rest of host-install, etc. In this
list, host-install only includes the time spent executing the install
commands, not instrumentation or pre/post-hooks.
all other 27.78
Finding the package sizes takes more time than everything else put
together. And indeed, if I remove that step, check_bin_arch, and fake
out check-uniq-files, the build drops from 26.5 minutes to 12 minutes!
If we consider config+buid+extract+*-install to be the actual package
building and the rest overhead, then the build is about %56 overhead
and %44 building. And most of the building time is (re-)running
On the vsphere instance, the time is much much worse. I'm still
waiting for numbers. It takes hours. I think the lousy vm filesystem
performance magnifies the problem.
More information about the buildroot