Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2011 22:32:49 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        John <lists@reiteration.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: can make -j be used for ports?
Message-ID:  <58D25C7A-FFE5-4724-93D6-5DBFB7DDC8D4@mac.com>
In-Reply-To: <4D802299.1020303@reiteration.net>
References:  <4D7FBC0E.5020302@reiteration.net> <1468BFDD-5E3C-4756-830B-266D0942AED0@mac.com> <AANLkTi=xECg6s7HGeoJFQs96EGwS1tN0Ag6FgFO30QzM@mail.gmail.com> <4D802299.1020303@reiteration.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 15, 2011, at 7:38 PM, John wrote:
> 1. If I can speed things up, with *ports* as I have a dual cpu, I want
> to maybe run j2 or j3. I seek clarification which is logically best,
> because some literature says jn, others jn+1 where n is number of cores.
> 
> kern.smp.cpus: 2 on my machine. Is there benefit setting this to 3,4,5?

If you have plenty of RAM, then setting it somewhat higher than #CPUs
is likely to improve performance.  Frankly, it's best if you measure
things on your own machine against the software you care about building,
and decide for yourself whether the difference matters.  :-)

> I want to know if there is perhaps a conf file or sysctl where I can
> specify this *for ports only.* - if not I'm happy to specify on the
> command line. It's just that the manual is a tad unclear about this.

Setting MAKE_JOBS_NUMBER in /etc/make.conf will only apply to things
using the bsd.ports.mk Makefile, unless they've chosen to honor the
same variable independently.

In other words, you're unlikely to hurt things much by setting it to
some reasonable value.  Obtain some data and let us know if you run
into surprises...

Regards,
-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58D25C7A-FFE5-4724-93D6-5DBFB7DDC8D4>