Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
About MAKEOPTS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fangwen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2011
Posts: 128
Location: Shanghai, China

PostPosted: Sun Nov 13, 2011 4:41 pm    Post subject: About MAKEOPTS Reply with quote

I read Linux Kernel in a Nutshell and I had a question.

In Gentoo Handbook, the author wrote
Quote:
With MAKEOPTS you define how many parallel compilations should occur when you install a package. A good choice is the number of CPUs (or CPU cores) in your system plus one, but this guideline isn't always perfect.


But in LKN, the guidelines are
Quote:
To build the kernel in a multithreaded way, use the -j option to the make program. It is best to give a number to the -j option that corresponds to twice the number of processors in the system. So, for a machine with 2 processors present, use:
$
make -j4


Of course the Gentoo Handbook said it's not always perfect, so what do you think from your own experience?

Also, could anyone explain that in detail?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54817
Location: 56N 3W

PostPosted: Sun Nov 13, 2011 6:27 pm    Post subject: Reply with quote

fangwen,

Well, MAKEOPTS in make.conf applies to everything *except* the kernel, so they can both be right.

The kernel is a large number of small files, so more parallel makes may be better.
make.conf has to work with a much larger range of packages.

One thing is for sure, what suits one package will be sub optimal for another.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum