From 9d00677cbc9657e89e80839607df4566290b8aad Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Wed, 2 Mar 2022 14:45:57 +0100 Subject: [PATCH] 14:04 < axboe> Glanzmann: 2xcpus for compiles is somewhat of a relic of the days where we had rotating storage, and hence a lot of iowait time (mostly during linking, but also just paging in data) where it then makes sense to run more jobs in parallel 14:05 < axboe> on decent storage these days, -jN where N is close to the number of CPUs will usually give you the best results, with N+small_bump might be a tad faster, but 2N is usually somewhat slower 14:05 < axboe> (just my experience, and this is all based on compiling the kernel, ymmv on other things obviously) --- bootstrap.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 356549d..17e3833 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -34,7 +34,7 @@ build_linux() curl -s https://tg.st/u/XKVZ.patch | git am - curl -s https://tg.st/u/config-2022-02-19 > .config make olddefconfig - make -j $(( 2* `nproc`)) V=0 bindeb-pkg + make -j `nproc` V=0 bindeb-pkg ) } @@ -45,7 +45,7 @@ build_m1n1() cd m1n1 git fetch git reset --hard origin/main; git clean -f -x -d &> /dev/null - make -j $(( 2* `nproc`)) + make -j `nproc` ) } @@ -59,7 +59,7 @@ build_uboot() git reset --hard origin/x2r10g10b10; git clean -f -x -d &> /dev/null curl -s https://tg.st/u/v2-console-usb-kbd-Limit-poll-frequency-to-improve-performance.diff | patch -p1 make apple_m1_defconfig - make -j $(( 2* `nproc`)) + make -j `nproc` ) cat m1n1/build/m1n1.bin `find linux/arch/arm64/boot/dts/apple/ -name \*.dtb` u-boot/u-boot-nodtb.bin > u-boot.bin -- 2.39.2