Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2009 18:09:19 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-ports@freebsd.org
Subject:   Re: HEADS UP multi processor compilations for everyone
Message-ID:  <gqb7kf$2mon$1@lorvorc.mips.inka.de>
References:  <1237901632.1849.19.camel@pav.hide.vol.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Pav Lucistnik <pav@freebsd.org> wrote:

> Ports framework now systematically supports building ports on
> multiple processing cores. It is achieved by passing -jX flag to make(1)
> running on vendor code. Of course not all ports handle this well,

A word of caution:  It is quite possible for a port to build fine
with -jN and still fail with -jM, where N < M.  If it builds fine
on a 64-core sparc64, it will build anywhere, but I expect some
ports will work fine for, say, -j2 and fail for -j4.  Or only fail
*sometimes* due to a race.

> If you are FreeBSD port maintainer:
> 
> Nothing changes for you, if you don't want. If you want to enable the
> use of multiple cores in your port, add MAKE_JOBS_SAFE=yes to a block
> somewhere below dependency declarations.

What is the goal here?  Should all ports that can be safely built
in parallel eventually have MAKE_JOBS_SAFE=yes?  Or should we not
bother with ports where the gain is likely to be minimal?

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gqb7kf$2mon$1>