Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3B11C54EE9 for ; Fri, 2 Sep 2022 15:56:36 +0000 (UTC) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.web09.364.1662134191392356764 for ; Fri, 02 Sep 2022 08:56:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=H+kcJVCw; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.50, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f50.google.com with SMTP id d5so1481100wms.5 for ; Fri, 02 Sep 2022 08:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date; bh=+F31VeaM65ImIk3eg7C3ElhoBQvPlWf9k7kuLLUGTwY=; b=H+kcJVCwMqdQpRDC+8XD3AGzXU4guug8Okcc1wgF6EM2BaOEur9ihL+6v9JzCftia/ IHAQfBrQm7a+SB7ZTpirvX2i3EDkcE/H95EpQLBTmVsZ1a0/Flhg66oj9C9GjOMytqxt nF0vq8xBCFhyiezuFuUXfUgeqSZeqo5VYUQu8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date; bh=+F31VeaM65ImIk3eg7C3ElhoBQvPlWf9k7kuLLUGTwY=; b=BIGmWzFe+NR4fgWd+vewKkcFVf6GJbxerBz1s0InPmC7FPuBipwqSCPmjLgJ1zWYg+ EfFWtHDABP2VTo5e+mg2hAGkYERBmGzhUOa1BSvy1PnyIzH67hL+UJFH5rFvDY5aCl70 8EVyPgx1Ni56BLZcJ9Izo32rgW15YHbtLW/gzR2uERe2cRuhdlcrmn1LNOj5BV0V/Rvz pFtNLEnB1X95H0AF1SQol1m3MFKAfiJwsmucIRjWUiEcanGKKF3cv0kqyjmcws+FktEW K5tkyFncsftueGT6yeZiAEKLVXDoFn3chIGtqx4yGlYEkyN4NP/Ob0tXbwaXk3u+nwI2 0R8A== X-Gm-Message-State: ACgBeo2yb4SSRFzRL3708oOkLYPhGKEmufmfah6gGTA8iiiroo606igq aQeGcavCmjNfYdC4PJMZwbOcIHKEZanb3A== X-Google-Smtp-Source: AA6agR60hhZuixDslwAOKCNqK1U2EWnSH/O405cn/4UuK8emapMAVq+dVE5cfpULcjbjVohZGuZlSw== X-Received: by 2002:a7b:ce89:0:b0:3a5:cefe:80f6 with SMTP id q9-20020a7bce89000000b003a5cefe80f6mr3501758wmj.113.1662134189859; Fri, 02 Sep 2022 08:56:29 -0700 (PDT) Received: from ?IPv6:2001:8b0:aba:5f3c:cbec:572b:ff3a:e320? ([2001:8b0:aba:5f3c:cbec:572b:ff3a:e320]) by smtp.gmail.com with ESMTPSA id a21-20020a05600c349500b003ab1a870daasm2304392wmq.5.2022.09.02.08.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 08:56:29 -0700 (PDT) Message-ID: <832988652fd0646394de3145564a068ba6c59b51.camel@linuxfoundation.org> Subject: Re: [bitbake-devel] [docs] [PATCH v2] doc: bitbake-user-manual: Add definition for BB_PRESSURE_MAX variables From: Richard Purdie To: michael.opdenacker@bootlin.com, Aryaman Gupta , bitbake-devel@lists.openembedded.org Cc: docs@lists.yoctoproject.org Date: Fri, 02 Sep 2022 16:56:28 +0100 In-Reply-To: References: <20220812182236.1650194-1-aryaman.gupta@windriver.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 02 Sep 2022 15:56:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/13953 On Mon, 2022-08-29 at 14:46 +0200, Michael Opdenacker via lists.openembedded.org wrote: > Hi Aryaman, >=20 > Many thanks for the patch! Apologies for the late review, I was away on= =20 > vacation. >=20 > See my comments below: >=20 > On 8/12/22 20:22, Aryaman Gupta wrote: > > Add the definitions for the BB_PRESSURE_MAX{CPU|IO|MEMORY} variables in= the > > bitbake varibales glossary. Further information on how to determine a g= ood > > threshold will be added to the Yocto reference manual in a later commit= . > >=20 > > Signed-off-by: Aryaman Gupta > > Signed-off-by: Randy Macleod > > --- > > .../bitbake-user-manual-ref-variables.rst | 30 ++++++++++++++++++= + > > 1 file changed, 30 insertions(+) > >=20 > > diff --git a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.= rst b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst > > index 12aef3cb..9b2027de 100644 > > --- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst > > +++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst > > @@ -482,6 +482,36 @@ overview of their function and contents. > > =20 > > You must set this variable in the external environment in or= der > > for it to work. > > + > > + :term:`BB_PRESSURE_MAX_CPU` > > + The threshold for maximum CPU pressure before BitBake prevents t= he > > + scheduling of new tasks. Once the :term:`BB_PRESSURE_MAX_CPU` th= reshold > > + is exceeded, new tasks are not started until the pressure subsid= es to > > + below the threshold. If :term:`BB_PRESSURE_MAX_CPU` is not set, = CPU > > + pressure is not monitored. A threshold can be set in ``conf/loca= l.conf`` > > + as: > > + :: >=20 >=20 > Actually, here you can just use "as::" instead of "as:" followed by "::"= =20 > in the next line. >=20 > > + > > + BB_PRESSURE_MAX_CPU =3D "500" > > + > > + Information about how to set a suitable value and some other cav= eats to > > + consider can be found in the > > + :ref:`Reference Manual `` >=20 >=20 > I'm afraid you'll have to add this reference in a later commit, because= =20 > for the moment, this creates a warning that is turned into an error.=20 > Sorry, this is the pain of managing two manuals at once. You may say=20 > "Yocto Project Reference Manual" then. >=20 > By the way, you had an extra backquote at the end of your reference. >=20 > > + > > + :term:`BB_PRESSURE_MAX_IO` > > + The threshold for maximum IO pressure experienced before BitBake > > + prevents the scheduling of new tasks. The IO pressure is regulat= ed in the > > + same way as :term:`BB_PRESSURE_MAX_CPU`. At this point in time, > > + experiments show that IO pressure tends to be short-lived and re= gulating > > + just the CPU can help to reduce it. > > + > > + :term:`BB_PRESSURE_MAX_MEMORY` > > + The threshold for maximum memory pressure experienced before Bit= Bake > > + prevents the scheduling of new tasks. The memory pressure is reg= ulated in > > + the same way as :term:`BB_PRESSURE_MAX_CPU`. Note that any memor= y > > + pressure indicates that a system is being pushed beyond it's cap= acity. At >=20 >=20 > s/it's/its/ >=20 > > + this point in time, experiments show that memory pressure tends = to be > > + short-lived and regulating just the CPU can help to reduce it. > > =20 > > :term:`BB_RUNFMT` > > Specifies the name of the executable script files (i.e. run fil= es) >=20 >=20 > Would you mind sending a V3 fixing these, please? This one should be=20 > ready to merge. > Thanks in advance, and thank you for your patience :) Aryaman is no longer at Wind River so we may need to handle the tweaks ourselves. Cheers, Richard