From owner-freebsd-current@FreeBSD.ORG Wed Nov 17 08:39:12 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AB1816A4CE for ; Wed, 17 Nov 2004 08:39:12 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19E3643D5A for ; Wed, 17 Nov 2004 08:39:10 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAH8d7Px076650; Wed, 17 Nov 2004 10:39:07 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 02596-20; Wed, 17 Nov 2004 10:39:06 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAH8d657076647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Nov 2004 10:39:06 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id iAH8d8fi024166; Wed, 17 Nov 2004 10:39:08 +0200 (EET) (envelope-from ru) Date: Wed, 17 Nov 2004 10:39:07 +0200 From: Ruslan Ermilov To: Poul-Henning Kamp Message-ID: <20041117083907.GA24067@ip.net.ua> References: <20041116120515.J13866@carver.gumbysoft.com> <11777.1100641566@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <11777.1100641566@critter.freebsd.dk> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: current@FreeBSD.org Subject: Re: [TEST] make -j patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2004 08:39:12 -0000 --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--