From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 5 16:55:41 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8A324D2B; Wed, 5 Dec 2012 16:55:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 582828FC19; Wed, 5 Dec 2012 16:55:41 +0000 (UTC) Received: from pakbsde14.localnet (unknown [38.105.238.108]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 91F22B982; Wed, 5 Dec 2012 11:55:40 -0500 (EST) From: John Baldwin To: Ryan Stone Subject: Re: kernel module parallel build? Date: Wed, 5 Dec 2012 11:42:17 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p22; KDE/4.5.5; amd64; ; ) References: <5083D84E.50903@freebsd.org> <201212041052.51476.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201212051142.18361.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 05 Dec 2012 11:55:40 -0500 (EST) Cc: "freebsd-hackers@freebsd.org" , FreeBSD Current , Andre Oppermann X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2012 16:55:41 -0000 On Tuesday, December 04, 2012 2:41:32 pm Ryan Stone wrote: > On Tue, Dec 4, 2012 at 10:52 AM, John Baldwin wrote: > > > Hmm, I certainly see the module directories being built in parallel. Some > > of > > the make jobs may not be as obvious since links are silent (no output > > unless > > there is an error). > > > > > This is definitely not the behaviour that I see trying to build any version > of FreeBSD. I see the same behaviour as Andre: the depend and all targets > both iterate through the module directories sequentially. It never builds > two module subdirectories concurrently. Hmm, I think I was confused by seeing kernel builds intermingle with the associated modules. sys/modules/Makefile uses bsd.subdir.mk. I think I see similar things in world builds where I will see parallel builds of bin vs sbin vs usr.bin vs usr.sbin, but within each of those directories the builds go sequentially. I think you would need to change bsd.subdir.mk if you want to fix this. -- John Baldwin