[poky] build performance: bb-matrix on 4-core (BB_NUMBER_THREADS and PARALLEL_MAKE optimization)
Robert Berger
gmane at reliableembeddedsystems.com
Fri Jul 8 13:44:26 PDT 2011
Darren/Richard,
Maybe we could instead of hacking hard coded default values (or nothing)
into the config file default to something like this:
somehow get the number of CPUs:
CPUS=$(grep ^processor /proc/cpuinfo | wc -l)
echo CPUS=${CPUS}
or
CPUS=`getconf _NPROCESSORS_ONLN`
echo CPUS_UBUNTU=${CPUS_UBUNTU}
(don't know if the second one will also work with other distros than Ubuntu)
Do some calculation which magic number for BB_NUMBER_THREADS and
PARALLEL_MAKE to use:
e.g. what was suggested: BB=2*NR_CORES PM=1.5*NR_CORES
Regards,
Robert
...For every complex problem there is a solution which is simple, neat
and wrong. -- H.L. Mencken
My public pgp key is available at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
More information about the poky
mailing list