[BL training-materials-updates] Kernel compiling: recommend make -j 8

Michael Opdenacker michael.opdenacker at bootlin.com
Thu Nov 29 16:02:20 CET 2018


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=d26c84fac6d792eb23a4462f0b4e48abe7272ce1

>---------------------------------------------------------------

commit d26c84fac6d792eb23a4462f0b4e48abe7272ce1
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu Nov 29 16:02:20 2018 +0100

    Kernel compiling: recommend make -j 8
    
    - make -j 4 may not be optimum with recent x86 CPUs
      that can have more CPUs than 4.
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

d26c84fac6d792eb23a4462f0b4e48abe7272ce1
 .../kernel-compiling-and-nfs-booting.tex                                | 2 +-
 slides/sysdev-kernel-building/sysdev-kernel-building.tex                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex b/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
index a699538..05e9fdd 100644
--- a/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
+++ b/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
@@ -95,7 +95,7 @@ Compile your kernel and generate the Device Tree Binaries (DTBs)
 (running 4 compile jobs in parallel):
 
 \begin{verbatim}
-make -j 4 
+make -j 8 
 \end{verbatim}
 
 Now, copy the \code{zImage} and \code{am335x-boneblack.dtb}
diff --git a/slides/sysdev-kernel-building/sysdev-kernel-building.tex b/slides/sysdev-kernel-building/sysdev-kernel-building.tex
index b1e3eaf..c7be5c3 100644
--- a/slides/sysdev-kernel-building/sysdev-kernel-building.tex
+++ b/slides/sysdev-kernel-building/sysdev-kernel-building.tex
@@ -389,7 +389,7 @@ tools (\code{gcc}, \code{as}, \code{ld}, \code{objcopy}, \code{strip}...).
     \begin{itemize}
     \item In the main kernel source directory!
     \item Remember to run multiple jobs in parallel
-          if you have multiple CPU cores. Example: \code{make -j 4}
+          if you have multiple CPU cores. Example: \code{make -j 8}
     \item No need to run as root!
     \end{itemize}
   \item Generates




More information about the training-materials-updates mailing list