Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2004 10:39:07 +0200
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        current@FreeBSD.org
Subject:   Re: [TEST] make -j patch
Message-ID:  <20041117083907.GA24067@ip.net.ua>
In-Reply-To: <11777.1100641566@critter.freebsd.dk>
References:  <20041116120515.J13866@carver.gumbysoft.com> <11777.1100641566@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help

--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 16, 2004 at 10:46:06PM +0100, Poul-Henning Kamp wrote:
> In message <20041116120515.J13866@carver.gumbysoft.com>, Doug White write=
s:
> >On Thu, 11 Nov 2004, Poul-Henning Kamp wrote:
> >
> >>
> >> This patch makes the '-j' argument to make(1) become a global limit
> >> on number of jobs launched for all submakes in the build.
> >>
> >> Today a "make -j 12" may start many more than 12 jobs because each
> >> submake interprets the 12 without reference to other makes.
> >
> >Ah, this is the thing I've noticed with the rescue build where it create
> >-j^2 jobs. :)
>=20
> -j^(depth of directories) actually, but that is even worse.
>=20
In the "make buildworld" case only.  Like I told you, bsd.subdir.mk
is constructed so that subdirs are NOT built in parallel, and there
is a reason for this.  Makefile.inc1 creates special par-* targets
to build things in subdirs in parallel.  There are a lot of places
that depend on a particular order of directories listed in SUBDIR.
Hopefully, after we created libs and headers, we can build top-level
directories in parallel.

Anyway, thanks for looking into it and finally fixing this!


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--EVF5PPMfhYS0aIcm
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBmw4rqRfpzJluFF4RAslWAJ94J+GThTTGOgPPKPLLDFu5t1HoAgCeJ66c
umDljGK1jgLbaFTWG2TiJR0=
=bY5h
-----END PGP SIGNATURE-----

--EVF5PPMfhYS0aIcm--



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