On a VM with 1 GB RAM, two CPU cores and parallelized make -j4

We configure the guest VM to have two processors, and proceed with the parallelized build (by specifying make -j4 ):

$ cd <linux-4.17-kernel-src-dir>$ perf stat make V=0 -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- allscripts/kconfig/conf --syncconfig Kconfig  CHK include/config/kernel.release  SYSHDR arch/arm/include/generated/uapi/asm/unistd-oabi.h  SYSHDR arch/arm/include/generated/uapi/asm/unistd-common.h  WRAP arch/arm/include/generated/uapi/asm/bitsperlong.h  WRAP arch/arm/include/generated/uapi/asm/bpf_perf_event.h  WRAP arch/arm/include/generated/uapi/asm/errno.h[...]                  << lots of output >>  CC arch/arm/boot/compressed/string.o  AS arch/arm/boot/compressed/hyp-stub.o AS arch/arm/boot/compressed/lib1funcs.o ...

Get Hands-On System Programming with Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.