public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf: set BB_NICE_LEVEL to lower task prios
@ 2019-08-22  9:15 Henning Schild
  2019-08-22 11:03 ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Schild @ 2019-08-22  9:15 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

From: Henning Schild <henning.schild@siemens.com>

Setting this makes your machine more "usable" while waiting for those
Isar builds.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
 meta/conf/bitbake.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 3d18223..6625b33 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -89,6 +89,7 @@ BB_SIGNATURE_HANDLER ?= "basichash"
 BB_STAMP_POLICY ?= "full"
 
 BB_NUMBER_THREADS ?= "${@bb.utils.cpu_count()}"
+BB_NICE_LEVEL ?= "10"
 
 BBINCLUDELOGS ??= "yes"
 
-- 
2.21.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: set BB_NICE_LEVEL to lower task prios
  2019-08-22  9:15 [PATCH] bitbake.conf: set BB_NICE_LEVEL to lower task prios Henning Schild
@ 2019-08-22 11:03 ` Jan Kiszka
  2019-08-22 11:15   ` Henning Schild
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kiszka @ 2019-08-22 11:03 UTC (permalink / raw)
  To: [ext] Henning Schild, isar-users

On 22.08.19 11:15, [ext] Henning Schild wrote:
> From: Henning Schild <henning.schild@siemens.com>
> 
> Setting this makes your machine more "usable" while waiting for those
> Isar builds.
> 
> Signed-off-by: Henning Schild <henning.schild@siemens.com>
> ---
>   meta/conf/bitbake.conf | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 3d18223..6625b33 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -89,6 +89,7 @@ BB_SIGNATURE_HANDLER ?= "basichash"
>   BB_STAMP_POLICY ?= "full"
>   
>   BB_NUMBER_THREADS ?= "${@bb.utils.cpu_count()}"
> +BB_NICE_LEVEL ?= "10"
>   
>   BBINCLUDELOGS ??= "yes"
>   
> 

Not set by OE by default. Isn't that something for local tuning?

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: set BB_NICE_LEVEL to lower task prios
  2019-08-22 11:03 ` Jan Kiszka
@ 2019-08-22 11:15   ` Henning Schild
  2019-08-22 11:24     ` Baurzhan Ismagulov
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Schild @ 2019-08-22 11:15 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: isar-users

Am Thu, 22 Aug 2019 13:03:15 +0200
schrieb Jan Kiszka <jan.kiszka@siemens.com>:

> On 22.08.19 11:15, [ext] Henning Schild wrote:
> > From: Henning Schild <henning.schild@siemens.com>
> > 
> > Setting this makes your machine more "usable" while waiting for
> > those Isar builds.
> > 
> > Signed-off-by: Henning Schild <henning.schild@siemens.com>
> > ---
> >   meta/conf/bitbake.conf | 1 +
> >   1 file changed, 1 insertion(+)
> > 
> > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> > index 3d18223..6625b33 100644
> > --- a/meta/conf/bitbake.conf
> > +++ b/meta/conf/bitbake.conf
> > @@ -89,6 +89,7 @@ BB_SIGNATURE_HANDLER ?= "basichash"
> >   BB_STAMP_POLICY ?= "full"
> >   
> >   BB_NUMBER_THREADS ?= "${@bb.utils.cpu_count()}"
> > +BB_NICE_LEVEL ?= "10"
> >   
> >   BBINCLUDELOGS ??= "yes"
> >   
> >   
> 
> Not set by OE by default. Isn't that something for local tuning?

I know. But we either carry it in all kas files or centrally in the
bitbake.conf. This could also be a default for kas local.conf
creation ... Just wanted to propose it and hear the feedback.

Henning

 
> Jan
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: set BB_NICE_LEVEL to lower task prios
  2019-08-22 11:15   ` Henning Schild
@ 2019-08-22 11:24     ` Baurzhan Ismagulov
  2019-08-22 12:03       ` Henning Schild
  0 siblings, 1 reply; 6+ messages in thread
