Article 5JDZK How to use -j option the right way when compiling with make

How to use -j option the right way when compiling with make

by
George528
from LinuxQuestions.org on (#5JDZK)
I am reading "O'Reilly Linux Kernel in a Nutshell" book and came across this:
https://i.imgur.com/uVJhpae.png
they say that the -j option should be the double of your cpu cores.
can you please confirm if this information is true?

In LFS book, they said that the -j number should be the number of cores of your CPU.
https://i.imgur.com/tqoVxHt.png

In gentoo handbook they say that it should one unit should be 2GB of ram, so for example if you have 4GB of ram, you should set -j2, for 8GB, -j4 and so on.
https://i.imgur.com/qRs6uXL.png

Which information is true? i am so confused.latest?d=yIl2AUoC8zA latest?i=qlB8W3FzzLY:dWhKW2IMVMw:F7zBnMy latest?i=qlB8W3FzzLY:dWhKW2IMVMw:V_sGLiP latest?d=qj6IDK7rITs latest?i=qlB8W3FzzLY:dWhKW2IMVMw:gIN9vFwqlB8W3FzzLY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments