From 7891894863307fa28e779fa9b61ae265f772d47b Mon Sep 17 00:00:00 2001 From: Constantine Date: Tue, 20 Nov 2018 20:06:53 +0200 Subject: [PATCH] limit palallel make with load average Unlimited recursive and multiple parallel makes run much more tasks than CPUs, overloads system and dramatically increases load average. Option --load-average[=load] specifies that no new jobs should be started if there are others jobs running and the load average is at least as specified. --- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index dcf20078831..2fe7bef978c 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -789,7 +789,7 @@ CACHE := "${CACHE}" BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}" # Default to setting automatically based on cpu count -PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}" +PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()} -l ${@oe.utils.cpu_count()}" ################################################################## # Magic Cookie for SANITY CHECK