Skip to contentSkip to conversation

config.json: Try allowing a bit more parallelism

PATCH In review Richard Purdie 3 participants 5 messages Feb 8, 2024 – Feb 9, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.json: Try allowing a bit more parallelism

Currently the autobuilders seem to run at 25% idle at times. We see a lof of bouncing on IO load and it appears the systems could cope with higher values.

Increase the make load average, cpu and IO pressure limits a bit to see if build times improve.

---
 config.json | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
config.json +3 -3
index e8b51cd..7539aeb 100644
@@ -49,9 +49,9 @@
             "BB_GENERATE_MIRROR_TARBALLS = '1'",
             "BB_NUMBER_THREADS = '16'",
             "BB_NUMBER_PARSE_THREADS = '16'",
-            "PARALLEL_MAKE = '-j 16 -l 52'",
-            "BB_PRESSURE_MAX_CPU = '10000'",
-            "BB_PRESSURE_MAX_IO = '10000'",
+            "PARALLEL_MAKE = '-j 16 -l 75'",
+            "BB_PRESSURE_MAX_CPU = '20000'",
+            "BB_PRESSURE_MAX_IO = '20000'",
             "XZ_MEMLIMIT = '5%'",
             "XZ_THREADS = '8'",
             "ZSTD_THREADS = '8'",
Signature · 1 line
2.40.1
#1 lore raw
Quoted 17 lines · Richard Purdie

Currently the autobuilders seem to run at 25% idle at times. We see a lof of bouncing on IO load and it appears the systems could cope with higher values.

Increase the make load average, cpu and IO pressure limits a bit to see if build times improve.

---
  config.json | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
config.json +0 -0
index e8b51cd..7539aeb 100644

config.json line 52

Quoted 7 lines
config.json +1 -3
@@ -49,9 +49,9 @@
              "BB_GENERATE_MIRROR_TARBALLS = '1'",
              "BB_NUMBER_THREADS = '16'",
              "BB_NUMBER_PARSE_THREADS = '16'",
-            "PARALLEL_MAKE = '-j 16 -l 52'",
-            "BB_PRESSURE_MAX_CPU = '10000'",
-            "BB_PRESSURE_MAX_IO = '10000'",
+            "PARALLEL_MAKE = '-j 16 -l 75'",

A value of 75 for the load average limit seems a bit high given that there are only 56 v-cores on these machines but maybe that limit won't kick in if the pressure regulation works.

I really need to fix and write tests for the pressure regulation but I'm just not able to make the time these days. Sorry.

I guess this change is worth a try to get more data.

../Randy

Quoted 5 lines
config.json +2 -0
+            "BB_PRESSURE_MAX_CPU = '20000'",
+            "BB_PRESSURE_MAX_IO = '20000'",
              "XZ_MEMLIMIT = '5%'",
              "XZ_THREADS = '8'",
              "ZSTD_THREADS = '8'",
Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#2 lore raw
Quoted 28 lines · Randy MacLeod
Quoted 17 lines · Richard Purdie

Currently the autobuilders seem to run at 25% idle at times. We see a lof of bouncing on IO load and it appears the systems could cope with higher values.

Increase the make load average, cpu and IO pressure limits a bit to see if build times improve.

---
 config.json | 6 +++---

 1 file changed, 3 insertions(+), 3 deletions(-)
config.json +0 -0
index e8b51cd..7539aeb 100644

config.json line 52

Quoted 7 lines
config.json +1 -3
@@ -49,9 +49,9 @@
              "BB_GENERATE_MIRROR_TARBALLS = '1'",
              "BB_NUMBER_THREADS = '16'",
              "BB_NUMBER_PARSE_THREADS = '16'",
-            "PARALLEL_MAKE = '-j 16 -l 52'",
-            "BB_PRESSURE_MAX_CPU = '10000'",
-            "BB_PRESSURE_MAX_IO = '10000'",
+            "PARALLEL_MAKE = '-j 16 -l 75'",

  A value of 75 for the load average limit seems a bit high given that

Quoted 2 lines

there are only 56 v-cores on these machines but maybe that limit won't kick in if the pressure regulation works.

I'm working on the principle that 52 appears to be leaving the machines too underloaded. The scheduler is designed to handle load so having some new work always ready is probably better overall...