From: Baurzhan Ismagulov @ 2019-08-22 11:24 UTC (permalink / raw)
  To: isar-users

On Thu, Aug 22, 2019 at 01:15:21PM +0200, Henning Schild wrote:
> > > +BB_NICE_LEVEL ?= "10"
> > 
> > Not set by OE by default. Isn't that something for local tuning?
> 
> I know. But we either carry it in all kas files or centrally in the
> bitbake.conf. This could also be a default for kas local.conf
> creation ... Just wanted to propose it and hear the feedback.

I also think kas could be a better candidate. Performance is the last, but
important goal of Isar, why reduce it by default for new users if more
experienced users can easily do it locally.

With kind regards,
Baurzhan.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: set BB_NICE_LEVEL to lower task prios
  2019-08-22 11:24     ` Baurzhan Ismagulov
@ 2019-08-22 12:03       ` Henning Schild
  2019-08-22 12:12         ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Schild @ 2019-08-22 12:03 UTC (permalink / raw)
  To: Baurzhan Ismagulov; +Cc: isar-users

Am Thu, 22 Aug 2019 13:24:11 +0200
schrieb Baurzhan Ismagulov <ibr@radix50.net>:

> On Thu, Aug 22, 2019 at 01:15:21PM +0200, Henning Schild wrote:
> > > > +BB_NICE_LEVEL ?= "10"  
> > > 
> > > Not set by OE by default. Isn't that something for local tuning?  
> > 
> > I know. But we either carry it in all kas files or centrally in the
> > bitbake.conf. This could also be a default for kas local.conf
> > creation ... Just wanted to propose it and hear the feedback.  
> 
> I also think kas could be a better candidate. Performance is the
> last, but important goal of Isar, why reduce it by default for new
> users if more experienced users can easily do it locally.

If you are not doing anything else on your machine the niceness will
not decrease the performance.

Henning

> With kind regards,
> Baurzhan.
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: set BB_NICE_LEVEL to lower task prios
  2019-08-22 12:03       ` Henning Schild
@ 2019-08-22 12:12         ` Jan Kiszka
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Kiszka @ 2019-08-22 12:12 UTC (permalink / raw)
  To: [ext] Henning Schild, Baurzhan Ismagulov; +Cc: isar-users

On 22.08.19 14:03, [ext] Henning Schild wrote:
> Am Thu, 22 Aug 2019 13:24:11 +0200
> schrieb Baurzhan Ismagulov <ibr@radix50.net>:
> 
>> On Thu, Aug 22, 2019 at 01:15:21PM +0200, Henning Schild wrote:
>>>>> +BB_NICE_LEVEL ?= "10"
>>>>
>>>> Not set by OE by default. Isn't that something for local tuning?
>>>
>>> I know. But we either carry it in all kas files or centrally in the
>>> bitbake.conf. This could also be a default for kas local.conf
>>> creation ... Just wanted to propose it and hear the feedback.
>>
>> I also think kas could be a better candidate. Performance is the
>> last, but important goal of Isar, why reduce it by default for new
>> users if more experienced users can easily do it locally.
> 
> If you are not doing anything else on your machine the niceness will
> not decrease the performance.

BTW, I never experience major issues with running full load like this in 
parallel to editors or browsers. Of course, if you have a time sensitive 
application running, multimedia etc., you feel the difference. Then I'm usually 
just doing "docker update <build_container> --cpus <maxcpus-X>". And I suspect 
"--cpu-shares <share>" will do similar things as this nice level, just never tried.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-08-22 12:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22  9:15 [PATCH] bitbake.conf: set BB_NICE_LEVEL to lower task prios Henning Schild
2019-08-22 11:03 ` Jan Kiszka
2019-08-22 11:15   ` Henning Schild
2019-08-22 11:24     ` Baurzhan Ismagulov
2019-08-22 12:03       ` Henning Schild
2019-08-22 12:12         ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox