LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-23-2009, 06:51 AM   #16
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553

I have always used (cores+1) as my -j argument, only because that's what I read way back, and have not really re-considered it since.
I have a core2 CPU, so I use -j3; and by the same reasoning, a dual-core CPU with hyperthreading would like to have a -j5

I admit though, the (cores+1) argument has never quite made perfect sense to me: why run a job per CPU, plus an odd job?.. Seems that (cores) would be a better calculation, but really I have never re-evaluated or tested different -j options

I do however use -j1 in cases of code that seems to have race-conditions (or slow dependency resolution?) where parts of the build needed by the next step of the build are not quite available fast enough (cases where make quits because it can't find something, but just typing 'make' again causes the build to resume like nothing went wrong)

Sasha
 
Old 07-23-2009, 08:43 AM   #17
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,328
Blog Entries: 18

Rep: Reputation: 3125Reputation: 3125Reputation: 3125Reputation: 3125Reputation: 3125Reputation: 3125Reputation: 3125Reputation: 3125Reputation: 3125Reputation: 3125Reputation: 3125
I guess the trick is to use a large enough value of j to keep all your cores busy while some of the tasks are waiting on I/O, without introducing too much task swapping and contention.

I guess the correct value will depend on how good your I/O subsystem is as that will determin what % of the time your cpu's will be sitting idle.

A make modules and bzImage on my crappy old p3-800 takes about 3 hours, but that's also on luks encrypted disks. I normally just 'nice -n 19' it and let it run in the background while I do other stuff.

Looking forward to trying it on my new box, which I'll be installing when Slack 13 releases.

Last edited by GazL; 07-23-2009 at 08:45 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make-kpkg options dravenloft Debian 0 05-16-2006 11:16 AM
make architecture options mcirsta Linux - Newbie 2 04-30-2005 08:09 PM
make <systype> [options] spideywebsling Linux - Newbie 10 07-03-2004 05:05 PM
'make mrproper' - make bzImage options. liguorir Linux - Software 4 06-26-2003 07:48 PM
including options in make watashiwaotaku7 Linux - General 0 01-22-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration