Skip to contentSkip to conversation

config.json: set ZSTD_THREADS like XZ_THREADS

PATCH In review Ross Burton 5 participants 6 messages Nov 23, 2021 – Nov 24, 2021 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.json: set ZSTD_THREADS like XZ_THREADS

---
 config.json | 1 +
 1 file changed, 1 insertion(+)
config.json +1 -0
index 7203783..c0543d9 100644
@@ -47,6 +47,7 @@
             "PARALLEL_MAKE = '-j 16 -l 52'",
             "XZ_MEMLIMIT = '5%'",
             "XZ_THREADS = '8'",
+            "ZSTD_THREADS = '8'",
             "BB_TASK_NICE_LEVEL = '5'",
             "BB_TASK_NICE_LEVEL:task-testimage = '0'",
             "BB_TASK_IONICE_LEVEL = '2.7'",
Signature · 1 line
2.25.1
#1 lore raw

Is there a particular reason?

Alex

Quoted 32 lines · Ross Burton
---
 config.json | 1 +
 1 file changed, 1 insertion(+)
config.json +1 -1
index 7203783..c0543d9 100644
@@ -47,6 +47,7 @@
             "PARALLEL_MAKE = '-j 16 -l 52'",
             "XZ_MEMLIMIT = '5%'",
             "XZ_THREADS = '8'",
+            "ZSTD_THREADS = '8'",
             "BB_TASK_NICE_LEVEL = '5'",
             "BB_TASK_NICE_LEVEL:task-testimage = '0'",
             "BB_TASK_IONICE_LEVEL = '2.7'",
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#55396):
https://lists.yoctoproject.org/g/yocto/message/55396
Mute This Topic: https://lists.yoctoproject.org/mt/87260143/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

My personal build machine has been crashing and dying due to overload with the default ZSTD_THREADS, and the AB has had problems with xz due to overload so I was being proactive and ensuring zstd is limited on the AB the same way xz is.

Ross

Quoted 36 lines · Alexander Kanavin

Is there a particular reason?

Alex

Quoted 30 lines · Ross Burton
---
 config.json | 1 +
 1 file changed, 1 insertion(+)
config.json +1 -1
index 7203783..c0543d9 100644
@@ -47,6 +47,7 @@
             "PARALLEL_MAKE = '-j 16 -l 52'",
             "XZ_MEMLIMIT = '5%'",
             "XZ_THREADS = '8'",
+            "ZSTD_THREADS = '8'",
             "BB_TASK_NICE_LEVEL = '5'",
             "BB_TASK_NICE_LEVEL:task-testimage = '0'",
             "BB_TASK_IONICE_LEVEL = '2.7'",
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55396): https://lists.yoctoproject.org/g/yocto/message/55396
Mute This Topic: https://lists.yoctoproject.org/mt/87260143/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
In reply to Ross Burton

But the AB has not been exhibiting any problems with zstd, and this will degrade performance. Let's only fix what is broken.

Alex

Quoted 48 lines · Ross Burton

My personal build machine has been crashing and dying due to overload with the default ZSTD_THREADS, and the AB has had problems with xz due to overload so I was being proactive and ensuring zstd is limited on the AB the same way xz is.

Ross

Quoted 28 lines · Alexander Kanavin

Is there a particular reason?

Alex

Quoted 22 lines · Ross Burton
---
 config.json | 1 +
 1 file changed, 1 insertion(+)
config.json +1 -1
index 7203783..c0543d9 100644
@@ -47,6 +47,7 @@
             "PARALLEL_MAKE = '-j 16 -l 52'",
             "XZ_MEMLIMIT = '5%'",
             "XZ_THREADS = '8'",
+            "ZSTD_THREADS = '8'",
             "BB_TASK_NICE_LEVEL = '5'",
             "BB_TASK_NICE_LEVEL:task-testimage = '0'",
             "BB_TASK_IONICE_LEVEL = '2.7'",
--

2.25.1

Quoted 3 lines
Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#55396):

https://lists.yoctoproject.org/g/yocto/message/55396

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.yoctoproject.org/mt/87260143/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [

[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): 473510c439b0d732d956ab327a425221f6019cc7.camel@linuxfoundation.org

#6 lore raw
Quoted 7 lines · Richard Purdie
Quoted 2 lines · Alexander Kanavin

But the AB has not been exhibiting any problems with zstd, and this will degrade performance. Let's only fix what is broken.

I'm not sure I agree with that.

Quoted 8 lines

We have 60+ "intermittent" bugs and some of us are in weekly meetings trying to do something about working out why these are failing. It feels like we're not really getting too far with some subset of them and it is using up a lot of the SWAT and bug triage time.

We've made a few changes to try and reduce the load spikes on the systems and this fits with the other changes we've made.

From a different data point, we have clipped the parallelism for XZ and ZSTD internally to very low ( 2 and 4 )
and it has in fact reduced unexpected failures and seen no impact on build performance. Since parallelism settings
are myopic for these tools, they greedily take every CPU which is not best for overall build thats doing many
things in parallel, so its best to curtail them to a conservative value.

Quoted 16 lines

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#55404): https://lists.yoctoproject.org/g/yocto/message/55404
Mute This Topic: https://lists.yoctoproject.org/mt/87260143/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-