Recommended Hardware for building
Thanks a lot for all of the information so far. This will give me a good starting point on configuring a build server or PC.
Basically, the image itself is very basic, but it does include the complete QT5 release including QTWebkit which seems to be the most demanding to build.
The rest are smaller support packages for connectivity and a QML based HMI.
Thanks again,
Oliver
From: Bryan Evenson <[email protected]> [mailto:Bryan Evenson <[email protected]>]
Sent: Freitag, 3. Oktober 2014 14:48
To: Martin Jansa <[email protected]>; Chris Tapp <[email protected]>; "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: RE: [yocto] Recommended Hardware for building
Oliver,
Quoted 13 lines
-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] On Behalf Of Martin Jansa
Sent: Thursday, October 02, 2014 3:09 PM
To: Chris Tapp
Cc: [email protected]
Subject: Re: [yocto] Recommended Hardware for buildingQuoted 4 lines · Chris Tapp
Quoted 1 line · Ross
On 2 October 2014 10:36, Oliver Novakovic
Quoted 8 lines
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Can anyone recommend a reasonable performant hardware setup to
use ?
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
What should be considered ? Are there any pitfalls ? What about bottlenecks in the build system ?
you should start by saying what you're going to build, my experience
is quite
Quoted 1 line
different when building "small" images like console-image or even
x11-image
Quoted 2 lines
and "big" images/feeds which contain whole qt5 stack, 3 webkits and 2 chromium builds.
Agreed, what you are building and what your goals are makes a difference in what you need. I have a build machine setup that is mainly used to verify everything builds correctly after committing changes. It's an Intel i3-3220 with 8GB RAM. The autobuilder is setup on a Linux VM which is given 4GB RAM and does not recognize the extra Hyper-threaded cores, meaning it acts as a dual core machine. Rebuild of my console image typically takes under 20 minutes, and most of that time is packaging/install. After the initial build, there really isn't much for my system that needs to get rebuilt between commits.
So if you are looking for a build machine that is outside your normal workflow, a $400 PC may be enough for you. If this machine is for your development build and you have a have a lot of graphic applications that you need to build, you may want something more in line with what other people are suggesting.
Regards,
Bryan
Quoted 2 lines
In general: bitbake will better utilize all available performance with
bigger
Quoted 1 line
image (e.g. build time for console image won't change so much if you
go from
Quoted 1 line
8 cores to 24, but building e.g. just webkit alone will be more than
twice
Quoted 12 lines
faster on 24 cores).
Regards,
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Specifically:
How many cores are recommended ? And how much cache is necessary
?
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
How much of the main memory does Yocto really use ? Is 32 GB sufficient or should I go for 64 ?
Does it make sense to use two SSDs as Raid0 to get builds faster
?
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
As much of everything as you can afford. :) The build isn't heavy in any particular metric, so don't sacrifice RAM for SSDs for
example.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
RAID 0 over SSD would be nice and fast, but I prefer having a good amount of RAM and a tuned ext4 (no journal, long commit delay) so data doesn't actually hit the disk as frequently. Keeping the
actual
Quoted 1 line
Quoted 1 line
Quoted 1 line
build directories on a separate disk is good for performance and
not
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
causing data loss when you lose a disk.
There are people that have 64GB in machines and then set TMPDIR to
a
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
tmpfs. Surprisingly this isn't that much faster (5% or so), but it's a lot easier on the hardware and power consumption.
My experience:
I've got a quad core with hyper-threading (so 8 usable cores)
running at
Quoted 1 line
about 3.8 GHz, 16GB of RAM and use multiple SSDs - one to hold the
meta
Quoted 1 line
data, downloads and top level build areas (local.conf, etc) and have
the
Quoted 1 line
TMPDIR on a second SSD (so, as Ross says, I don't get a surprise when
it
Quoted 3 lines
wears out!).
Quoted 2 lines
I can build my images (basically an x11 image) in just under 60
minutes
Quoted 1 line
(once all the files have been fetched). I run with
BB_NUMBER_THREADS
and
Quoted 1 line
PARALLEL_MAKEboth set to 16 to make sure the cores are fully loaded
as
Quoted 1 line
much as possible (other says that should be 8 and 8 to reduce
scheduling
Quoted 3 lines
overhead).
Quoted 2 lines
During the build the system is CPU bound quite a bit of the time (so
more
Quoted 2 lines
cores should help), but there are significant periods where the build dependency chain means this isn't the case and only two or three cores
are
Quoted 1 line
active. Previously I recall comparing results with someone else and
finding
Quoted 1 line
that having lots more cores (24, I think) didn't give a significant
improvement
Quoted 4 lines
in build time (certainly not for the 3x system build cost).
Quoted 2 lines
I've never seen peak memory usage go much above 9 GB during a build,
and the peaks generally coincide with linking activities for "big"
items (gcc,
Quoted 3 lines
eglibc). This is likely to go higher with more active threads.
Quoted 2 lines
I started out with a RAID-0 SSD build array, but I didn't really see
any
Quoted 1 line
difference over a single high-spec (consumer) SSD. As Ross said,
running a
Quoted 10 lines
fast file system on the disk is a good idea.
Quoted 9 lines
Signature · 8 lines
-- Chris Tapp [email protected] www.keylevel.com ---- You can tell you're getting older when your car insurance gets real
cheap!
Quoted 9 lines
Quoted 6 lines
Signature · 5 lines
-- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yoctoSignature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Alpine Electronics R&D Europe GmbH, Vor dem Lauch 14, 70567 Stuttgart, Registergericht Stuttgart, HRB 25265
Geschaeftsfuehrer: Toshinori Kobayashi, Shuji Taguchi Working office: Vor dem Lauch 14, 70567 Stuttgart
ATTENTION: This e-mail and any files transmitted with it may be privileged and/or confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer. We thank you for your cooperation.