summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2011-11-16 09:42:53 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-25 15:24:19 +0000
commitaffc8b985a6b059424ae67e230cdc1f1215c9977 (patch)
treeb1166d0bc8f7f4416783251c9a55976af530e7f1 /documentation/dev-manual
parent4cb3862f6a1190ab3bf94bc827231e8ddabb8c62 (diff)
downloadpoky-affc8b985a6b059424ae67e230cdc1f1215c9977.tar.gz
documentation: BB_NUMBER_THREADS and PARALLEL_MAKE suggestions
Text that suggests setting the BB_NUMBER_THREADS and PARALLEL_MAKE variables to speed build time has been updated to suggest a setting of twice the number of host cores supported. The 2x number came to light through a discussion on the project mailing list initiated by Robert P. J. Day. Reported-by: Robert P. J. Day (From yocto-docs rev: 1846b41a595b7bd905ca828eaa04112d1533d7a1) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r--documentation/dev-manual/dev-manual-bsp-appendix.xml7
-rw-r--r--documentation/dev-manual/dev-manual-kernel-appendix.xml11
2 files changed, 9 insertions, 9 deletions
diff --git a/documentation/dev-manual/dev-manual-bsp-appendix.xml b/documentation/dev-manual/dev-manual-bsp-appendix.xml
index 7b8dc6ead5..aecb24f725 100644
--- a/documentation/dev-manual/dev-manual-bsp-appendix.xml
+++ b/documentation/dev-manual/dev-manual-bsp-appendix.xml
@@ -562,9 +562,10 @@
562 You should also be sure any other variables in which you are interested are set. 562 You should also be sure any other variables in which you are interested are set.
563 Some variables to consider are <filename>BB_NUMBER_THREADS</filename> 563 Some variables to consider are <filename>BB_NUMBER_THREADS</filename>
564 and <filename>PARALLEL_MAKE</filename>, both of which can greatly reduce your build time 564 and <filename>PARALLEL_MAKE</filename>, both of which can greatly reduce your build time
565 if you are using a multi-threaded development system (e.g. values of 565 if your development system supports multiple cores.
566 <filename>8</filename> and <filename>j 6</filename>, respectively are optimal 566 For development systems that support multiple cores, a good rule of thumb is to set
567 for a development machine that has four available cores).</para></listitem> 567 both the <filename>BB_NUMBER_THREADS</filename> and <filename>PARALLEL_MAKE</filename>
568 variables to twice the number of cores your system supports.</para></listitem>
568 <listitem><para>Update the <filename>bblayers.conf</filename> file so that it includes 569 <listitem><para>Update the <filename>bblayers.conf</filename> file so that it includes
569 the path to your new BSP layer. 570 the path to your new BSP layer.
570 In this example you need to include the pathname to <filename>meta-mymachine</filename>. 571 In this example you need to include the pathname to <filename>meta-mymachine</filename>.
diff --git a/documentation/dev-manual/dev-manual-kernel-appendix.xml b/documentation/dev-manual/dev-manual-kernel-appendix.xml
index 7ac349b6e3..0f13344800 100644
--- a/documentation/dev-manual/dev-manual-kernel-appendix.xml
+++ b/documentation/dev-manual/dev-manual-kernel-appendix.xml
@@ -221,9 +221,9 @@
221 If your host development system supports multi-core and multi-thread capabilities, 221 If your host development system supports multi-core and multi-thread capabilities,
222 you can uncomment these statements and set the variables to significantly shorten 222 you can uncomment these statements and set the variables to significantly shorten
223 the full build time. 223 the full build time.
224 As a guideline, set <filename>BB_NUMBER_THREADS</filename> to twice the number 224 As a guideline, set both <filename>BB_NUMBER_THREADS</filename> and
225 of cores your machine supports and set <filename>PARALLEL_MAKE</filename> to one and 225 <filename>PARALLEL_MAKE</filename> to twice the number
226 a half times the number of cores your machine supports. 226 of cores your machine supports.
227 </note> 227 </note>
228 </para> 228 </para>
229 <para> 229 <para>
@@ -390,9 +390,8 @@
390 build time if your host supports multi-core and multi-thread capabilities: 390 build time if your host supports multi-core and multi-thread capabilities:
391 <filename>BB_NUMBER_THREADS</filename> and <filename>PARALLEL_MAKE</filename>. 391 <filename>BB_NUMBER_THREADS</filename> and <filename>PARALLEL_MAKE</filename>.
392 If the host system has multiple cores then you can optimize build time 392 If the host system has multiple cores then you can optimize build time
393 by setting <filename>BB_NUMBER_THREADS</filename> to twice the number of 393 by setting both these variables to twice the number of
394 cores and setting <filename>PARALLEL_MAKE</filename> to one and a half times the 394 cores.</para></listitem>
395 number of cores.</para></listitem>
396 <listitem><para><emphasis>Identify Your <filename>meta-kernel-dev</filename> 395 <listitem><para><emphasis>Identify Your <filename>meta-kernel-dev</filename>
397 Layer:</emphasis> The <filename>BBLAYERS</filename> variable in the 396 Layer:</emphasis> The <filename>BBLAYERS</filename> variable in the
398 <filename>bblayers.conf</filename> file found in the 397 <filename>bblayers.conf</filename> file found in the