bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch #7327] Add the option -J / --auto-jobs to auto-decide a sane numb


From: Björn Stenberg
Subject: [Patch #7327] Add the option -J / --auto-jobs to auto-decide a sane number of job slots
Date: Thu, 13 Jan 2011 00:17:04 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

(I submitted this patch a few months ago but since it has not recieved any 
attention I thought I'd try proposing it on this list.)

URL: http://savannah.gnu.org/patch/?7327

This patch adds the option -J / --auto-jobs, which uses the 
sysconf(_SC_NPROCESSORS_ONLN) function to decide the number of job slots to 
use. 

This is especially useful in distributed build farms, where you have a large 
set of different machines where you want to take advantage of all machines' 
multiprocessing cababilities without getting the memory penalty of unlimited 
-j. 

With -J we can set the flag in the Makefile and know each machine will do the 
best it can. Without -J we have to set a custom -j number in each and every box.

-- 
Björn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]