config.json: set max load in PARALLEL_MAKE
PATCH 1/1 config.json: set max load in PARALLEL_MAKE
From: Trevor Gamblin <[email protected]>
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
--- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
config.json +1 -1
@@ -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'",
Signature · 1 line
2.31.1
Quoted 27 lines · Anuj Mittal
From: Trevor Gamblin <[email protected]>
Add "-l 52" to
PARALLEL_MAKEin 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 <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit 5c5fc7bcd221427d34bbac80c9bad315fb6de4df)Signed-off-by Anuj Mittal <[email protected]>--- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)config.json +0
-0
config.json line 46
Quoted 5 lines
config.json +1
-1@@ -43,7 +43,7 @@ "PREMIRRORS = ''", "BB_GENERATE_MIRROR_TARBALLS = '1'", "BB_NUMBER_THREADS = '16'", - "PARALLEL_MAKE = '-j 16'", + "PARALLEL_MAKE = '-j 16 -l 52'",
We have seen a lot of hung builds when we used this option internally on builders, Additionally some packages like bison started to fail intermittently which seemed like a parallel build issue but never got to see why it would happen only with -l enabled.
So this change would need some testing before we make it permanent into AB
Quoted 15 lines
config.json +0
-1"XZ_MEMLIMIT = '5%'", "XZ_THREADS = '8'", "BB_TASK_NICE_LEVEL = '5'", -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#55144): https://lists.yoctoproject.org/g/yocto/message/55144
Mute This Topic: https://lists.yoctoproject.org/mt/86577772/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 42 lines · Khem Raj
Quoted 27 lines · Anuj Mittal
From: Trevor Gamblin <[email protected]>
Add "-l 52" to
PARALLEL_MAKEin 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 <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit 5c5fc7bcd221427d34bbac80c9bad315fb6de4df)Signed-off-by Anuj Mittal <[email protected]>--- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)config.json +0
-0config.json line 46
Quoted 5 lines
config.json +1
-1@@ -43,7 +43,7 @@ "PREMIRRORS = ''", "BB_GENERATE_MIRROR_TARBALLS = '1'", "BB_NUMBER_THREADS = '16'", - "PARALLEL_MAKE = '-j 16'", + "PARALLEL_MAKE = '-j 16 -l 52'",We have seen a lot of hung builds when we used this option internally on builders, Additionally some packages like bison started to fail intermittently which seemed like a parallel build issue but never got to see why it would happen only with -l enabled.
Quoted 1 line
So this change would need some testing before we make it permanent into AB
Which branch did you test this with? I had some issues when I originally added it to dunfell but after the last patch series I am getting green a-full and meta-oe builds on the autobuilder.
And master has been running with this for q
Steve
Quoted 18 lines
config.json line 49
Quoted 9 lines
config.json +0
-0"XZ_MEMLIMIT = '5%'", "XZ_THREADS = '8'", "BB_TASK_NICE_LEVEL = '5'",-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55146): https://lists.yoctoproject.org/g/yocto/message/55146
Mute This Topic: https://lists.yoctoproject.org/mt/86577772/3620601
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 44 lines · Steve Sakoman
Quoted 42 lines · Khem Raj
Quoted 27 lines · Anuj Mittal
From: Trevor Gamblin <[email protected]>
Add "-l 52" to
PARALLEL_MAKEin 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 <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit 5c5fc7bcd221427d34bbac80c9bad315fb6de4df)Signed-off-by Anuj Mittal <[email protected]>--- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)config.json +0
-0config.json line 46
Quoted 5 lines
config.json +1
-1@@ -43,7 +43,7 @@ "PREMIRRORS = ''", "BB_GENERATE_MIRROR_TARBALLS = '1'", "BB_NUMBER_THREADS = '16'", - "PARALLEL_MAKE = '-j 16'", + "PARALLEL_MAKE = '-j 16 -l 52'",We have seen a lot of hung builds when we used this option internally on builders, Additionally some packages like bison started to fail intermittently which seemed like a parallel build issue but never got to see why it would happen only with -l enabled.
Quoted 5 lines
Quoted 1 line
So this change would need some testing before we make it permanent into AB
Which branch did you test this with? I had some issues when I originally added it to dunfell but after the last patch series I am getting green a-full and meta-oe builds on the autobuilder.
it was dunfell primarily
Quoted 22 lines
And master has been running with this for q
SteveQuoted 18 lines
config.json line 49
Quoted 9 lines
config.json +0
-0"XZ_MEMLIMIT = '5%'", "XZ_THREADS = '8'", "BB_TASK_NICE_LEVEL = '5'",-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55146): https://lists.yoctoproject.org/g/yocto/message/55146
Mute This Topic: https://lists.yoctoproject.org/mt/86577772/3620601
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 46 lines · Khem Raj
Quoted 44 lines · Steve Sakoman
Quoted 42 lines · Khem Raj
Quoted 27 lines · Anuj Mittal
From: Trevor Gamblin <[email protected]>
Add "-l 52" to
PARALLEL_MAKEin 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 <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit 5c5fc7bcd221427d34bbac80c9bad315fb6de4df)Signed-off-by Anuj Mittal <[email protected]>--- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)config.json +0
-0config.json line 46
Quoted 5 lines
config.json +1
-1@@ -43,7 +43,7 @@ "PREMIRRORS = ''", "BB_GENERATE_MIRROR_TARBALLS = '1'", "BB_NUMBER_THREADS = '16'", - "PARALLEL_MAKE = '-j 16'", + "PARALLEL_MAKE = '-j 16 -l 52'",We have seen a lot of hung builds when we used this option internally on builders, Additionally some packages like bison started to fail intermittently which seemed like a parallel build issue but never got to see why it would happen only with -l enabled.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
So this change would need some testing before we make it permanent into AB
Which branch did you test this with? I had some issues when I originally added it to dunfell but after the last patch series I am getting green a-full and meta-oe builds on the autobuilder.
it was dunfell primarily
In that case you might want to try again with the current dunfell head. It was a couple of weeks of pain, but I think I've eliminated all of the issues with using this patch.
Steve
Quoted 23 lines
Quoted 23 lines
And master has been running with this for q
SteveQuoted 18 lines
config.json line 49
Quoted 9 lines
config.json +0
-0"XZ_MEMLIMIT = '5%'", "XZ_THREADS = '8'", "BB_TASK_NICE_LEVEL = '5'",-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55146): https://lists.yoctoproject.org/g/yocto/message/55146
Mute This Topic: https://lists.yoctoproject.org/mt/86577772/3620601
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 54 lines · Steve Sakoman
Quoted 52 lines · Khem Raj
Quoted 49 lines · Steve Sakoman
Quoted 42 lines · Khem Raj
Quoted 27 lines · Anuj Mittal
From: Trevor Gamblin <[email protected]>
Add "-l 52" to
PARALLEL_MAKEin 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 <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit 5c5fc7bcd221427d34bbac80c9bad315fb6de4df)Signed-off-by Anuj Mittal <[email protected]>--- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)config.json +0
-0config.json line 46
Quoted 5 lines
config.json +1
-1@@ -43,7 +43,7 @@ "PREMIRRORS = ''", "BB_GENERATE_MIRROR_TARBALLS = '1'", "BB_NUMBER_THREADS = '16'", - "PARALLEL_MAKE = '-j 16'", + "PARALLEL_MAKE = '-j 16 -l 52'",We have seen a lot of hung builds when we used this option internally on builders, Additionally some packages like bison started to fail intermittently which seemed like a parallel build issue but never got to see why it would happen only with -l enabled.
Quoted 1 line
So this change would need some testing before we make it permanent into AB
Which branch did you test this with? I had some issues when I originally added it to dunfell but after the last patch series I am getting green a-full and meta-oe builds on the autobuilder.
Quoted 5 lines
Quoted 1 line
it was dunfell primarily
In that case you might want to try again with the current dunfell head. It was a couple of weeks of pain, but I think I've eliminated all of the issues with using this patch.
OK, I think it will be a while before I can get to tip if dunfell though.
Quoted 26 lines
Steve
Quoted 23 lines
Quoted 23 lines
And master has been running with this for q
SteveQuoted 18 lines
config.json line 49
Quoted 9 lines
config.json +0
-0"XZ_MEMLIMIT = '5%'", "XZ_THREADS = '8'", "BB_TASK_NICE_LEVEL = '5'",-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55146): https://lists.yoctoproject.org/g/yocto/message/55146
Mute This Topic: https://lists.yoctoproject.org/mt/86577772/3620601
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 44 lines · Steve Sakoman via lists.yoctoproject.org
Quoted 42 lines · Khem Raj
Quoted 27 lines · Anuj Mittal
From: Trevor Gamblin <[email protected]>
Add "-l 52" to
PARALLEL_MAKEin 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 <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit 5c5fc7bcd221427d34bbac80c9bad315fb6de4df)Signed-off-by Anuj Mittal <[email protected]>--- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)config.json +0
-0config.json line 46
Quoted 5 lines
config.json +1
-1@@ -43,7 +43,7 @@ "PREMIRRORS = ''", "BB_GENERATE_MIRROR_TARBALLS = '1'", "BB_NUMBER_THREADS = '16'", - "PARALLEL_MAKE = '-j 16'", + "PARALLEL_MAKE = '-j 16 -l 52'",We have seen a lot of hung builds when we used this option internally on builders, Additionally some packages like bison started to fail intermittently which seemed like a parallel build issue but never got to see why it would happen only with -l enabled.
Quoted 7 lines
Quoted 1 line
So this change would need some testing before we make it permanent into AB
Which branch did you test this with? I had some issues when I originally added it to dunfell but after the last patch series I am getting green a-full and meta-oe builds on the autobuilder.
And master has been running with this for q
Accidentally hit send :-)
I intended to say that master has been running with this for quite some time now.
Quoted 23 lines
Steve
Quoted 12 lines
config.json line 49
Quoted 9 lines
config.json +0
-0"XZ_MEMLIMIT = '5%'", "XZ_THREADS = '8'", "BB_TASK_NICE_LEVEL = '5'",-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55147): https://lists.yoctoproject.org/g/yocto/message/55147
Mute This Topic: https://lists.yoctoproject.org/mt/86577772/3620601
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-