Re: bitbake controlling memory use
Op 14-04-2021 om 06:59 schreef Richard Purdie:
On Tue, 2021-04-13 at 21:14 -0400, Randy MacLeod wrote:I tried PARALLEL_MAKE_nodejs = "-j 1" from local.conf but that didn't work.On 2021-04-11 12:19 p.m., Alexander Kanavin wrote:make already has -l option for limiting new instances if load average isDuring today's Yocto technical call (1),
So I watched it run for a while. It compiles with g++ and as at about 0.5GB per thread, which is OK. In the end it does ld taking 4GB and it tries to do 4 in parallel. And then swapping becomes so heavy the desktop becomes unresponsive. Like I mentioned before ssh from another machine allows me to STOP one of them, allowing the remaining to complete. And then CONT the last one.
I worked around it now, by creating a bbappend for nodejs with only
PARALLEL_MAKE = "-j 2"
In the longer run, changes to how bitbake schedules work may be needed.http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wipqueue4&id=d66a327fb6189db5de8bc489859235dcba306237