<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11188</bug_id>
          
          <creation_ts>2017-03-20 04:23:16 +0000</creation_ts>
          <short_desc>devtool: optimise task execution</short_desc>
          <delta_ts>2017-07-25 09:44:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>2.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71440</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-03-20 04:23:16 +0000</bug_when>
    <thetext>If you run devtool modify on the kernel (worst case example, but other recipes are affected) there are things being done that shouldn&apos;t be done - e.g. multiple parses of the configuration, summary messages, events etc. Here&apos;s the output where you can see some of it:

------------ snip ------------
$ devtool modify virtual/kernel
Loading cache: 100% |########################################| Time: 0:00:00
Loaded 2181 entries from dependency cache.
NOTE: Mapping virtual/kernel to linux-intel
Loading cache: 100% |########################################| Time: 0:00:00
Loaded 2181 entries from dependency cache.
NOTE: Executing RunQueue Tasks
NOTE: Executing do_fetch...
NOTE: Executing do_unpack...
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn&apos;t need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Executing RunQueue Tasks
NOTE: Executing do_kernel_checkout...
NOTE: Tasks Summary: Attempted 3 tasks of which 2 didn&apos;t need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Patching...
NOTE: Executing RunQueue Tasks
NOTE: Executing do_validate_branches...
NOTE: Executing do_kernel_metadata...
NOTE: Executing do_patch...
NOTE: Tasks Summary: Attempted 6 tasks of which 3 didn&apos;t need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Generating kernel config
NOTE: Executing RunQueue Tasks
NOTE: Executing do_prepare_recipe_sysroot...
NOTE: Executing do_kernel_configme...
NOTE: Executing do_configure...
NOTE: Tasks Summary: Attempted 9 tasks of which 6 didn&apos;t need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Adding local source files to srctree...
NOTE: Copying kernel config to srctree
NOTE: Source tree extracted to /home/paul/poky/poky/build/workspace/sources/linux-intel
NOTE: Recipe linux-intel now set up to build from /home/paul/poky/poky/build/workspace/sources/linux-intel
------------ snip ------------

We should try to tidy up the output and optimise the performance from the tinfoil side of things as much as possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75272</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-07-25 09:44:18 +0000</bug_when>
    <thetext>So this is now fixed with the following changes (and probably some others):

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a9848fdd46f4f567444e00892a0f5868deea1643
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7eb654cb4d82b54e3e4df0a57face61063b72c45
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=192b2e15369fd052e5e4d5f70c5f5d83d50c2b5b

Running devtool modify on the kernel still takes quite a long time but it&apos;s now mostly about the kernel tasks themselves rather than how they are being run.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>