Re: What are the key factors for yocto build speed?


Richard Purdie
 

On Thu, 2020-03-19 at 11:43 +0000, Mikko.Rapeli@... wrote:
On Thu, Mar 19, 2020 at 11:04:26AM +0000, Richard Purdie wrote:
Recipe parsing should hit 100% CPU, its one of the few places we
can do
that.
I'm not fully aware what bitbake does before starting task execution.
With sumo, there is an initial spike in CPU use and then a long
single thread wait where log shows "Initialising tasks..." and Cooker
process is using a single core. For me this takes at least one
minutes for every build. Same is visible with zeus too.
This isn't recipe parsing but runqueue setup and taskgraph calculation
which happens after parsing but before task execution. More recent
bitbake is probably a bit better at it but it is unfortunately a
single threaded process :(

Cheers,

Richard

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.