Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2012 10:39:34 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Andre Oppermann <andre@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>, Ryan Stone <rysto32@gmail.com>
Subject:   Re: kernel module parallel build?
Message-ID:  <0EC857C9-4C1B-467D-8499-B493401B64BC@bsdimp.com>
In-Reply-To: <201212051142.18361.jhb@freebsd.org>
References:  <5083D84E.50903@freebsd.org> <201212041052.51476.jhb@freebsd.org> <CAFMmRNzmfHcC3S%2BFfh2YjWDdzr=ddHEggrg%2Biyjjfc6COKdKSw@mail.gmail.com> <201212051142.18361.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <jhb@freebsd.org> =
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0EC857C9-4C1B-467D-8499-B493401B64BC>