Saving compilation time with make -j

Linux / Compile

3Way Solutions Image

Sebastian Misuraca

When compiling a library, a program or the Linux kernel itself, the command make By default it uses a single logical processor (thread) in the system.
To speed up the times we can use the parameter -j and indicate the number of logical processors that we want to use.

Example:

make -j 8

How do I know how many logical processors or threads I have available?

cat /proc/cpuinfo | grep processor | wc -l

In the following video I will show you how to compile the kernel with a Dell server with dual Intel(R) Xeon(R) CPU E5-2698 v4 @ 2.20GHz

Discover more from 3Way Solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading