All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Alexander Kanavin <alex.kanavin@gmail.com>,
	bitbake-devel <bitbake-devel@lists.openembedded.org>
Subject: Re: [bitbake-devel] regression of 'world' performance?
Date: Fri, 12 Jan 2024 12:13:34 +0000	[thread overview]
Message-ID: <0186f166a0ded0d97d5e19f64a3dd8e5ad44a92f.camel@linuxfoundation.org> (raw)
In-Reply-To: <CANNYZj86b3GMtSVZMn8744HjMSMQVkzuXBTikLf4dFV0ULsvqg@mail.gmail.com>

On Fri, 2024-01-12 at 11:57 +0100, Alexander Kanavin wrote:
> there seems to be a noticeable slowdown in bitbake doing world builds,
> particularly when layers in meta-oe are added to it. I've locally
> observed Cooker process spinning at 100% while no or few tasks get
> executed, apparently deciding what to do next, and it is noticeable in
> autobuilder too, e.g. right now:
> https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3515
> 
> I'd like to profile what is happening, but not sure where to start. Suggestions?

I've noticed a few slow builds too but I'm not convinced it is bitbake.

We observed a qemuarm-oecore build take 19 hours and of that,
nativesdk-gcc (for i686) took 6 hours.

It is likely that something else on the machine (maybe in another
build) is probably taking up much of the CPU capacity, e.g. rust
building or something.

The reason I mention the nativesdk-gcc above is that at the point that
is executed, bitbake is pretty much out the equation, it is just
processing logs. Whilst it is possible bitbake is slowing it down, I
find that unlikely and there is probably some other factor at play.

It is worth noting that there is only one build currently running on
alma9-ty-1 where the above build is and there are quite often multiple
tasks completing each second when it updates.

So nothing specific I can suggest but just my observations/thoughts.

You could pull the event log json file from the build and "replay" it
with some new viewer tool to see if there is any specific delay
involved between task executions. The events should be in there to
allow that.

Cheers,

Richard


  reply	other threads:[~2024-01-12 12:13 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-12 10:57 regression of 'world' performance? Alexander Kanavin
2024-01-12 12:13 ` Richard Purdie [this message]
2024-01-12 12:27   ` [bitbake-devel] " Alexander Kanavin
2024-01-12 22:19     ` Khem Raj
2024-02-09 15:23       ` Alexander Kanavin
2024-02-09 15:43         ` Richard Purdie
2024-02-09 15:59           ` Alexander Kanavin
2024-02-09 16:05             ` Richard Purdie
2024-02-09 16:16               ` Alexander Kanavin
2024-02-09 16:22                 ` Richard Purdie
2024-02-09 17:02                   ` Alexander Kanavin
     [not found]                   ` <17B24084174823DE.15017@lists.openembedded.org>
2024-02-09 20:44                     ` Alexander Kanavin
2024-02-09 21:43                       ` chris.laplante
2024-02-09 22:50                         ` chris.laplante
2024-02-09 23:33                       ` Richard Purdie
     [not found]                       ` <17B255DB2CE33879.588@lists.openembedded.org>
2024-02-09 23:59                         ` Richard Purdie
     [not found]                         ` <17B257441406400D.588@lists.openembedded.org>
2024-02-10 15:16                           ` Richard Purdie
     [not found]                           ` <17B2894C95E031D0.14481@lists.openembedded.org>
2024-02-10 20:42                             ` Richard Purdie
     [not found]                             ` <17B29B2072FF51A8.14481@lists.openembedded.org>
2024-02-10 20:52                               ` Richard Purdie
2024-02-12 12:58                                 ` Alexander Kanavin
2024-02-13  8:57                                   ` Richard Purdie
2024-02-13  9:42                                     ` Alexander Kanavin
2024-02-13 12:41                                       ` Richard Purdie
2024-02-14  6:59                                         ` Alexander Kanavin
2024-02-14  8:05                                           ` Richard Purdie
2024-02-13 10:49                                   ` Ross Burton
2024-02-13 12:31                                     ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0186f166a0ded0d97d5e19f64a3dd8e5ad44a92f.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=alex.kanavin@gmail.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.