]> git.ozlabs.org Git - next-scripts/commitdiff
do_build: try higher -j numbers
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 Feb 2023 22:21:36 +0000 (09:21 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 Feb 2023 22:21:36 +0000 (09:21 +1100)
on zz1, I am seeing ~20% idle time while building

do_build

index b5dbde2d312d30e06a8091fa7083a53cb8abb4d7..ac731b405de20e2d62f289fb243ea7ec15db95e3 100755 (executable)
--- a/do_build
+++ b/do_build
@@ -108,7 +108,7 @@ $cmd <<-EOF
        log_x86=\$d.log
        make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- O=\$d -s allmodconfig || exit 1
        echo "Forking x86 build ..."
-       /usr/bin/time make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- O=\$d -j120 -O -s > \$log_x86 2>&1 &
+       /usr/bin/time make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- O=\$d -j140 -O -s > \$log_x86 2>&1 &
        x86_64_pid=\$!
 
        echo Building: perf
@@ -118,7 +118,7 @@ $cmd <<-EOF
        # the -Wno-psabi is to suppress
        #       note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5
        # warnings until at least gcc 12 when the warning will be removed
-       /usr/bin/time make -C tools/perf -f Makefile.perf -s -O -j40 O=\$d EXTRA_CFLAGS=-Wno-psabi > \$log_perf 2>&1
+       /usr/bin/time make -C tools/perf -f Makefile.perf -s -O -j60 O=\$d EXTRA_CFLAGS=-Wno-psabi > \$log_perf 2>&1
        rc=\$?
 
        if [ \$rc -ne 0 ]; then
@@ -139,7 +139,7 @@ $cmd <<-EOF
        [ -d \$d ] || mkdir \$d || exit 1
        log_ppc=\$d.log
        make ARCH=powerpc O=\$d -s ppc64_defconfig || exit 1
-       /usr/bin/time make ARCH=powerpc O=\$d -j40 -O -s > \$log_ppc 2>&1
+       /usr/bin/time make ARCH=powerpc O=\$d -j60 -O -s > \$log_ppc 2>&1
        rc=\$?
 
        if [ \$rc -ne 0 ]; then
@@ -160,7 +160,7 @@ $cmd <<-EOF
        [ -d \$d ] || mkdir \$d || exit 1
        log_arm=\$d.log
        make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- O=\$d -s multi_v7_defconfig || exit 1
-       /usr/bin/time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- O=\$d -j40 -O -s > \$log_arm 2>&1
+       /usr/bin/time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- O=\$d -j60 -O -s > \$log_arm 2>&1
        rc=\$?
 
        if [ \$rc -ne 0 ]; then