From owner-freebsd-current@FreeBSD.ORG Fri Nov 12 09:28:22 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 2440116A5C3 for ; Fri, 12 Nov 2004 09:28:22 +0000 (GMT) Received: from n33.kp.t-systems-sfr.com (n33.kp.t-systems-sfr.com [129.247.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31F8243D2F for ; Fri, 12 Nov 2004 09:28:21 +0000 (GMT) (envelope-from harti@freebsd.org) Received: from n81.sp.op.dlr.de (n81g.sp.op.dlr.de [129.247.163.1]) iAC9RvU203470; Fri, 12 Nov 2004 10:27:57 +0100 Received: from zeus.nt.op.dlr.de (zeus.nt.op.dlr.de [129.247.173.3]) iAC9RuI143606; Fri, 12 Nov 2004 10:27:56 +0100 Received: from beagle.kn.op.dlr.de (opkndnwsbsd178 [129.247.173.178]) by zeus.nt.op.dlr.de (8.11.7+Sun/8.9.1) with ESMTP id iAC9SSu24345; Fri, 12 Nov 2004 10:28:29 +0100 (MET) Date: Fri, 12 Nov 2004 10:30:55 +0100 (CET) From: Harti Brandt X-X-Sender: brandt@beagle.kn.op.dlr.de To: Poul-Henning Kamp In-Reply-To: <85042.1100216213@critter.freebsd.dk> Message-ID: <20041112102647.C42945@beagle.kn.op.dlr.de> References: <85042.1100216213@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: [TEST] make -j patch [take 2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 09:28:22 -0000 On Fri, 12 Nov 2004, Poul-Henning Kamp wrote: PK>In message <80546.1100202141@critter.freebsd.dk>, Poul-Henning Kamp writes: PK> PK>Here is take two of my "make -j" patch. Further testing found PK>a couple of buglets. If this survices further testing, it will PK>be committed in a couple of days. PK> PK>With this patch "make -j N" will put the load average as close PK>to N as the makefiles will allow. It would be nice to have a way to reset this in a sub-make (i.e. to make it start its own group of makes). PK>Included is also a patch I've been using to make the SUBDIR targets PK>go parallel. Ruslan will have to fix all the mistakes I've made PK>in that one before it gets committed. I have some reservations about this. I have makefiles that have carefull crafted orders of the SUBDIR variable in order to have dependencies right like: SUBDIR= lib1 lib2 prog1 prog2 man That will break by automatically making all subdir targets parallel. Even if we can fix this in our tree, we should not assume that nobody else is using our make. Otherwise your patch is very nice. I was just talking with the smake author about this three days ago. harti