<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I reduce the number of parallel yocto builds? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068775#M157027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe your bottleneck is not RAM, 8GB seems to be ok for Yocto Build. Number of processor (real cores) and cache are the main offenders to Yocto performance as far as I know. Internet speed is also one good/bad factor at least in first build. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Renato Kiss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2020 15:39:43 GMT</pubDate>
    <dc:creator>renato_kiss</dc:creator>
    <dc:date>2020-04-07T15:39:43Z</dc:date>
    <item>
      <title>How can I reduce the number of parallel yocto builds?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068773#M157025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to build an image on a machine with only 8 GB of RAM. It seems setting PARALLEL_MAKE and BB_NUMBER_THREADS should allow reducing the concurrently run builds. Where do these settings fit in the NXP build process? I tried adding them to conf/local.conf and conf/bitbake.conf but got only a parse error in both cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 10:18:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068773#M157025</guid>
      <dc:creator>jonah_firchilt</dc:creator>
      <dc:date>2020-04-07T10:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the number of parallel yocto builds?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068774#M157026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jonah_firchilt"&gt;jonah_firchilt&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The right way is to set BB_NUMBER_THREADS&amp;nbsp; and PARALLEL_MAKE as you wrote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had just checked and it worked for me. Just add this lines to your file &lt;EM&gt;&lt;STRONG&gt;[your_yocto_build_dir]/conf/local.conf&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BB_NUMBER_THREADS = "2"&lt;BR /&gt;PARALLEL_MAKE = "-j 2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And change the number 2 for the number that fits to your system. Remember, lower number slow down the Yocto building. Higher number increase Yocto build but can starve all other process in your machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After change local.conf, move to Yocto base dir and run command &lt;EM&gt;&lt;STRONG&gt;source setup-environment ./your_build_folder&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renato Kiss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 15:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068774#M157026</guid>
      <dc:creator>renato_kiss</dc:creator>
      <dc:date>2020-04-07T15:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the number of parallel yocto builds?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068775#M157027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe your bottleneck is not RAM, 8GB seems to be ok for Yocto Build. Number of processor (real cores) and cache are the main offenders to Yocto performance as far as I know. Internet speed is also one good/bad factor at least in first build. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Renato Kiss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 15:39:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068775#M157027</guid>
      <dc:creator>renato_kiss</dc:creator>
      <dc:date>2020-04-07T15:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the number of parallel yocto builds?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068776#M157028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I had tried BB_NUMBER_THREADS = 1 but apparently it requires a string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 16:08:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068776#M157028</guid>
      <dc:creator>jonah_firchilt</dc:creator>
      <dc:date>2020-04-07T16:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the number of parallel yocto builds?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068777#M157029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonah Firchilt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That’s correct. You would need to use double quotes around the value in all variable assignments in Yocto’s configuration files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also change the PARALLEL_MAKE variable as Renato Kiss suggested, as it controls parallel compilation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 16:25:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068777#M157029</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2020-04-07T16:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the number of parallel yocto builds?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068778#M157030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jonah_firchilt"&gt;jonah_firchilt&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an added note to what &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RenatoKiss"&gt;RenatoKiss&lt;/A&gt; suggested.&lt;/P&gt;&lt;P&gt;I think, you are using a 64bit Host OS. If you are using 32bit OS, you are going to get a sharp degradation of Yocto build speed. Moreover, you will not get the benefit of 8GB RAM even.&lt;/P&gt;&lt;P&gt;For BB_NUMBER_THREADS, the thumb rule is the maximum safe value = (number of real cores - 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dibyajyoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 18:49:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068778#M157030</guid>
      <dc:creator>dibyajyoti</dc:creator>
      <dc:date>2020-04-07T18:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the number of parallel yocto builds?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068779#M157031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dibyajyoti@alumnux.com"&gt;dibyajyoti@alumnux.com&lt;/A&gt; Thanks for advise. I read about it but I'd never tested it. I have being using 64b OS for a while.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the process number, it is personal definition. Yocto by default (without any config settings) will use the nproc value. In case you want to work while build, as in the question, reduce the number. If you want to speed up, try to increase and see if works for you (depends on cache size and other factors too).&lt;/P&gt;&lt;P&gt;Another trick is to have a local repository definition or simply leave the machine building at non-working hours ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you comment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renato Kiss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 12:09:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-reduce-the-number-of-parallel-yocto-builds/m-p/1068779#M157031</guid>
      <dc:creator>renato_kiss</dc:creator>
      <dc:date>2020-04-08T12:09:32Z</dc:date>
    </item>
  </channel>
</rss>

