bitbake-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
From: "Chen, Qi" <Qi.Chen@windriver.com>
To: "richard.purdie@linuxfoundation.org"
	<richard.purdie@linuxfoundation.org>,
	"bitbake-devel@lists.openembedded.org"
	<bitbake-devel@lists.openembedded.org>
Subject: RE: [bitbake-devel][PATCH] bitbake: add --noreply-timeout option
Date: Wed, 10 May 2023 09:43:02 +0000	[thread overview]
Message-ID: <CO6PR11MB56021F72AD89D4BC727C33CAED779@CO6PR11MB5602.namprd11.prod.outlook.com> (raw)
In-Reply-To: <25b122740ed8d9d0c62068542da4fa99c53e2dd9.camel@linuxfoundation.org>

Hi Richard,

It's not the bitbake server that takes more than 1 minute to start, it's that the 'updateConfig' command that takes more than 1 minute. From what I see, other commands finish quite fast except the actual building one.
The server was still usable, even after the second world build managed to start.

I'm not using any special configuration. All default values. I do have extra layers added, such as meta-openembedded/*, meta-virtualization, meta-browser, meta-security, meta-selinux, etc. Anyway, the task number of a world build is about 40000+.

In fact, what I really want to do is to set the timeout to be some large value on our autobuilders so that we can avoid this start-up timeout failure. If such patch is not suitable for the official bitbake, I'll make it a local patch until our autobuilders are configured more properly. Do you have any suggestion?

That's all the information and the background.

Regards,
Qi

-----Original Message-----
From: bitbake-devel@lists.openembedded.org <bitbake-devel@lists.openembedded.org> On Behalf Of Richard Purdie via lists.openembedded.org
Sent: Wednesday, May 10, 2023 3:52 PM
To: Chen, Qi <Qi.Chen@windriver.com>; bitbake-devel@lists.openembedded.org
Subject: Re: [bitbake-devel][PATCH] bitbake: add --noreply-timeout option

On Wed, 2023-05-10 at 11:16 +0800, Chen Qi via lists.openembedded.org
wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
> 
> For now, if the client gets no reply from server when running a 
> command, it exits after a period of time. The value is currently 60s. 
> Looking at the history, this value was increased from 8s to 30s, and 
> then it was increased again to 60s.
> 
> For now, what I can see is that when running one world build on a
> 128 core, 512G server, starting a second build has a chance to fail at 
> updateConfig.
> 
> Instead of increasing this value again and again, let's add an option 
> for easier customization of this value.
> 
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>  bitbake/lib/bb/main.py           |  7 ++++++-
>  bitbake/lib/bb/server/process.py | 19 ++++++++++---------
>  2 files changed, 16 insertions(+), 10 deletions(-)

You're saying that the server can take over a minute to start up and this is considered acceptable?

What configuration is the other world build running with? I'd suggest the system is so overloaded it isn't useful any more and you should have pressure control enabled or other mechanisms to allow the system to function.

I'm not keen to make this any more configurable as 60s should be enough and if it isn't, there are different issues at play.

Having bitbake silently hang for minutes at a time isn't good for users and isn't good for CI either.

Cheers,

Richard

  reply	other threads:[~2023-05-10  9:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-10  3:16 [bitbake-devel][PATCH] bitbake: add --noreply-timeout option Qi.Chen
2023-05-10  7:52 ` Richard Purdie
2023-05-10  9:43   ` Chen, Qi [this message]
2023-05-10 10:35     ` Richard Purdie
2023-05-10 11:40       ` Chen, Qi
     [not found]       ` <175DC558A674BAA1.32438@lists.openembedded.org>
2023-05-10 15:05         ` Chen, Qi

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=CO6PR11MB56021F72AD89D4BC727C33CAED779@CO6PR11MB5602.namprd11.prod.outlook.com \
    --to=qi.chen@windriver.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).