Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2009 11:56:50 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Steven Hartland <killing@multiplay.co.uk>
Cc:        amd64@freebsd.org
Subject:   Re: Taking full advantage of Intel Quad Core with Freebsd 7.2p2
Message-ID:  <4A733E72.5040607@FreeBSD.org>
In-Reply-To: <1518B86CFB8242F8B605034460287EB1@multiplay.co.uk>
References:  <200907310919.57775.david@vizion2000.net>	<0C3FFA484EC8423AB26C13C6737C8533@multiplay.co.uk>	<200907311333.53815.david@vizion2000.net> <1518B86CFB8242F8B605034460287EB1@multiplay.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Steven Hartland wrote:

> #2 Not sure portupgrade in 7.2 supports -j properly yet, I know there's
> been some recent work in that area not sure who far its got.

The ports infrastructure already supports this, but you have to add
the following option to your /etc/make.conf file:

FORCE_MAKE_JOBS=	true

You will occasionally run into ports that don't build successfully
with this option, so you can overcome that per port by doing 'make
-DMAKE_JOBS_UNSAFE' for that port. It would be a big help to the
community if you could report any ports you run into that problem with
so that they can be marked in the Makefile.

For building the world if you want the system to be responsive while
you're building a good rule of thumb for -j is "<Number of cores> -1".
If you want maximum speed and don't care about using the system while
it builds then "<Number of cores> +1" will get it done a little
faster. Values much higher than that are not likely to increase speed
much, mostly due to the fact that you'll get IO-bound sooner than later.


hth,

Doug

-- 

    This .signature sanitized for your protection




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A733E72.5040607>