Quoted 5 lines

I really need to fix and write tests for the pressure regulation but I'm just not able to make the time these days. Sorry.

I guess this change is worth a try to get more data.

I think that is where my thinking was at, we need to try something different as the performance at the moment just feels wrong somehow.

Cheers,

Richard

#3 lore raw
Quoted 37 lines · Richard Purdie
Quoted 28 lines · Randy MacLeod
Quoted 17 lines · Richard Purdie

Currently the autobuilders seem to run at 25% idle at times. We see a lof of bouncing on IO load and it appears the systems could cope with higher values.

Increase the make load average, cpu and IO pressure limits a bit to see if build times improve.

---
�config.json | 6 +++---
�1 file changed, 3 insertions(+), 3 deletions(-)

config.json +0 -0
index e8b51cd..7539aeb 100644

config.json line 52

Quoted 7 lines
config.json +1 -3
@@ -49,9 +49,9 @@
 �������������"BB_GENERATE_MIRROR_TARBALLS = '1'",
 �������������"BB_NUMBER_THREADS = '16'",
 �������������"BB_NUMBER_PARSE_THREADS = '16'",
-            "PARALLEL_MAKE = '-j 16 -l 52'",
-            "BB_PRESSURE_MAX_CPU = '10000'",
-            "BB_PRESSURE_MAX_IO = '10000'",
+            "PARALLEL_MAKE = '-j 16 -l 75'",

��A value of 75 for the load average limit seems a bit high given that

Quoted 2 lines

there are only 56 v-cores on these machines but maybe that limit won't kick in if the pressure regulation works.

I'm working on the principle that 52 appears to be leaving the machines too underloaded. The scheduler is designed to handle load so having some new work always ready is probably better overall...

Quoted 8 lines
Quoted 5 lines

I really need to fix and write tests for the pressure regulation but� I'm just not able to make the time these days. Sorry.

I guess this change is worth a try to get more data.

I think that is where my thinking was at, we need to try something different as the performance at the moment just feels wrong somehow.

The centos workers don't have pressure regulation and I have recently seen bitbake timeout on those s I'm a bit concerned this will exacerbate the issue.

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw
Quoted 44 lines · Alexandre Belloni
Quoted 43 lines · Richard Purdie
Quoted 28 lines · Randy MacLeod
Quoted 17 lines · Richard Purdie

Currently the autobuilders seem to run at 25% idle at times. We see a lof of bouncing on IO load and it appears the systems could cope with higher values.

Increase the make load average, cpu and IO pressure limits a bit to see if build times improve.

---
 config.json | 6 +++---

 1 file changed, 3 insertions(+), 3 deletions(-)
config.json +0 -0
index e8b51cd..7539aeb 100644

config.json line 52

Quoted 7 lines
config.json +1 -3
@@ -49,9 +49,9 @@
              "BB_GENERATE_MIRROR_TARBALLS = '1'",
              "BB_NUMBER_THREADS = '16'",
              "BB_NUMBER_PARSE_THREADS = '16'",
-            "PARALLEL_MAKE = '-j 16 -l 52'",
-            "BB_PRESSURE_MAX_CPU = '10000'",
-            "BB_PRESSURE_MAX_IO = '10000'",
+            "PARALLEL_MAKE = '-j 16 -l 75'",

  A value of 75 for the load average limit seems a bit high given that

Quoted 2 lines

there are only 56 v-cores on these machines but maybe that limit won't kick in if the pressure regulation works.

I'm working on the principle that 52 appears to be leaving the machines too underloaded. The scheduler is designed to handle load so having some new work always ready is probably better overall...

Quoted 5 lines

I really need to fix and write tests for the pressure regulation but I'm just not able to make the time these days. Sorry.

I guess this change is worth a try to get more data.

Quoted 6 lines
Quoted 2 lines

I think that is where my thinking was at, we need to try something different as the performance at the moment just feels wrong somehow.

The centos workers don't have pressure regulation and I have recently seen bitbake timeout on those s I'm a bit concerned this will exacerbate the issue.

It is a valid concern. My last build did feel "faster" but whether that was a fair comparison, not sure. Lets keep an eye on things and keep this in mind...

Cheers,

Richard