[bitbake-devel] [PATCH 2/2] runqueue: Introduce load balanced task spawning

Andreas Müller schnitzeltony at gmail.com
Tue Aug 14 07:57:11 UTC 2018


On Tue, Aug 14, 2018 at 8:32 AM,  <Mikko.Rapeli at bmw.de> wrote:
> Just my 2 € cents to the discussion:
>
> we had to limit number of threads because heavy C++ projects were using
> all of RAM and causing heavy swapping. Single g++ processes were eating
> up to 20 gigabytes of physical ram. It's not just the CPU which is the
> limiting factor to parallel task execution.
>
LOL: My first approach was to extra-spawn in case memory occupied is
less than 50%. That solution performed really bad. I think adding
tasks on a CPU performing already with ~100% just cause overhead
reducing overall performance. I think the target for best performance
is running CPU with 100% with as few tasks as possible.

Again: Major problem with this solution is that a low workload caused
by CPU waiting for hard-disk or resuming from spawns additional tasks.
That is totally wrong.

Andreas



More information about the bitbake-devel mailing list