summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow/files
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2021-08-18 21:29:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-20 08:53:03 +0100
commitc5db14b395ee5dc55baae5e84166ccfcdc1ef083 (patch)
treefc01a214a8d431cae044b3d840d709dddafa3265 /meta/recipes-extended/shadow/files
parent9986923d05f87101a56f85c9a27258fd82d8b1ef (diff)
downloadpoky-c5db14b395ee5dc55baae5e84166ccfcdc1ef083.tar.gz
sstate.bbclass: get the number of threads from BB_NUMBER_THREADS
- bitbake BB_NUMBER_THREADS uses cpu_count from oe utils that uses the python os.sched_getaffinity and it is more acurrate. grep -nH ^BB_NUMBER_THREADS meta/conf/bitbake.conf meta/conf/bitbake.conf:806:BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}" - multiprocessing.cpu_count() returns the number of CPUs on the host, not the number of usable CPUs on the host. If the user is using scheduler affinity then the number of usable CPUs may be less, so when determining how many cores we can use check the affinity instead. (From OE-Core rev: 45c52f08a289c6eb2329de50634a0406204d1d8e) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow/files')
0 files changed, 0 insertions, 0 deletions