yocto.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [hardknott][yocto-autobuilder-helper][PATCH] config.json: set max load in PARALLEL_MAKE
@ 2021-10-25 14:07 Anuj Mittal
  2021-10-25 16:09 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Anuj Mittal @ 2021-10-25 14:07 UTC (permalink / raw)
  To: yocto, richard.purdie

From: Trevor Gamblin <trevor.gamblin@windriver.com>

Add "-l 52" to PARALLEL_MAKE in config.json to limit Make and Ninja
builds based on the detected system load. With this option added, if
either tool has at least one job running and detects that the system
load exceeds the given value, it will wait until either the system load
average drops below that limit, or until all other jobs are finished
before starting additional jobs.

Since most autobuilder machines have 56 cores, this should help keep the
system from being overloaded during builds.

Reference: https://www.gnu.org/software/make/manual/html_node/Parallel.html

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5c5fc7bcd221427d34bbac80c9bad315fb6de4df)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
 config.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.json b/config.json
index 33d36ad..d397365 100644
--- a/config.json
+++ b/config.json
@@ -43,7 +43,7 @@
             "PREMIRRORS = ''",
             "BB_GENERATE_MIRROR_TARBALLS = '1'",
             "BB_NUMBER_THREADS = '16'",
-            "PARALLEL_MAKE = '-j 16'",
+            "PARALLEL_MAKE = '-j 16 -l 52'",
             "XZ_MEMLIMIT = '5%'",
             "XZ_THREADS = '8'",
             "BB_TASK_NICE_LEVEL = '5'",
-- 
2.31.1



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

end of thread, other threads:[~2021-10-25 17:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 14:07 [hardknott][yocto-autobuilder-helper][PATCH] config.json: set max load in PARALLEL_MAKE Anuj Mittal
2021-10-25 16:09 ` [yocto] " Khem Raj
2021-10-25 16:46   ` Steve Sakoman
2021-10-25 17:00     ` Khem Raj
2021-10-25 17:29       ` Steve Sakoman
2021-10-25 17:36         ` Khem Raj
     [not found]   ` <16B153EAC6F6E773.9409@lists.yoctoproject.org>
2021-10-25 16:47     ` Steve Sakoman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).