From: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
To: openembedded-core@lists.openembedded.org
Subject: Re: Improving Build Speed
Date: Thu, 21 Nov 2013 12:51:57 +0100 [thread overview]
Message-ID: <ly61rmt1k2.fsf@ensc-virt.intern.sigma-chemnitz.de> (raw)
In-Reply-To: <528D2429.7040705@emagii.com> (Ulf Samuelsson's message of "Wed, 20 Nov 2013 22:05:45 +0100")
Ulf Samuelsson <angstrom-dev-AoFPY8dbyRPQT0dZR+AlfA@public.gmane.org>
writes:
> PARALLEL_MAKE = "-j6"
> BB_NUMBER_THREADS = "24"
I define
| PARALLEL_MAKE = "\
| -j ${@int(os.sysconf(os.sysconf_names['SC_NPROCESSORS_ONLN'])) * 2} \
| -l ${@int(os.sysconf(os.sysconf_names['SC_NPROCESSORS_ONLN'])) * 150/100} \
| "
|
| BB_NUMBER_THREADS ?= "\
| ${@int(os.sysconf(os.sysconf_names['SC_NPROCESSORS_ONLN'])) * 150/100}"
in my global configuration (note the '-l'). I would like to limit it by
the available RAM size (e.g. one -j per GB) but BB_NUMBER_THREADS makes
it difficultly to express it. There are also dependencies on the used
filesystem (e.g. btrfs performance seems to degrade rapidly with higher
-j).
It would be perfect when bitbake takes the role of the toplevel
jobserver[1] but that's probably very difficultly to implement and
might interfere with recursive make.
> and was quicker, but it seemed to be a little flawed. At several
> times during the build, the CPU frequtil showed that most of the cores
> went down to minimum frequency (2,93 GHz -> 1,6 GHz)
Capturing resource usage (--> getrusage(2)) will give more details
(e.g. about i/o load). E.g. see
https://www.cvg.de/people/ensc/oe-metrics.html
Enrico
prev parent reply other threads:[~2013-11-21 11:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 21:05 Improving Build Speed Ulf Samuelsson
2013-11-20 21:29 ` Richard Purdie
2013-11-20 22:43 ` Ulf Samuelsson
2013-11-21 0:19 ` Martin Jansa
2013-11-21 7:15 ` Ulf Samuelsson
2013-11-21 12:53 ` Martin Jansa
2013-11-23 18:39 ` Nicolas Dechesne
2013-11-21 0:10 ` Martin Jansa
2013-11-21 8:04 ` Ulf Samuelsson
2013-11-21 13:53 ` Richard Purdie
2013-11-23 15:06 ` Ulf Samuelsson
2013-11-21 10:05 ` Burton, Ross
2013-11-21 11:51 ` Enrico Scholz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ly61rmt1k2.fsf@ensc-virt.intern.sigma-chemnitz.de \
--to=enrico.scholz@sigma-chemnitz.de \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox