What are the key factors for yocto build speed?
Hey,
We're currently using a VM on Windows and it's a lot slower than the native linux build (which is expected).
We're looking into getting a dedicated build server for our team (basically a self-build tower PC). Any suggestions what to put in that build to get the most out of it?
Currently we're looking at a big Ryzen, 64G of RAM and one or multiple SSDs on a "consumer grade" board like the X570.
Suggestions, hints and links welcome :)
Quoted 6 lines · Oliver Westermann
Hey,
We're currently using a VM on Windows and it's a lot slower than the native linux build (which is expected).
We're looking into getting a dedicated build server for our team (basically a self-build tower PC). Any suggestions what to put in that build to get the most out of it?Currently we're looking at a big Ryzen, 64G of RAM and one or multiple SSDs on a "consumer grade" board like the X570.
Drop all virtualization and go for Linux on bare metal. Then make sure there is enough(tm) physical RAM for each CPU thread. For a "big Ryzen" the 64G of RAM sounds too little. I'd go higher there, but it all depends what kind of project is being compiled.
I would also setup CPU, RAM, disk IO and network IO monitoring on the build machines and review and monitor the build times and results when the project evolves. There are times when most CPUs will be idling and there will be times when IO to disk is happening even when RAM is available. Linux kernel can be tuned to avoid disk IO if RAM is still available for example.
Hope this helps,
-Mikko
Quoted 14 lines · Mikko Rapeli
Quoted 6 lines · Oliver Westermann
Hey,
We're currently using a VM on Windows and it's a lot slower than the native linux build (which is expected).
We're looking into getting a dedicated build server for our team (basically a self-build tower PC). Any suggestions what to put in that build to get the most out of it?Currently we're looking at a big Ryzen, 64G of RAM and one or multiple SSDs on a "consumer grade" board like the X570.
Drop all virtualization and go for Linux on bare metal. Then make sure there is enough(tm) physical RAM for each CPU thread. For a "big Ryzen" the 64G of RAM sounds too little. I'd go higher there, but it all depends what kind of project is being compiled.
Quoted 5 lines
I would also setup CPU, RAM, disk IO and network IO monitoring on the build machines and review and monitor the build times and results when the project evolves. There are times when most CPUs will be idling and there will be times when IO to disk is happening even when RAM is available. Linux kernel can be tuned to avoid disk IO if RAM is still available for example.
What Mikko said is excellent advice.
I'd recommend NVMe drives if you can. My build machine has two large M.2 NVMe drives, one is used for the working directory and the other for sstate, downloads and source checkouts to make the best use of the available bandwidth. I find that XFS is a better fit than ext4 when you've got fast drives and highly parallel I/O workloads.
Make sure you spread your RAM across the different memory channels on your motherboard as this increases memory bandwidth - this usually means either filling your RAM slots or half-filling them with RAM in every 2nd slot but you'll need to check the motherboard manual to confirm the channel layout.
Let me know if you need a detailed review of your proposed setup.
Thanks,
Paul
Hi,
In my company we have tested some "big Ryzen" configurations to speed up Yocto builds.
The conclusion of these tests is that the build time is almost only related to the CPU score: https://www.cpubenchmark.net/high_end_cpus.html
The speed (overclock) and size of the RAM does not influence the build time, neither the the use of a SATA SSD or a NVME.
For example one of our build servers is using:
- AMD Ryzen 9 3900X
- ASUS PRIME X570-P
- 32Go DDR4 3200 MHZ CL14
- 500Go SSD
It is a really good price / build time ratio configuration.
Best regards,
Jean-Marie
Quoted 49 lines · On Mar 18, 2020, at 2:29 PM, Paul Barker [email protected] wrote:
Quoted 19 lines · Mikko Rapeli
Quoted 10 lines · Oliver Westermann
Hey,
We're currently using a VM on Windows and it's a lot slower than the native linux build (which is expected).
We're looking into getting a dedicated build server for our team (basically a self-build tower PC). Any suggestions what to put in that build to get the most out of it?Currently we're looking at a big Ryzen, 64G of RAM and one or multiple SSDs on a "consumer grade" board like the X570.
Drop all virtualization and go for Linux on bare metal. Then make sure there is enough(tm) physical RAM for each CPU thread. For a "big Ryzen" the 64G of RAM sounds
too little. I'd go higher there, but it all depends what kind of project is being compiled.Quoted 8 lines
I would also setup CPU, RAM, disk IO and network IO monitoring on the build machines
and review and monitor the build times and results when the project evolves. There are
times when most CPUs will be idling and there will be times when IO to disk is happening even when RAM is available. Linux kernel can be tuned to avoid disk IO if
RAM is still available for example.What Mikko said is excellent advice.
I'd recommend NVMe drives if you can. My build machine has two large M.2 NVMe drives, one is used for the working directory and the other for sstate, downloads and source checkouts to make the best use of the available bandwidth. I find that XFS is a better fit than ext4 when you've got fast drives and highly parallel I/O workloads.
Make sure you spread your RAM across the different memory channels on your motherboard as this increases memory bandwidth - this usually means either filling your RAM slots or half-filling them with RAM in every 2nd slot but you'll need to check the motherboard manual to confirm the channel layout.
Let me know if you need a detailed review of your proposed setup.
Thanks,
Paul
I have to say that AMD aggressively pursuing core count increase on consumer level CPUs is awesome news for the YP. Previously, you had to buy some hugely overpriced Xeons or similar to be able to work efficiently, or rely on CI doing builds for you which makes interactive development complicated.
Alex
Quoted 84 lines · Jean-Marie Lemetayer
Hi,
In my company we have tested some "big Ryzen" configurations to speed up Yocto builds.
The conclusion of these tests is that the build time is almost only related to the CPU score: https://www.cpubenchmark.net/high_end_cpus.html
The speed (overclock) and size of the RAM does not influence the build time, neither the the use of a SATA SSD or a NVME.
For example one of our build servers is using:
- AMD Ryzen 9 3900X
- ASUS PRIME X570-P
- 32Go DDR4 3200 MHZ CL14
- 500Go SSDIt is a really good price / build time ratio configuration.
Best regards,
Jean-MarieQuoted 6 lines · On Mar 18, 2020, at 2:29 PM, Paul Barker [email protected] wrote:
Quoted 5 lines · Mikko Rapeli
Quoted 3 lines · Oliver Westermann
Hey,
We're currently using a VM on Windows and it's a lot slower than the
native
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
linux build (which is expected).
We're looking into getting a dedicated build server for our team(basically a
Quoted 1 line
Quoted 1 line
Quoted 1 line
self-build tower PC). Any suggestions what to put in that build to
get the most
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
out of it?
Currently we're looking at a big Ryzen, 64G of RAM and one or
multiple SSDs on a
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
"consumer grade" board like the X570.
Drop all virtualization and go for Linux on bare metal. Then make sure
there
Quoted 1 line
Quoted 1 line
is enough(tm) physical RAM for each CPU thread. For a "big Ryzen" the
64G of RAM
Quoted 5 lines
Quoted 5 lines
sounds
too little. I'd go higher there, but it all depends what kind of project is being compiled.I would also setup CPU, RAM, disk IO and network IO monitoring on the
build
Quoted 2 lines
Quoted 2 lines
machines
and review and monitor the build times and results when the projectevolves.
Quoted 2 lines
Quoted 2 lines
There are
times when most CPUs will be idling and there will be times when IO todisk is
Quoted 1 line
Quoted 1 line
happening even when RAM is available. Linux kernel can be tuned to
avoid disk IO
Quoted 23 lines
Quoted 2 lines
if
RAM is still available for example.What Mikko said is excellent advice.
I'd recommend NVMe drives if you can. My build machine has two large M.2 NVMe drives, one is used for the working directory and the other for sstate, downloads and source checkouts to make the best use of the available bandwidth. I find that XFS is a better fit than ext4 when you've got fast drives and highly parallel I/O workloads.
Make sure you spread your RAM across the different memory channels on your motherboard as this increases memory bandwidth - this usually means either filling your RAM slots or half-filling them with RAM in every 2nd slot but you'll need to check the motherboard manual to confirm the channel layout.
Let me know if you need a detailed review of your proposed setup.
Thanks,
Paul
Quoted 7 lines · Jean-Marie Lemetayer
...
For example one of our build servers is using:
- AMD Ryzen 9 3900X
...
- 32Go DDR4 3200 MHZ CL14
...
It is a really good price / build time ratio configuration.
Depends on what you are building.
Building non-trivial C++ code (e.g. webkitgtk) with 24 cores but only 32 GB RAM will not work, for such code you need more than 2 GB/core.
Quoted 6 lines · Oliver Westermann
...
Any suggestions what to put in that build to get the most out of it?Currently we're looking at a big Ryzen, 64G of RAM and one or multiple SSDs on a "consumer grade" board like the X570.
...
I would buy 128 GB RAM to not run into problems due to lack of RAM, and Linux will also automatically use unused RAM as disk cache.
As long as you aren't running out of RAM or disk space all that matters is CPU speed, Ryzen 9 3950X with 128 GB RAM would be my choice unless you are on a tight budget.
cu
Adrian
Quoted 9 lines · Adrian Bunk via Lists.Yoctoproject.Org
Quoted 7 lines · Jean-Marie Lemetayer
...
For example one of our build servers is using:
- AMD Ryzen 9 3900X
...
- 32Go DDR4 3200 MHZ CL14
...
It is a really good price / build time ratio configuration.
Quoted 5 lines
Depends on what you are building.
Building non-trivial C++ code (e.g. webkitgtk) with 24 cores but only 32 GB RAM will not work, for such code you need more than 2 GB/core.
Seems a bit excessive to buy hardware just to handle a particular corner case. Most of OE/Yocto code is plain C, not even C++.
My rig only has 8GB but doesn't run into memory issues during big GUI builds. The only thing that made it swap was the populate_sdk task that created a 1.1GB fiel and needed 20GB of RAM to compress that. Took a few minutes more due to swapping. I submitted a patch today to fix that in OE.
Your mileage may vary. But RAM is easy to add.
Quoted 9 lines · Oliver Westermann
Quoted 6 lines
...
Any suggestions what to put in that build to get the most out of it?Currently we're looking at a big Ryzen, 64G of RAM and one or multiple SSDs on a "consumer grade" board like the X570.
...
Quoted 6 lines
I would buy 128 GB RAM to not run into problems due to lack of RAM, and Linux will also automatically use unused RAM as disk cache.
As long as you aren't running out of RAM or disk space all that matters is CPU speed, Ryzen 9 3950X with 128 GB RAM would be my choice unless you are on a tight budget.
Of course he's on a tight budget. He wouldn't need to ask for advice otherwise...
Most consumer boards support up to 64GB RAM. Pushing to 128 may suddenly double the price of the mobo as well. I'd go for 32 (as 2x16GB) and do an easy upgrade to 64 when there's trouble. Even with 4x16GB that's not a bad investment, if it turns out to be a bottleneck 16GB modules will be easy to sell (contrary to smaller modules).
Quoted 19 lines · Mike Looijmans
Quoted 9 lines · Adrian Bunk via Lists.Yoctoproject.Org
Quoted 7 lines · Jean-Marie Lemetayer
...
For example one of our build servers is using:
- AMD Ryzen 9 3900X
...
- 32Go DDR4 3200 MHZ CL14
...
It is a really good price / build time ratio configuration.Quoted 5 lines
Depends on what you are building.
Building non-trivial C++ code (e.g. webkitgtk) with 24 cores but only 32 GB RAM will not work, for such code you need more than 2 GB/core.
Seems a bit excessive to buy hardware just to handle a particular corner case. Most of OE/Yocto code is plain C, not even C++.
Quoted 7 lines
My rig only has 8GB but doesn't run into memory issues during big GUI builds. The only thing that made it swap was the
populate_sdktask that created a 1.1GB fiel and needed 20GB of RAM to compress that. Took a few minutes more due to swapping.
I submitted a patch today to fix that in OE.Your mileage may vary. But RAM is easy to add.
Well, I can't build with under 2 gigs per core or I run out of physical memory and kernel oom-killer kicks in to kill the build. Also can't run with yocto default parallel settings which only take into account the number of cores and thus have a custom script which does caps the threads so that 2 gigs of RAM for each are available.
Though I'm sure plain C and plain poky projects have less requirements for RAM.
-Mikko
Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?
My own experience (pardon me if already discussed)
Fought the build times for several months - ending up eventually at 8 cores (but specifying 16 threads in poky builds). Best times for my build about 4 hours. Clearly impractical during engineering.
Generated an sdk and used it for app development. Each build is now a minute or 2.
Using a homegrown utility, updated the image file with applications in a jiffy - to produce burnable sdcard image.
Complete build required only for the final release -- or made major changes like python2 to python3!
YMMV.
srini
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Mikko Rapeli via Lists.Yoctoproject.Org
Sent: Wednesday, March 18, 2020 11:52 AM
To: [email protected]
Cc: [email protected]
Subject: <EXT> Re: [yocto] What are the key factors for yocto build speed?
Quoted 19 lines · Mike Looijmans
Quoted 9 lines · Adrian Bunk via Lists.Yoctoproject.Org
Quoted 7 lines · Jean-Marie Lemetayer
...
For example one of our build servers is using:
- AMD Ryzen 9 3900X
...
- 32Go DDR4 3200 MHZ CL14
...
It is a really good price / build time ratio configuration.Quoted 5 lines
Depends on what you are building.
Building non-trivial C++ code (e.g. webkitgtk) with 24 cores but only 32 GB RAM will not work, for such code you need more than 2 GB/core.
Seems a bit excessive to buy hardware just to handle a particular corner case. Most of OE/Yocto code is plain C, not even C++.
Quoted 7 lines
My rig only has 8GB but doesn't run into memory issues during big GUI builds. The only thing that made it swap was the
populate_sdktask that created a 1.1GB fiel and needed 20GB of RAM to compress that. Took a few minutes more due to swapping.
I submitted a patch today to fix that in OE.Your mileage may vary. But RAM is easy to add.
Well, I can't build with under 2 gigs per core or I run out of physical memory and kernel oom-killer kicks in to kill the build. Also can't run with yocto default parallel settings which only take into account the number of cores and thus have a custom script which does caps the threads so that 2 gigs of RAM for each are available.
Though I'm sure plain C and plain poky projects have less requirements for RAM.
-Mikko
________________________________
CONFIDENTIALITY NOTICE: This email message and any attachments are confidential and may be privileged and are meant to be read by the intended recipient only. If you are not the intended recipient, please notify sender immediately and destroy all copies of this message and any attachments without reading or disclosing their contents. Thank you
Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?
4 hours seems extremely long to me for a 8 core system, but I have not tried this in a while. Were you removing all the sources and re-downloading them for every build?
From: <[email protected]> on behalf of Srini <[email protected]>
Date: Wednesday, March 18, 2020 at 10:13 AM
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?
My own experience (pardon me if already discussed)
Fought the build times for several months - ending up eventually at 8 cores (but specifying 16 threads in poky builds). Best times for my build about 4 hours. Clearly impractical during engineering.
Generated an sdk and used it for app development. Each build is now a minute or 2.
Using a homegrown utility, updated the image file with applications in a jiffy - to produce burnable sdcard image.
Complete build required only for the final release -- or made major changes like python2 to python3!
YMMV.
srini
-----Original Message-----
From: [email protected]<mailto:[email protected]> <[email protected]> On Behalf Of Mikko Rapeli via Lists.Yoctoproject.Org
Sent: Wednesday, March 18, 2020 11:52 AM
To: [email protected]<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>
Subject: <EXT> Re: [yocto] What are the key factors for yocto build speed?
Quoted 19 lines · Mike Looijmans
Quoted 9 lines · Adrian Bunk via Lists.Yoctoproject.Org
Quoted 7 lines · Jean-Marie Lemetayer
...
For example one of our build servers is using:
- AMD Ryzen 9 3900X
...
- 32Go DDR4 3200 MHZ CL14
...
It is a really good price / build time ratio configuration.Quoted 5 lines
Depends on what you are building.
Building non-trivial C++ code (e.g. webkitgtk) with 24 cores but only 32 GB RAM will not work, for such code you need more than 2 GB/core.
Seems a bit excessive to buy hardware just to handle a particular corner case. Most of OE/Yocto code is plain C, not even C++.
Quoted 7 lines
My rig only has 8GB but doesn't run into memory issues during big GUI builds. The only thing that made it swap was the
populate_sdktask that created a 1.1GB fiel and needed 20GB of RAM to compress that. Took a few minutes more due to swapping.
I submitted a patch today to fix that in OE.Your mileage may vary. But RAM is easy to add.
Well, I can't build with under 2 gigs per core or I run out of physical memory and kernel oom-killer kicks in to kill the build. Also can't run with yocto default parallel settings which only take into account the number of cores and thus have a custom script which does caps the threads so that 2 gigs of RAM for each are available.
Though I'm sure plain C and plain poky projects have less requirements for RAM.
-Mikko
________________________________
CONFIDENTIALITY NOTICE: This email message and any attachments are confidential and may be privileged and are meant to be read by the intended recipient only. If you are not the intended recipient, please notify sender immediately and destroy all copies of this message and any attachments without reading or disclosing their contents. Thank you
Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?
anyway this sounds like a complete rebuild not taking advantage of shard-state cache
Le mer. 18 mars 2020 à 18:47, David Stewart <[email protected]> a écrit :
Quoted 93 lines
4 hours seems extremely long to me for a 8 core system, but I have not tried this in a while. Were you removing all the sources and re-downloading them for every build?
*From: *<[email protected]> on behalf of Srini < [email protected]>
*Date: *Wednesday, March 18, 2020 at 10:13 AM
*To: *"[email protected]" <[email protected]>, " [email protected]" <[email protected]>
*Cc: *"[email protected]" <[email protected]> *Subject: *Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?My own experience (pardon me if already discussed)
Fought the build times for several months - ending up eventually at 8 cores (but specifying 16 threads in poky builds). Best times for my build about 4 hours. Clearly impractical during engineering.
Generated an sdk and used it for app development. Each build is now a minute or 2.
Using a homegrown utility, updated the image file with applications in a jiffy - to produce burnable sdcard image.
Complete build required only for the final release -- or made major changes like python2 to python3!
YMMV.
srini
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Mikko Rapeli via Lists.Yoctoproject.Org
Sent: Wednesday, March 18, 2020 11:52 AM
To: [email protected]
Cc: [email protected]
Subject: <EXT> Re: [yocto] What are the key factors for yocto build speed?Quoted 19 lines · Mike Looijmans
Quoted 9 lines · Adrian Bunk via Lists.Yoctoproject.Org
Quoted 7 lines · Jean-Marie Lemetayer
...
For example one of our build servers is using:
- AMD Ryzen 9 3900X
...
- 32Go DDR4 3200 MHZ CL14
...
It is a really good price / build time ratio configuration.Quoted 5 lines
Depends on what you are building.
Building non-trivial C++ code (e.g. webkitgtk) with 24 cores but only 32 GB RAM will not work, for such code you need more than 2 GB/core.
Seems a bit excessive to buy hardware just to handle a particular corner case. Most of OE/Yocto code is plain C, not even C++.
Quoted 7 lines
My rig only has 8GB but doesn't run into memory issues during big GUI builds. The only thing that made it swap was the
populate_sdktask that created a 1.1GB fiel and needed 20GB of RAM to compress that. Took a few minutes more due to swapping.
I submitted a patch today to fix that in OE.Your mileage may vary. But RAM is easy to add.
Well, I can't build with under 2 gigs per core or I run out of physical memory and kernel oom-killer kicks in to kill the build. Also can't run with yocto default parallel settings which only take into account the number of cores and thus have a custom script which does caps the threads so that 2 gigs of RAM for each are available.
Though I'm sure plain C and plain poky projects have less requirements for RAM.
-Mikko
________________________________
CONFIDENTIALITY NOTICE: This email message and any attachments are confidential and may be privileged and are meant to be read by the intended recipient only. If you are not the intended recipient, please notify sender immediately and destroy all copies of this message and any attachments without reading or disclosing their contents. Thank you
Signature · 2 lines
Yann Dirson <[email protected]> Blade / Shadow -- http://shadow.tech
Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?
In reply to David StewartSome of these started 2 years ago. Probably Krogoth timeframe thru rocko. (Did I get the names right!)
Not downloading from the net. But we had an inhouse git mirror of yocto.
We tried being a bit more adventurous but bitbake did not always seem to pick up the fact that some sources or options changed. Do not remember the details but we didn’t have time to investigate.
The same system now builds in about 2.5 hours the last time I looked. Different server farm with a much better storage architecture!
The key learning for me – which I recommend highly is to invest the time in the sdk! And tools to update your final image without having to rebuild. These factors alone improved our team productivity manyfold.
Again YMMV. srini
From: Stewart, David C <[email protected]>
Sent: Wednesday, March 18, 2020 1:48 PM
To: Srinivasan, Raja <[email protected]>; [email protected]; [email protected]
Cc: [email protected]
Subject: Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?
4 hours seems extremely long to me for a 8 core system, but I have not tried this in a while. Were you removing all the sources and re-downloading them for every build?
From: <[email protected]<mailto:[email protected]>> on behalf of Srini <[email protected]<mailto:[email protected]>>
Date: Wednesday, March 18, 2020 at 10:13 AM
To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Subject: Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?
My own experience (pardon me if already discussed)
Fought the build times for several months - ending up eventually at 8 cores (but specifying 16 threads in poky builds). Best times for my build about 4 hours. Clearly impractical during engineering.
Generated an sdk and used it for app development. Each build is now a minute or 2.
Using a homegrown utility, updated the image file with applications in a jiffy - to produce burnable sdcard image.
Complete build required only for the final release -- or made major changes like python2 to python3!
YMMV.
srini
-----Original Message-----
From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of Mikko Rapeli via Lists.Yoctoproject.Org
Sent: Wednesday, March 18, 2020 11:52 AM
To: [email protected]<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>
Subject: <EXT> Re: [yocto] What are the key factors for yocto build speed?
Quoted 19 lines · Mike Looijmans
Quoted 9 lines · Adrian Bunk via Lists.Yoctoproject.Org
Quoted 7 lines · Jean-Marie Lemetayer
...
For example one of our build servers is using:
- AMD Ryzen 9 3900X
...
- 32Go DDR4 3200 MHZ CL14
...
It is a really good price / build time ratio configuration.Quoted 5 lines
Depends on what you are building.
Building non-trivial C++ code (e.g. webkitgtk) with 24 cores but only 32 GB RAM will not work, for such code you need more than 2 GB/core.
Seems a bit excessive to buy hardware just to handle a particular corner case. Most of OE/Yocto code is plain C, not even C++.
Quoted 7 lines
My rig only has 8GB but doesn't run into memory issues during big GUI builds. The only thing that made it swap was the
populate_sdktask that created a 1.1GB fiel and needed 20GB of RAM to compress that. Took a few minutes more due to swapping.
I submitted a patch today to fix that in OE.Your mileage may vary. But RAM is easy to add.
Well, I can't build with under 2 gigs per core or I run out of physical memory and kernel oom-killer kicks in to kill the build. Also can't run with yocto default parallel settings which only take into account the number of cores and thus have a custom script which does caps the threads so that 2 gigs of RAM for each are available.
Though I'm sure plain C and plain poky projects have less requirements for RAM.
-Mikko
________________________________
CONFIDENTIALITY NOTICE: This email message and any attachments are confidential and may be privileged and are meant to be read by the intended recipient only. If you are not the intended recipient, please notify sender immediately and destroy all copies of this message and any attachments without reading or disclosing their contents. Thank you
________________________________
CONFIDENTIALITY NOTICE: This email message and any attachments are confidential and may be privileged and are meant to be read by the intended recipient only. If you are not the intended recipient, please notify sender immediately and destroy all copies of this message and any attachments without reading or disclosing their contents. Thank you
Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?
In reply to David StewartQuoted 1 line · David Stewart
4 hours seems extremely long to me for a 8 core system, but I have not tried this in a while. Were you removing all the sources and re-downloading them for every build?
Depends on the image Dave, I build images with QT5 and gnuradio and they take a while :) core-image-minimal is much faster.
Philip
Quoted 69 lines
From: <[email protected]> on behalf of Srini <[email protected]>
Date: Wednesday, March 18, 2020 at 10:13 AM
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?My own experience (pardon me if already discussed)
Fought the build times for several months - ending up eventually at 8 cores (but specifying 16 threads in poky builds). Best times for my build about 4 hours. Clearly impractical during engineering.
Generated an sdk and used it for app development. Each build is now a minute or 2.
Using a homegrown utility, updated the image file with applications in a jiffy - to produce burnable sdcard image.
Complete build required only for the final release -- or made major changes like python2 to python3!
YMMV.
srini
-----Original Message-----
From: [email protected]<mailto:[email protected]> <[email protected]> On Behalf Of Mikko Rapeli via Lists.Yoctoproject.Org
Sent: Wednesday, March 18, 2020 11:52 AM
To: [email protected]<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>
Subject: <EXT> Re: [yocto] What are the key factors for yocto build speed?Quoted 19 lines · Mike Looijmans
Quoted 9 lines · Adrian Bunk via Lists.Yoctoproject.Org
Quoted 7 lines · Jean-Marie Lemetayer
...
For example one of our build servers is using:
- AMD Ryzen 9 3900X
...
- 32Go DDR4 3200 MHZ CL14
...
It is a really good price / build time ratio configuration.Quoted 5 lines
Depends on what you are building.
Building non-trivial C++ code (e.g. webkitgtk) with 24 cores but only 32 GB RAM will not work, for such code you need more than 2 GB/core.
Seems a bit excessive to buy hardware just to handle a particular corner case. Most of OE/Yocto code is plain C, not even C++.
Quoted 7 lines
My rig only has 8GB but doesn't run into memory issues during big GUI builds. The only thing that made it swap was the
populate_sdktask that created a 1.1GB fiel and needed 20GB of RAM to compress that. Took a few minutes more due to swapping.
I submitted a patch today to fix that in OE.Your mileage may vary. But RAM is easy to add.
Well, I can't build with under 2 gigs per core or I run out of physical memory and kernel oom-killer kicks in to kill the build. Also can't run with yocto default parallel settings which only take into account the number of cores and thus have a custom script which does caps the threads so that 2 gigs of RAM for each are available.
Though I'm sure plain C and plain poky projects have less requirements for RAM.
-Mikko
________________________________
CONFIDENTIALITY NOTICE: This email message and any attachments are confidential and may be privileged and are meant to be read by the intended recipient only. If you are not the intended recipient, please notify sender immediately and destroy all copies of this message and any attachments without reading or disclosing their contents. Thank you
Re: <EXT> Re: [yocto] What are the key factors for yocto build speed?
In reply to SriniYou should really investigate the sstate-cache. Oh, and don't delete everything after every build...
If you take a brand new Ubuntu machine to our network, clone the repo and run a build, the XFCE desktop image will be built in about 5 minutes.
2 minutes is for recompiling the kernel or something akin to that.
Update and compile an application is usually less than that.
Another hint: devtool.
Quoted 60 lines · Raja
My own experience (pardon me if already discussed)
Fought the build times for several months - ending up eventually at 8 cores (but specifying 16 threads in poky builds). Best times for my build about 4 hours. Clearly impractical during engineering.
Generated an sdk and used it for app development. Each build is now a minute or 2.
Using a homegrown utility, updated the image file with applications in a jiffy - to produce burnable sdcard image.
Complete build required only for the final release -- or made major changes like python2 to python3!
YMMV.
srini
-----Original Message-----
From: [email protected] <mailto:[email protected]> <[email protected]> On Behalf Of Mikko Rapeli via Lists.Yoctoproject.Org
Sent: Wednesday, March 18, 2020 11:52 AM
To: [email protected] <mailto:[email protected]>
Cc: [email protected] <mailto:[email protected]>
Subject: <EXT> Re: [yocto] What are the key factors for yocto build speed?Quoted 19 lines · Mike Looijmans
Quoted 9 lines · Adrian Bunk via Lists.Yoctoproject.Org
Quoted 7 lines · Jean-Marie Lemetayer
...
For example one of our build servers is using:
- AMD Ryzen 9 3900X
...
- 32Go DDR4 3200 MHZ CL14
...
It is a really good price / build time ratio configuration.Quoted 5 lines
Depends on what you are building.
Building non-trivial C++ code (e.g. webkitgtk) with 24 cores but only 32 GB RAM will not work, for such code you need more than 2 GB/core.
Seems a bit excessive to buy hardware just to handle a particular corner case. Most of OE/Yocto code is plain C, not even C++.
Quoted 7 lines
My rig only has 8GB but doesn't run into memory issues during big GUI builds. The only thing that made it swap was the
populate_sdktask that created a 1.1GB fiel and needed 20GB of RAM to compress that. Took a few minutes more due to swapping.
I submitted a patch today to fix that in OE.Your mileage may vary. But RAM is easy to add.
Well, I can't build with under 2 gigs per core or I run out of physical memory and kernel oom-killer kicks in to kill the build. Also can't run with yocto default parallel settings which only take into account the number of cores and thus have a custom script which does caps the threads so that 2 gigs of RAM for each are available.
Though I'm sure plain C and plain poky projects have less requirements for RAM.
-Mikko
________________________________
CONFIDENTIALITY NOTICE: This email message and any attachments are confidential and may be privileged and are meant to be read by the intended recipient only. If you are not the intended recipient, please notify sender immediately and destroy all copies of this message and any attachments without reading or disclosing their contents. Thank you
Signature · 1 line
Mike Looijmans
Quoted 3 lines · Mike Looijmans
Of course he's on a tight budget. He wouldn't need to ask for advice otherwise...
When has a company ever given you a card blanche for equipment? :D
There is a budget and I just need to write down a good argument to spend it on something like this, the amount depends heavily on the arguments and this thread already provides a lot of arguments ;-)
Has anyone ever ran multiple bitbake instances (but with different users!) on a system? If so: Any precautions needed there?
Big ryzen is a good choice.
My home rig is a Ryzen 1900, with only 8GB RAM. It's way faster at OE yocto builds than the i7 at work that has 32GB RAM installed. My 8GB rig does not use swap space while building huge images (like satellite receivers and full-blown XFCE desktops).
For the CPU, the more cores the better. OE loves cores. Real cores are better than SMT cores (a.k.a. hyperthreading), and AMD's SMT has more effect than Intel's.
Harddisk speed has very little impact on your build time. It helps with the "setscene" parts, but doesn't affect actual compile time at all. I recall someone did a build from RAM disks only on a rig, and it was only about 1 minute faster on a one hour build compared to rotating disks.
SSD or NVMe doesn't make much difference. If you have budget to spend, spend it on RAM and CPU but not on disks.
I'd go for a reasonable NVMe disk, mostly for storing and booting the OS itself.
If you plan to share sstate-cache and downloads from this machine to other clients, I'd even suggest a plain big (4TB or so) rotating disk for storing that kind of stuff.
Again, don't spend your budget on disks. Disks are way easier to add later than any other component.
Quoted 6 lines · Oliver Westermann via Lists.Yoctoproject.Org
Hey,
We're currently using a VM on Windows and it's a lot slower than the native linux build (which is expected).
We're looking into getting a dedicated build server for our team (basically a self-build tower PC). Any suggestions what to put in that build to get the most out of it?Currently we're looking at a big Ryzen, 64G of RAM and one or multiple SSDs on a "consumer grade" board like the X570.
Signature · 1 line
Mike Looijmans
Quoted 1 line · Mike Looijmans
Harddisk speed has very little impact on your build time. It helps with the "setscene" parts, but doesn't affect actual compile time at all. I recall someone did a build from RAM disks only on a rig, and it was only about 1 minute faster on a one hour build compared to rotating disks.
My build machine has lots of RAM and I do builds in a 32GB tmpfs with rm_work (and no, I don't build webkit, which would make this impractical).
As you say, with sufficient RAM the build speed is practically the same as on disks due to the caching (especially if you tune the mount options), so I'd definitely spend money on more RAM instead of super-fast disks. I just prefer doing tmpfs builds because it saves my spinning rust. :)
Ross
Quoted 6 lines · Ross Burton
Quoted 4 lines · Mike Looijmans
Harddisk speed has very little impact on your build time. It helps with the "setscene" parts, but doesn't affect actual compile time at all. I recall someone did a build from RAM disks only on a rig, and it was only about 1 minute faster on a one hour build compared to rotating disks.
Quoted 7 lines
My build machine has lots of RAM and I do builds in a 32GB tmpfs with
rm_work(and no, I don't build webkit, which would make this impractical).As you say, with sufficient RAM the build speed is practically the same as on disks due to the caching (especially if you tune the mount options), so I'd definitely spend money on more RAM instead of super-fast disks. I just prefer doing tmpfs builds because it saves my spinning rust. :)
Alternative for tmpfs with hard size limit is to keep file system caches in memory as long as possible and only start writes to disks when page cache gets too full. This scales but still uses all the RAM available. Here's how to do this:
$ cat /etc/sysctl.d/99-build_server_fs_ops_to_memory.conf # fs cache can use 90% of memory before system starts io to disk, # keep as much as possible in RAM vm.dirty_background_bytes = 0 vm.dirty_background_ratio = 90 # keep stuff for 12h in memory before writing to disk, # allows reusing data as much as possible between builds vm.dirty_expire_centisecs = 4320000 vm.dirtytime_expire_seconds = 432000 # allow single process to use 60% of system RAM for file caches, e.g. image build vm.dirty_bytes = 0 vm.dirty_ratio = 60 # disable periodic background writes, only write when running out of RAM vm.dirty_writeback_centisecs = 0
Once this is done, IO still happens when anything calls sync() and fsync() and worst offenders are package management tools. In yocto builds, package manager actions to flush to disk are always useless since rootfs images are going to be compressed and original ones wiped by rm_work anyway. I've tried to hook eatmydata library into the build which makes sync() and fsync() calls no-ops but I've still failed to fix all the tools and processes called during build from python code. For shell based tasks this does it:
$ export LD_LIBRARY_PATH=/usr/lib/libeatmydata $ export LD_PRELOAD=libeatmydata.so $ grep -rn LD_PRELOAD conf/local.conf conf/local.conf:305:BB_HASHBASE_WHITELIST_append = " LD_PRELOAD" conf/local.conf:306:BB_HASHCONFIG_WHITELIST_append = " LD_PRELOAD"
The effect is clearly visible during build time using Performance Co-Pilot (pcp) or similar tools to monitor CPU, memory, IO and network IO. The usage of RAM as page cache grows until limits are hit and only then writes to disk start, except for the python image classes... Hints to fix this are welcome!
To my knowledge of monitoring our builds, there is a lot of optimization potential to better build times. CPU are under utilized during bitbake recipe parsing, fetch, configure, package and rootfs tasks. Memory is not fully utilized either since IO through sync()/fsync() happens everywhere, and due to background writes by default on ext4 etc file systems. Only do_compile() tasks are saturating all CPUs and when linking lots of C++ also all of RAM. Then dependencies between various recipes and tasks leaves large gaps in CPU utilization too.
-Mikko
Quoted 10 lines · Mikko Rapeli
Once this is done, IO still happens when anything calls
sync()andfsync()and worst offenders are package management tools. In yocto builds, package manager actions to flush to disk are always useless since rootfs images are going to be compressed and original ones wiped byrm_workanyway.
I've tried to hook eatmydata library into the build which makessync()andfsync()calls no-ops but I've still failed to fix all the tools and processes called during build from python code. For shell based tasks this does it:
Quoted 5 lines
$ export LD_LIBRARY_PATH=/usr/lib/libeatmydata $ export LD_PRELOAD=libeatmydata.so $ grep -rn LD_PRELOAD conf/local.conf conf/local.conf:305:BB_HASHBASE_WHITELIST_append = " LD_PRELOAD" conf/local.conf:306:BB_HASHCONFIG_WHITELIST_append = " LD_PRELOAD"
Doesn't pseudo intercept and stop these sync calls already? Its supposed to so if its not, we should fix that.
Quoted 10 lines
The effect is clearly visible during build time using Performance Co- Pilot (pcp) or similar tools to monitor CPU, memory, IO and network IO. The usage of RAM as page cache grows until limits are hit and only then writes to disk start, except for the python image classes... Hints to fix this are welcome!
To my knowledge of monitoring our builds, there is a lot of optimization
potential to better build times. CPU are under utilized during bitbake recipe parsing
Recipe parsing should hit 100% CPU, its one of the few places we can do that.
Quoted 1 line
, fetch, configure, package and rootfs tasks.
Sadly these tasks are much harder.
Quoted 2 lines
Memory is not fully utilized either since IO through sync()/fsync() happens everywhere
non-pseudo tasks?
Cheers,
Richard
Quoted 11 lines · Richard Purdie
Quoted 10 lines · Mikko Rapeli
Once this is done, IO still happens when anything calls
sync()andfsync()and worst offenders are package management tools. In yocto builds, package manager actions to flush to disk are always useless since rootfs images are going to be compressed and original ones wiped byrm_workanyway.
I've tried to hook eatmydata library into the build which makessync()andfsync()calls no-ops but I've still failed to fix all the tools and processes called during build from python code. For shell based tasks this does it:
Quoted 8 lines
Quoted 5 lines
$ export LD_LIBRARY_PATH=/usr/lib/libeatmydata $ export LD_PRELOAD=libeatmydata.so $ grep -rn LD_PRELOAD conf/local.conf conf/local.conf:305:BB_HASHBASE_WHITELIST_append = " LD_PRELOAD" conf/local.conf:306:BB_HASHCONFIG_WHITELIST_append = " LD_PRELOAD"Doesn't pseudo intercept and stop these sync calls already? Its supposed to so if its not, we should fix that.
I will double check, but I'm sure I see IO going to disk when plenty of RAM is still available in page cache.
Quoted 6 lines
Quoted 6 lines
The effect is clearly visible during build time using Performance Co- Pilot (pcp) or similar tools to monitor CPU, memory, IO and network IO. The usage of RAM as page cache grows until limits are hit and only then writes to disk start, except for the python image classes... Hints to fix this are welcome!
Quoted 7 lines
Quoted 4 lines
To my knowledge of monitoring our builds, there is a lot of optimization
potential to better build times. CPU are under utilized during bitbake recipe parsingRecipe parsing should hit 100% CPU, its one of the few places we can do that.
I'm not fully aware what bitbake does before starting task execution. With sumo, there is an initial spike in CPU use and then a long single thread wait where log shows "Initialising tasks..." and Cooker process is using a single core. For me this takes at least one minutes for every build. Same is visible with zeus too.
Example graph from pmchart:
https://mcfrisk.kapsi.fi/temp/bitbake_start_to_task_execution.png
Quoted 3 lines
Quoted 1 line
, fetch, configure, package and rootfs tasks.
Sadly these tasks are much harder.
Yep.
Quoted 4 lines
Quoted 2 lines
Memory is not fully utilized either since IO through sync()/fsync() happens everywhere
non-pseudo tasks?
I'll try to check this case once more.
-Mikko
Quoted 10 lines · On Thu, 2020-03-19 at 11:43 +0000, [email protected] wrote:
Quoted 3 lines · Richard Purdie
Recipe parsing should hit 100% CPU, its one of the few places we can do
that.I'm not fully aware what bitbake does before starting task execution. With sumo, there is an initial spike in CPU use and then a long single thread wait where log shows "Initialising tasks..." and Cooker process is using a single core. For me this takes at least one minutes for every build. Same is visible with zeus too.
This isn't recipe parsing but runqueue setup and taskgraph calculation which happens after parsing but before task execution. More recent bitbake is probably a bit better at it but it is unfortunately a single threaded process :(
Cheers,
Richard
Quoted 3 lines · Richard Purdie via Lists.Yoctoproject.Org
Quoted 1 line
, fetch, configure, package and rootfs tasks.
Sadly these tasks are much harder.
It would be really great if some sort of "weight" could be attached to a task. This relates to memory usage.
My system has 16 cores but only 8GB RAM. With both parallelization options to "16", I might end up with 16 compile tasks running 16 compile threads each, i.e. 256 running processes. In practice this doesn't actually happen, but the memory load gets high sometimes, so I reduce the TASKS to 8 at most. That has kept my system out of swap trouble for the time being.
The idea was that tasks get a "weight" in terms of cores they'll use, and the scheduler takes that into account. So it would run 16 do_configure tasks (weight=1) in parallel, but it would not start a new task that would push the weight over some number (say 40 for my case). So it would start a third compile, but not a fourth, but it would start a do_configure task.
Does that make sense?
In builds involving FPGA's I have tasks that take up about 48GB of RAM (my machine cannot run them) but only a single CPU core. Attempting to run multiple of these in parallel (happened to me when I changed some shared recipe content) will bring most machines to their knees. Currently my only way of handling that is manual interference...
Signature · 1 line
Mike Looijmans
Le jeu. 19 mars 2020 à 17:07, Mike Looijmans <[email protected]> a écrit :
Quoted 8 lines · Richard Purdie via Lists.Yoctoproject.Org
Quoted 3 lines
Quoted 1 line
, fetch, configure, package and rootfs tasks.
Sadly these tasks are much harder.
It would be really great if some sort of "weight" could be attached to a task. This relates to memory usage.
Quoted 7 lines
My system has 16 cores but only 8GB RAM. With both parallelization options to "16", I might end up with 16 compile tasks running 16 compile threads each, i.e. 256 running processes. In practice this doesn't actually happen, but the memory load gets high sometimes, so I reduce the TASKS to 8 at most. That has kept my system out of swap trouble for the time being.
This could be neatly handled by using the GNU-make job-server mechanism. If bitbake itself would provide a jub-server, all make-based recipes would automatically get their jobs properly limited. There is a (sadly not merged yet)
MR [1] for ninja tu gain job-server support as well, through which we should have
a pretty good coverage of the recipes set (as a backend for cmake, meson, and more).
[1] https://github.com/ninja-build/ninja/issues/1139
Signature · 2 lines
Yann Dirson <[email protected]> Blade / Shadow -- http://shadow.tech
Quoted 18 lines · Yann Dirson
Quoted 8 lines · Mike Looijmans
Quoted 3 lines · Richard Purdie via Lists.Yoctoproject.Org
Quoted 1 line
, fetch, configure, package and rootfs tasks.
Sadly these tasks are much harder.
It would be really great if some sort of "weight" could be attached to a task. This relates to memory usage.
Quoted 6 lines
My system has 16 cores but only 8GB RAM. With both parallelization options to "16", I might end up with 16 compile tasks running 16 compile threads each, i.e. 256 running processes. In practice this doesn't actually happen, but the memory load gets high sometimes, so I reduce the TASKS to 8 at most. That has kept my system out of swap trouble for the time being.
Quoted 7 lines
This could be neatly handled by using the GNU-make job-server mechanism. If bitbake itself would provide a jub-server, all make-based recipes would automatically get their jobs properly limited. There is a (sadly not merged yet) MR [1] for ninja tu gain job-server support as well, through which we should have a pretty good coverage of the recipes set (as a backend for cmake, meson, and more).
You mean like:
? :)
Sadly we never fixed all the issues to let that merge.
Cheers,
Richard
Quoted 33 lines · Richard Purdie
Quoted 3 lines · Yann Dirson
Le jeu. 19 mars 2020 à 17:07, Mike Looijmans <[email protected]>
Quoted 6 lines · a écrit :
Quoted 6 lines · Richard Purdie via Lists.Yoctoproject.Org
Quoted 3 lines
Quoted 1 line
, fetch, configure, package and rootfs tasks.
Sadly these tasks are much harder.
It would be really great if some sort of "weight" could be attached to
a
Quoted 4 lines
Quoted 4 lines
task. This relates to memory usage.
My system has 16 cores but only 8GB RAM. With both parallelization options to "16", I might end up with 16 compile tasks running 16
compile
Quoted 3 lines
Quoted 3 lines
threads each, i.e. 256 running processes. In practice this doesn't actually happen, but the memory load gets high sometimes, so I reduce the TASKS to 8 at most. That has kept my system out of swap trouble
for
Quoted 4 lines
Quoted 1 line
the time being.
This could be neatly handled by using the GNU-make job-server mechanism. If bitbake itself would provide a jub-server, all make-based recipes
would
Quoted 1 line
automatically get their jobs properly limited. There is a (sadly not
merged yet)
Quoted 1 line
MR [1] for ninja tu gain job-server support as well, through which we
should have
Quoted 1 line
a pretty good coverage of the recipes set (as a backend for cmake,
meson, and more).
Quoted 1 line
Quoted 10 lines
Quoted 1 line
You mean like:
? :)
Awesome :)
Sadly we never fixed all the issues to let that merge.
Quoted 1 line
The problems listed in the commit message don't amount to much at first glance. Any other issues
that got visible only later ?
Signature · 2 lines
Yann Dirson <[email protected]> Blade / Shadow -- http://shadow.tech
Quoted 5 lines · Mike Looijmans
...
With both parallelization options
to "16", I might end up with 16 compile tasks running 16 compile threads each, i.e. 256 running processes.
...
This is a bug:
http://bugzilla.yoctoproject.org/show_bug.cgi?id=13306
I sometimes wonder whether something basic like "no more than one compile task at a time" would be sufficient in practice to avoid overloading all cores.
It would also help with RAM usage, there are some combinations of recipes where the build gets aborted by the oom killer on my laptop (8 cores, 32 GB RAM) when bitbake runs the compile tasks in parallel.
cu
Adrian
Quoted 8 lines · Adrian Bunk
Quoted 6 lines · Mike Looijmans
...
With both parallelization options
to "16", I might end up with 16 compile tasks running 16 compile threads
each, i.e. 256 running processes.
...
Quoted 6 lines
This is a bug:
http://bugzilla.yoctoproject.org/show_bug.cgi?id=13306I sometimes wonder whether something basic like "no more than one compile task at a time" would be sufficient in practice to avoid overloading all cores.
You can test with:
do_compile[number_threads] = "1"
Cheers,
Richard
Quoted 10 lines · Adrian Bunk
Quoted 5 lines · Mike Looijmans
...
With both parallelization options
to "16", I might end up with 16 compile tasks running 16 compile threads each, i.e. 256 running processes.
...This is a bug:
http://bugzilla.yoctoproject.org/show_bug.cgi?id=13306
Quoted 7 lines
I sometimes wonder whether something basic like "no more than one compile task at a time" would be sufficient in practice to avoid overloading all cores.
It would also help with RAM usage, there are some combinations of recipes where the build gets aborted by the oom killer on my laptop (8 cores, 32 GB RAM) when bitbake runs the compile tasks in parallel.
I tried compiling octave on an ARM board with 1GB of RAM (because octave is virtually impossible to cross-compile). There was one C++ in there that triggered a huge memory load of about 1GB, thus failing to run fully in RAM. Had to create an extra 1GB swap on the SD card to get the build to succeed. The actual swap usage wasn't much, and I could finish the build with two threads even (a dual core ARM yay).
So the memory usage is dependent on what's in the C++ file. Especially heavy template programming can put a huge load on memory. There's no way to predict that beforehand.
Signature · 1 line
Mike Looijmans
Quoted 3 lines · Mike Looijmans
...
(because octave is virtually impossible to cross-compile).
...
The recipe in meta-openembedded cross-compiles without problem.
cu
Adrian
Quoted 16 lines · Mike Looijmans
Quoted 3 lines · Richard Purdie via Lists.Yoctoproject.Org
Quoted 1 line
, fetch, configure, package and rootfs tasks.
Sadly these tasks are much harder.
It would be really great if some sort of "weight" could be attached to a task. This relates to memory usage.
My system has 16 cores but only 8GB RAM. With both parallelization options to "16", I might end up with 16 compile tasks running 16 compile threads each, i.e. 256 running processes. In practice this doesn't actually happen, but the memory load gets high sometimes, so I reduce the TASKS to 8 at most. That has kept my system out of swap trouble for the time being.
Quoted 9 lines
The idea was that tasks get a "weight" in terms of cores they'll use, and the scheduler takes that into account. So it would run 16
do_configuretasks (weight=1) in parallel, but it would not start a new task that would push the weight over some number (say 40 for my case). So it would start a third compile, but not a fourth, but it would start ado_configuretask.Does that make sense?
is it something like make -l ? that you are looking for here.
Quoted 9 lines
In builds involving FPGA's I have tasks that take up about 48GB of RAM (my machine cannot run them) but only a single CPU core. Attempting to run multiple of these in parallel (happened to me when I changed some shared recipe content) will bring most machines to their knees. Currently my only way of handling that is manual interference...
--
Mike Looijmans
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Mike Looijmans via Lists.Yoctoproject.Org
Big ryzen is a good choice.
My home rig is a Ryzen 1900, with only 8GB RAM. It's way faster at OE yocto builds than the i7 at work that has 32GB RAM installed.
Sorry - wrong number. My rig does not have a 1900, but an "AMD Ryzen 7 1700".
Quoted 8 lines · Oliver Westermann
Hey,
We're currently using a VM on Windows and it's a lot slower than the native linux build (which is expected).
We're looking into getting a dedicated build server for our team (basically a self-build tower PC). Any suggestions what to put in that build to get the most out of it?Currently we're looking at a big Ryzen, 64G of RAM and one or multiple SSDs on a "consumer grade" board like the X570.
Suggestions, hints and links welcome :)
Other replies look good to me, here are few additions:
If you want to compare how terrible your current VM compares with some other builders, you can use:
https://github.com/shr-project/test-oe-build-time
I wouldn't be surprised if your VM performs even worse than +- 200USD ryzen 1600 system.
I would be happy to apply pull requests from other people in this thread with their suggestions.
You didn't mention the budget, but big Ryzen is definitely good choice.
You also didn't mention how "big" your typical builds are, if you're building something as big as the webengines used in test-oe-build-time, then it might be worth to spend a bit extra on 3970X Threadripper if budget allows.
I'm still looking for someone with access to Epyc (ideally 7702P or 7502P), because it's only a bit more expensive than corresponding Threadripper, but without the unfortunate limitation to 8 DIMM slots with difficult to buy 256GB sets:
https://www.gskill.com/community/1502239313/1574739775/G.SKILL-Announces-New-High-Performance,-Ultra-Capacity-DDR4-Memory-Kits-for-HEDT-Platforms
will be nice when it gets finally available. On Epyc on the other hand you'll get 8 channels instead of 4 and much less issues to find compatible kit (even with ECC support). If the performance is significantly better than 3990X, then 7702P might be much better option for "professional" builder - as long as you can cool server mother board in tower PC efficiently enough.
Cheers,
Quoted 1 line
Quoted 5 lines · Martin Jansa
If you want to compare how terrible your current VM compares with some other builders, you can use:
https://github.com/shr-project/test-oe-build-time
Thanks for all the replies here, had some long days so no earlier answers.
I did test this on my home rig (2600X, 16G RAM) and it took ~ 24h until I aborted. Is this expected? I did not yet try on the VM ;D
- Olli
On 1600AF with 16G RAM and nvme drive it took ~ 38 hours, if you were running all 4 builds (as test.sh does), you can still finish the tests by running only the remaining build steps.
You can send me even partial results and I'll let you know if your times are expected or not (it should be very similar to this 1600AF, depends on how much swap you have and on how fast disks the swap and build is).
It's also possible that you didn't have enough swap and one of bitbake threads got killed by OOMK and then the rest was stuck forever.
Regards,
Quoted 13 lines · Oliver Westermann
On Wed, Mar 18, 2020 at 08:38 AM, Martin Jansa wrote:
If you want to compare how terrible your current VM compares with some other builders, you can use:
https://github.com/shr-project/test-oe-build-timeThanks for all the replies here, had some long days so no earlier answers. I did test this on my home rig (2600X, 16G RAM) and it took ~ 24h until I aborted. Is this expected? I did not yet try on the VM ;D
- Olli