Tuesday, March 24, 2009

Tip: Build ports on multiple processing cores

Ports framework supports building ports on multiple processing cores as announced today in the project's mailing list. This is achieved by passing -jX flag to make(1) running on vendor code.

Do notice that not all ports support this feature so ports that support this feature have their Makefile updated with MAKE_JOBS_SAFE=yes.

This feature is now enabled by default with the level of parallelization being equal to a number of processing cores in your computer. This value can however be overridden, for example if you want 6 jobs:
  • % su
  • # echo "MAKE_JOBS_NUMBER=6" >> /etc/make.conf
However if you want to disable this feature:
  • % su
  • % echo "DISABLE_MAKE_JOBS=yes" >> /etc/make.conf
You can read the announcement at http://lists.freebsd.org/pipermail/freebsd-ports/2009-March/053736.html.

No comments: