Package: nvidia-kernel-dkms Version: 375.66-1 Severity: wishlist Tags: upstream
Hi, the nvidia driver consists of several files that can be compiled in parallel, but the dkms.conf file specifically forces a single-threaded build even if dkms would pass make(1) a -j flag. (Also, while I'm sure there once was a reason for setting CCACHE_DISABLE=1, does it still apply?) On my system, -j8 results in a dramatic improvement (build time decreases from about 7 minutes to about 1 minute). In dkms.conf, I changed MAKE[0]="unset ARCH; env CCACHE_DISABLE=1 NV_VERBOSE=1 \ make modules KERNEL_UNAME=${kernelver}" to MAKE[0]="unset ARCH; env CCACHE_DISABLE=1 NV_VERBOSE=1 \ make -j8 modules KERNEL_UNAME=${kernelver}" and got a nice speed boost (which adds up if you have several kernels installed). I haven't tested it, but maybe the following would work: [ -x /usr/bin/nproc ] && JOBS="-j$(nproc)" MAKE[0]="unset ARCH; env CCACHE_DISABLE=1 NV_VERBOSE=1 \ make $JOBS modules KERNEL_UNAME=${kernelver}" Andras -- If everyone needs to think outside the box, maybe the box needs fixing.