freebsd-skq/share
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
..
colldef
dict Disconnect non-MPSAFE NTFS from the build in preparation for dropping 2012-10-17 11:30:00 +00:00
doc Set up the /usr/tests hierarchy. 2013-12-28 20:05:31 +00:00
dtrace Remove copy/pasteo in the copyright notice. 2012-07-21 07:14:52 +00:00
examples MFC: r263435 2014-03-28 20:12:30 +00:00
i18n Revert r258396 : teach iconv about a WCHAR_T pseudo-type 2014-01-03 23:36:03 +00:00
info Install the template info directory with mode 644 instead of 444 to 2013-01-21 22:54:43 +00:00
keys MFC r260605: 2014-01-13 22:07:36 +00:00
man Merge r263203: garbage collect long time obsoleted (or never used) stuff 2014-04-09 11:15:50 +00:00
me
misc MFC r257631: Add myself to the committers-src list and to the calendar. 2013-12-28 13:08:47 +00:00
mk MFC r263778: 2014-04-09 18:16:58 +00:00
mklocale
monetdef Do not overwrite the new UTF-8 files with the old ISO one 2013-07-17 14:00:51 +00:00
msgdef Don't link two different things to the same paths. As tiebreaker I've 2013-01-24 17:00:11 +00:00
numericdef Don't link two different things to the same paths. As tiebreaker I've 2013-01-24 17:00:11 +00:00
security
sendmail
skel Remove hack to emulate effective uid and just use the EUID's name in the 2012-12-05 13:56:39 +00:00
snmp
syscons MFC r256367: 2013-10-12 07:50:15 +00:00
tabset
termcap MFC r262220: 2014-03-13 01:12:27 +00:00
tests Add sample test programs. 2013-12-29 12:30:06 +00:00
timedef
zoneinfo Use find -exec to install zoneinfo instead of requiring xargs to be an 2013-01-11 18:37:51 +00:00
Makefile Add sample test programs. 2013-12-29 12:30:06 +00:00
Makefile.inc