Date: Sun, 07 Jul 2013 14:50:56 -0700 From: Alfred Perlstein <alfred@freebsd.org> To: Andriy Gapon <avg@FreeBSD.org> Cc: "svn-src-head@freebsd.org" <svn-src-head@FreeBSD.org>, "svn-src-all@freebsd.org" <svn-src-all@FreeBSD.org>, "src-committers@freebsd.org" <src-committers@FreeBSD.org>, Garrett Cooper <yaneurabeya@gmail.com> Subject: Re: svn commit: r253002 - head Message-ID: <51D9E2C0.6060603@freebsd.org> In-Reply-To: <51D9E069.5060300@FreeBSD.org> References: <201307072039.r67KdCdR028908@svn.freebsd.org> <9D4C7540-A3B0-45E5-8219-6A455D41DF70@gmail.com> <51D9DA55.2090808@freebsd.org> <51D9E069.5060300@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/7/13 2:40 PM, Andriy Gapon wrote: > on 08/07/2013 00:15 Alfred Perlstein said the following: >> On 7/7/13 2:01 PM, Garrett Cooper wrote: >>> Why the magic number 12? >> Numbers higher seem to result in worse performance as reported by some members >> of my team. > Should we really commit all "notes to self" or "my team's knowledge base" to > FreeBSD source code like this? I would hope so! At least in comments, that way we can all help each other. Otherwise each time another person comes along they are subject to having to discover the same things that I did. What is the point of listing 10+ make targets if someone coming in doesn't know which ones to run and how to run them optimally in order to ensure a safe build? Do you not agree that more of this sort of documentation should be in the code instead of having to ask on IRC? For the record I checked multiple pages in developer primer and scoured makefiles for a while before giving up and asking on IRC. I figured it would be helpful for the next clueless goon that came in and tried to make things better if I recorded my experience to guide them. I hold no strong feelings towards the comments, other than they should be preserved in some form, or maybe even turned into a workable target for people that don't want or can not hold all that context in their brains. -Alfred > >>> On Jul 7, 2013, at 1:39 PM, Alfred Perlstein <alfred@FreeBSD.org> wrote: >>> >>>> Author: alfred >>>> Date: Sun Jul 7 20:39:11 2013 >>>> New Revision: 253002 >>>> URL: http://svnweb.freebsd.org/changeset/base/253002 >>>> >>>> Log: >>>> Document tip on how to build all kernels quickly. >>>> >>>> Modified: >>>> head/Makefile >>>> >>>> Modified: head/Makefile >>>> ============================================================================== >>>> --- head/Makefile Sun Jul 7 19:58:14 2013 (r253001) >>>> +++ head/Makefile Sun Jul 7 20:39:11 2013 (r253002) >>>> @@ -32,6 +32,12 @@ >>>> # targets - Print a list of supported TARGET/TARGET_ARCH pairs >>>> # for world and kernel targets. >>>> # toolchains - Build a toolchain for all world and kernel targets. >>>> +# >>>> +# "quick" way to test all kernel builds: >>>> +# _jflag=`sysctl -n hw.ncpu` >>>> +# _jflag=$(($_jflag * 2)) >>>> +# [ $_jflag -gt 12 ] && _jflag=12 >>>> +# make universe -DMAKE_JUST_KERNELS JFLAG=${jflag} >>>> # >>>> # This makefile is simple by design. The FreeBSD make automatically reads >>>> # the /usr/share/mk/sys.mk unless the -m argument is specified on the >>>> _______________________________________________ >>>> svn-src-head@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/svn-src-head >>>> To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51D9E2C0.6060603>