dim b4a5074609 MFC r263778:
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 r263833:

Enable parallel building for gnu/usr.bin and usr.bin/clang too.
2014-04-09 18:16:58 +00:00
..
2014-03-06 14:11:44 +00:00
2014-04-09 18:16:58 +00:00
2013-01-01 18:29:25 +00:00
2013-11-29 19:44:30 +00:00
2014-03-05 19:30:36 +00:00
2013-12-10 22:55:22 +00:00
2013-12-28 20:05:31 +00:00
2014-02-09 00:34:21 +00:00
2014-03-19 00:53:24 +00:00
2012-06-02 08:47:26 +00:00
2014-01-09 23:08:56 +00:00
2014-03-04 14:49:05 +00:00
2014-03-31 00:28:54 +00:00
2013-09-08 10:04:26 +00:00
2013-05-30 08:02:00 +00:00
2014-03-14 00:12:53 +00:00
2013-12-27 23:00:56 +00:00
2014-03-19 23:55:03 +00:00
2013-05-12 22:22:12 +00:00
2014-02-01 22:29:04 +00:00
2013-11-14 09:25:29 +00:00
2013-12-30 20:15:46 +00:00
2012-10-18 15:39:29 +00:00
2013-05-12 22:22:12 +00:00
2014-02-08 15:51:24 +00:00
2014-02-04 10:18:29 +00:00
2014-02-16 02:33:59 +00:00
2013-10-23 18:07:07 +00:00
2013-05-05 06:20:49 +00:00
2014-03-26 07:31:57 +00:00
2014-03-01 03:09:16 +00:00
2013-12-28 20:05:31 +00:00
2014-04-09 18:16:58 +00:00