make - Patches: patch #7327, Add the option -J / --auto-jobs to...
You are not allowed to post comments on this tracker with your current authentication level.
patch #7327: Add the option -J / --auto-jobs to auto-decide a sane number of job slots
Submitter: | Björn Stenberg <zagor> | ||
Submitted: | Mon 27 Sep 2010 01:01:28 PM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | None | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Fixed Release: | None |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2010-09-27 | zagor | Attached File | - | Added make-J-param.patch, #21552 |
Powered by Savane 3.13-758e.
Corresponding source code
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 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.