Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#12280 closed enhancement (fixed)

RFE: buildmakejobs setting (simultaneous make)

Reported by: afb@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.6
Component: base Version: 1.6.0
Keywords: Cc:
Port:

Description

When building with Make and multiple CPUs (or slow Makefile targets), sometimes things go a lot faster when using multiple commands at once with "make -j2". Support for that MacPorts is good.

Note that setting the number of jobs higher than e.g. "# CPU + 1" is a good way of using too much memory and making the build slow to a crawl due to lack of available memory and swapping instead.

Attachments (1)

macports-makejobs.patch (2.9 KB) - added by afb@… 17 years ago.
macports-makejobs.patch

Download all attachments as: .zip

Change History (8)

Changed 17 years ago by afb@…

Attachment: macports-makejobs.patch added

macports-makejobs.patch

comment:1 Changed 17 years ago by afb@…

patch adds the "buildmakejobs" setting, and the port variables "build.jobs" and "build.max_jobs".

Where build.jobs would override the users preferences (probably not recommended practice), and build.max_jobs can be used if the Port has a flawed Makefile that chokes on high -j...

comment:2 Changed 17 years ago by afb@…

Maybe toast the "build.max_jobs" altogether, and only use a portlocal "build.jobs 1" to override ?

comment:3 Changed 17 years ago by afb@…

Milestone: Needs developer review

comment:4 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: Needs developer reviewMacPorts base bugs

Milestone Needs developer review deleted

comment:5 Changed 17 years ago by nox@…

Milestone: MacPorts base bugsMacPorts base enhancements
Priority: ExpectedNormal
Summary: buildmakejobs setting (simultaneous make)RFE: buildmakejobs setting (simultaneous make)

comment:6 Changed 17 years ago by afb@…

Resolution: fixed
Status: newclosed
Version: 1.51.6.0

Applied in r28634, with "max_jobs" toasted and "nice" added.

comment:7 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.6
Note: See TracTickets for help on using tickets.