From: "Gmane Admin" <gley-yocto@m.gmane-mx.org>
To: yocto@lists.yoctoproject.org
Cc: yocto-gJxINTE1zeQw8ufyyF7U+SST3g8Odh+X-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org
Subject: Re: bitbake controlling memory use
Date: Mon, 7 Jun 2021 21:27:00 +0200 [thread overview]
Message-ID: <5a37c855-943a-7ae2-b481-e030ebb69de8@gmail.com> (raw)
In-Reply-To: <1685B30F5819A655.13459@lists.yoctoproject.org>
Op 05-06-2021 om 15:35 schreef Gmane Admin:
> Op 14-04-2021 om 06:59 schreef Richard Purdie:
>> On Tue, 2021-04-13 at 21:14 -0400, Randy MacLeod wrote:
>>> On 2021-04-11 12:19 p.m., Alexander Kanavin wrote:
>>>> make already has -l option for limiting new instances if load
>>>> average is
>>>> too high, so it's only natural to add a RAM limiter too.
>>>>
>>>> -l [N], --load-average[=N], --max-load[=N]
>>>> Don't start multiple jobs unless
>>>> load is
>>>> below N.
>>>>
>>>> In any case, patches welcome :)
>>>
>>> During today's Yocto technical call (1),
>>> we talked about approaches to limiting the system load and avoiding
>>> swap and/or OOM events. Here's what (little!) i recall from the
>>> discussion, 9 busy hours later.
>>>
>>> In the short run, instead of independently maintaining changes to
>>> configurations to limit parallelism or xz memory usage, etc, we
>>> could develop an optional common include file where such limits
>>> are shared across the community.
>>>
>>> In the longer run, changes to how bitbake schedules work may be needed.
>>>
>>> Richard says that there was a make/build server idea and maybe even a
>>> patch from a while ago. It may be in one of his poky-contrib branches.
>>> I took a few minutes to look but nothing popped up. A set of keywords to
>>> search for might help me find it.
>>
>> http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wipqueue4&id=d66a327fb6189db5de8bc489859235dcba306237
This patch resolves a starvation of a particular resource (execution
cores), which is good.
However, the problem I am facing is starvation of another resource (memory).
>> Cheers,
>>
>> Richard
>>
>>
> I like the idea. Unfortunately the patch doesn't apply to Gatesgarth, so
> I couldn't test it. Any chance you would be doing a refresh?
Ok so I refreshed this patch my self and it seems to be working nicely
(3000 out of 4000 tasks complete), except for one thing: do_configure
for cmake-native fails and I don't see why. From the log:
loading initial cache file
xxxxxx/out/linux64/build/tmp/work/x86_64-linux/cmake-native/3.18.2-r0/build/Bootstrap.cmk/InitialCacheFlags.cmake
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
CMake Error: Generator: execution of make failed. Make command was:
xxxxxx/out/linux64/poky/scripts/make-intercept/make cmTC_68352/fast &&
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: xxxxxx/out/linux64/build/tmp/hosttools/gcc
CMake Error: Generator: execution of make failed. Make command was:
xxxxxx/out/linux64/poky/scripts/make-intercept/make cmTC_f23a0/fast &&
-- Check for working C compiler:
xxxxxx/out/linux64/build/tmp/hosttools/gcc - broken
CMake Error at Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"xxxxxx/out/linux64/build/tmp/hosttools/gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
xxxxxx/tmp/work/x86_64-linux/cmake-native/3.18.2-r0/build/CMakeFiles/CMakeTmp
Run Build
Command(s):xxxxxx/out/linux64/poky/scripts/make-intercept/make
cmTC_f23a0/fast && Permission denied
Generator: execution of make failed. Make command was:
xxxxxx/out/linux64/poky/scripts/make-intercept/make cmTC_f23a0/fast &&
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
Crazy. I don't see why making a complete recipe works fine, while making
a test program during configure fails. Ideas?
next prev parent reply other threads:[~2021-06-07 19:27 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.12d167de-8268-4441-bd03-b78a3e04713e@emailsignatures365.codetwo.com>
[not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.a8aa18ca-4a64-4525-851c-c6d34f355f1f@emailsignatures365.codetwo.com>
2021-04-11 15:23 ` bitbake controlling memory use Gmane Admin
2021-04-11 15:27 ` [yocto] " Alexander Kanavin
2021-04-11 15:49 ` Gmane Admin
2021-04-11 15:55 ` [yocto] " Alexander Kanavin
2021-04-11 16:08 ` Gmane Admin
2021-04-11 16:19 ` [yocto] " Alexander Kanavin
2021-04-14 1:14 ` Randy MacLeod
2021-04-14 3:14 ` Khem Raj
2021-04-14 4:59 ` Richard Purdie
2021-04-17 22:17 ` Gmane Admin
2021-04-18 9:59 ` [yocto] " Richard Purdie
2021-04-18 19:34 ` Gmane Admin
[not found] ` <16770AD5E94DEAE5.1089@lists.yoctoproject.org>
2022-12-24 18:58 ` Ferry Toth
2022-12-26 2:11 ` [yocto] " Randy MacLeod
2022-12-27 16:56 ` Ferry Toth
2021-06-05 13:35 ` Gmane Admin
2021-06-08 19:08 ` [yocto] " Trevor Gamblin
2021-06-10 7:09 ` Gmane Admin
[not found] ` <1685B30F5819A655.13459@lists.yoctoproject.org>
2021-06-07 19:27 ` Gmane Admin [this message]
2021-06-08 19:12 ` [yocto] " Trevor Gamblin
2021-06-10 9:22 ` Ferry Toth
2021-06-10 19:06 ` [yocto] " Trevor Gamblin
2021-06-10 20:35 ` Ferry Toth
2021-06-12 16:31 ` Ferry Toth
2021-06-13 0:38 ` Randy MacLeod
2021-06-13 10:58 ` Ferry Toth
2023-01-03 14:15 ` Ferry Toth
2023-01-03 14:18 ` [yocto] " Alexander Kanavin
2023-01-03 14:29 ` Ferry Toth
2023-01-03 14:36 ` Quentin Schulz
2023-01-03 14:41 ` Ferry Toth
2023-01-03 15:03 ` Janne Kiiskila
2023-01-03 15:12 ` Ferry Toth
2023-01-03 15:24 ` Alexander Kanavin
[not found] ` <1736D5DCC66BC3DE.4716@lists.yoctoproject.org>
2023-01-03 15:37 ` Alexander Kanavin
2023-01-03 15:58 ` Ferry Toth
2023-01-03 17:33 ` Alexander Kanavin
2023-01-08 22:13 ` Ferry Toth
2023-01-09 10:39 ` Alexander Kanavin
2023-01-09 10:43 ` Richard Purdie
2023-01-09 10:54 ` Ferry Toth
2023-01-19 19:59 ` Ferry Toth
2023-01-09 10:49 ` Ferry Toth
2023-01-10 1:57 ` Randy MacLeod
2023-01-10 9:24 ` Ferry Toth
2023-01-14 22:33 ` Ferry Toth
2023-08-28 12:56 ` Martin Hundebøll
2023-01-03 15:44 ` Martin Jansa
2021-04-12 2:25 ` Chen Qi
2021-04-12 18:45 ` Gmane Admin
2021-04-12 8:13 ` [yocto] " Robert Berger
2021-04-12 18:47 ` Gmane Admin
2021-04-12 8:28 ` [yocto] " Mike Looijmans
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=5a37c855-943a-7ae2-b481-e030ebb69de8@gmail.com \
--to=gley-yocto@m.gmane-mx.org \
--cc=yocto-gJxINTE1zeQw8ufyyF7U+SST3g8Odh+X-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org \
--cc=yocto@lists.yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.