]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: lowering parallel buildprocesses
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 18 Dec 2017 15:48:13 +0000 (16:48 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 18 Dec 2017 15:48:13 +0000 (16:48 +0100)
higher values raise the system load but not speedup the build

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index dadc87f0ceac6feb50dbd1c420f9c6eab4165d78..781590794c3391a355410dd9fd91e393f3bba672 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -208,7 +208,7 @@ configure_build() {
                local mem_max=$(( ${HOST_MEM} / 192 ))
 
                local processors="$(system_processors)"
-               local cpu_max=$(( ${processors} * 2 ))
+               local cpu_max=$(( ${processors} + 1 ))
 
                local parallelism
                if [ ${mem_max} -lt ${cpu_max} ]; then