From owner-freebsd-current@FreeBSD.ORG Fri Nov 12 08:09:15 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 2773816A4CE; Fri, 12 Nov 2004 08:09:15 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 811F643D2D; Fri, 12 Nov 2004 08:09:14 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id iAC89DUB093223; Fri, 12 Nov 2004 09:09:13 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Ruslan Ermilov From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 12 Nov 2004 10:04:16 +0200." <20041112080416.GA41844@ip.net.ua> Date: Fri, 12 Nov 2004 09:09:13 +0100 Message-ID: <93222.1100246953@critter.freebsd.dk> Sender: phk@critter.freebsd.dk 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 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 08:09:15 -0000 In message <20041112080416.GA41844@ip.net.ua>, Ruslan Ermilov writes: >> Here is take two of my "make -j" patch. Further testing found >> a couple of buglets. If this survices further testing, it will >> be committed in a couple of days. >> >> With this patch "make -j N" will put the load average as close >> to N as the makefiles will allow. >> >This will make it impossible for "make universe" to build four >worlds in parallel, each world with 8 jobs. It's possible now, >please see the commit log for src/Makefile,v 1.308 for details. Yes, isn't it wonderful ? We can get a way from that hack and have make actually do global resource management: I ran "make -j 12 universe" overnight and the loadaverage danced between 10 and 13 most of the time, with a spike at 14 while cron did its late-night raid-the-fridge thing. Last I tried this without my patch, the loadaverage spiked at 65. >Please abandon your bsd.subdir.mk patch completely. ;) There is something one of us do not understand because that patch gives me measurably more parallelism. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.