From owner-svn-src-all@FreeBSD.ORG Thu Mar 27 15:28:05 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 922FCCFF; Thu, 27 Mar 2014 15:28:05 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 68966DD1; Thu, 27 Mar 2014 15:28:05 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 60AA5B93B; Thu, 27 Mar 2014 11:28:04 -0400 (EDT) From: John Baldwin To: Dimitry Andric Subject: Re: svn commit: r263778 - in head: bin lib lib/clang sbin share/mk usr.bin usr.sbin Date: Thu, 27 Mar 2014 10:41:01 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201403262230.s2QMUdH6021943@svn.freebsd.org> In-Reply-To: <201403262230.s2QMUdH6021943@svn.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201403271041.01760.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 27 Mar 2014 11:28:04 -0400 (EDT) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2014 15:28:05 -0000 On Wednesday, March 26, 2014 6:30:39 pm Dimitry Andric wrote: > Author: dim > Date: Wed Mar 26 22:30:38 2014 > New Revision: 263778 > URL: http://svnweb.freebsd.org/changeset/base/263778 > > Log: > Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to process > all the SUBDIR entries in parallel, instead of serially. Apply this > option to a selected number of Makefiles, which can greatly speed up the > build on multi-core machines, when using make -j. > > This can be extended to more Makefiles later on, whenever they are > verified to work correctly with parallel building. > > I tested this on a 24-core machine, with make -j48 buildworld (N = 6): > > before stddev after stddev > ======= ====== ======= ====== > real time 1741.1 16.5 959.8 2.7 > user time 12468.7 16.4 14393.0 16.8 > sys time 1825.0 54.8 2110.6 22.8 > > (user+sys)/real 8.2 17.1 > > E.g. the build was approximately 45% faster in real time. On machines > with less cores, or with lower -j settings, the speedup will not be as > impressive. But at least you can now almost max out a machine with > buildworld! > > Submitted by: jilles > MFC after: 2 weeks Nice! -- John Baldwin