From owner-freebsd-current@FreeBSD.ORG Wed Dec 5 17:39:46 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 473BC7A4 for ; Wed, 5 Dec 2012 17:39:46 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ye0-f182.google.com (mail-ye0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id DA8448FC12 for ; Wed, 5 Dec 2012 17:39:45 +0000 (UTC) Received: by mail-ye0-f182.google.com with SMTP id q5so941136yen.13 for ; Wed, 05 Dec 2012 09:39:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=GoSbY9kltS9CJ5mQfqSwT59gwKFwCcTFcRdRvRq6xhc=; b=b5TbR9WXDwACco9HtC5JIgL684vOFrJV+g09UMLqQUgQei2WahFcXami0IVsvh+SKP dBcLXICUTtDm1VKgArgEKjOlrAuKqJSLZ76AhSmUQSTSbYVcOv2PYPU7aI/OaXtx2y0/ mukYayY9fbl7422nJOYaCE6999vfvb5GmMT+p1/MldyC3CtTuTk06o8RVJ0/bHxqW/3W 9ggxyMXSYEeYQqdPKjcchqrJ8P4wnoNShnO8eERIHKTCRvpnyhjh0DvKUiGXcemVc6Yu p9eAcrD53VgX/lG+O0aXGMImSrEHJKxjnp9QYcTHK2Ju2PsU63EhD/ZqCZa+w8LHW7OA HiCg== Received: by 10.236.138.10 with SMTP id z10mr21233511yhi.39.1354729179647; Wed, 05 Dec 2012 09:39:39 -0800 (PST) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPS id v4sm5258863ank.9.2012.12.05.09.39.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Dec 2012 09:39:38 -0800 (PST) Sender: Warner Losh Subject: Re: kernel module parallel build? Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <201212051142.18361.jhb@freebsd.org> Date: Wed, 5 Dec 2012 10:39:34 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <0EC857C9-4C1B-467D-8499-B493401B64BC@bsdimp.com> References: <5083D84E.50903@freebsd.org> <201212041052.51476.jhb@freebsd.org> <201212051142.18361.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQleZMjEV8KU8tXjh7DZeOKtkqt4oidG8n4s+3PCOjiVOnDyQnPZZliqM6Q/zYRVF1uA0Y1b Cc: "freebsd-hackers@freebsd.org" , Andre Oppermann , FreeBSD Current , Ryan Stone X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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, 05 Dec 2012 17:39:46 -0000 On Dec 5, 2012, at 9:42 AM, John Baldwin wrote: > On Tuesday, December 04, 2012 2:41:32 pm Ryan Stone wrote: >> On Tue, Dec 4, 2012 at 10:52 AM, John Baldwin = wrote: >>=20 >>> 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). >>>=20 >>>=20 >> 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. >=20 > Hmm, I think I was confused by seeing kernel builds intermingle with = the=20 > associated modules. sys/modules/Makefile uses bsd.subdir.mk. I think = I see=20 > similar things in world builds where I will see parallel builds of bin = vs sbin=20 > vs usr.bin vs usr.sbin, but within each of those directories the = builds go=20 > sequentially. I think you would need to change bsd.subdir.mk if you = want to=20 > fix this. The builds are in parallel, just that the parallelism is low because it = is only parallel within the module being built. Would love to see a fix. Warner