<?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>11581</bug_id>
          
          <creation_ts>2017-05-25 08:12:49 +0000</creation_ts>
          <short_desc>Performance enhancement for kernel recipe kernel_configcheck</short_desc>
          <delta_ts>2017-09-08 14:33:40 +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>kernel</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jonathan.yong</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>sjolley.yp.pm</cc>
    
    <cc>tom.zanussi</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>73499</commentid>
    <comment_count>0</comment_count>
    <who name="">jonathan.yong</who>
    <bug_when>2017-05-25 08:12:49 +0000</bug_when>
    <thetext>Right now, kernel config check is taking in excess of 4000 seconds before spending merely 200s to compile.

The kernel config is as such:

SRC_URI += &quot;file://defconfig \
file://bsp/${BSP_SUBTYPE}/intel-dev.scc \
&quot;
SRC_URI += &quot;${@bb.utils.contains(&apos;DISTRO_FEATURES&apos;, &apos;hardened&apos;, &apos;file://bsp/${BSP_SUBTYPE}/security.scc&apos;, &apos;&apos;, d)}&quot;


defconfig is a basic kernel config file with defaults
intel-dev contains intel specific hardware, which includes about 8 cfg files.
security.scc pulls in a single cfg file for kernel security features.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73503</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-05-25 12:39:29 +0000</bug_when>
    <thetext>defconfgs are a pathological case, since they contain thousands of options which all need to be checked.

That being said, there are improvements that can be done here, and I&apos;ve identified a way to shortcut the process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75877</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-08-16 01:18:22 +0000</bug_when>
    <thetext>While working on another bug in master, I was retrying the optimizations that have already been done and I&apos;m seeing about 14seconds to process a defconfig:

---------------
yow-bashfiel-d4 [/home/bruc...trib/build]&gt; time MACHINE=qemunios2 bitbake -f -c kernel_configcheck virtual/kernel

NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 296 tasks of which 295 didn&apos;t need to be rerun and all succeeded.

Summary: There were 2 WARNING messages shown.

real    0m14.499s
user    0m6.080s
sys     0m1.828s
-------------

The size of the defconfig is this:

cat defconfig  | wc -l
1575

And the config.queue looks like this:

yow-bashfiel-d4 [/home/bruc...ernel-meta]&gt; pwd
/home/bruce/poky-contrib/build/tmp/work-shared/qemunios2/kernel-source/.kernel-meta
yow-bashfiel-d4 [/home/bruc...ernel-meta]&gt; cat config.queue 
configs//./defconfig # non-hardware
configs//features/nfsd/nfsd.cfg # non-hardware
configs//features/debug/printk.cfg # non-hardware
configs//features/netfilter/netfilter.cfg # non-hardware
configs//cfg/virtio.cfg # non-hardware

------------------------

So the optimizations/streamlining do seem to be holding.

Can you see if this is still happening and send a layer / machine configuration for me to use ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75878</commentid>
    <comment_count>3</comment_count>
    <who name="">jonathan.yong</who>
    <bug_when>2017-08-16 01:28:19 +0000</bug_when>
    <thetext>Hi Bruce,

How/where do I get the new code to test out the changes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75879</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-08-16 01:33:32 +0000</bug_when>
    <thetext>I just pushed all of my staged commits to poky-config zedd/wip

It is poky master + a few of my changes.

I didn&apos;t do much in particular to fix this specific issue, which is why I&apos;m interested to see if you are still seeing the slow processing, and getting that config. 

With defconfigs the processing is supposed to short-circuit and save a lot of time, so it shouldn&apos;t be hard to fix if it is still happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75880</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-08-16 01:33:52 +0000</bug_when>
    <thetext>urk. that last comment should be &quot;poky-contrib&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75997</commentid>
    <comment_count>6</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2017-08-18 16:39:54 +0000</bug_when>
    <thetext>It appears this is no longer a NEEDINFO bug.  If it is, please restate the question.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75999</commentid>
    <comment_count>7</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-08-18 16:43:14 +0000</bug_when>
    <thetext>Nope. Definitely still a needinfo. I asked a question if the performance issue was still present.

Until I see a yes/no, answer, and steps to reproduce it is needsinfo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76667</commentid>
    <comment_count>8</comment_count>
    <who name="">jonathan.yong</who>
    <bug_when>2017-09-07 23:09:30 +0000</bug_when>
    <thetext>I don&apos;t see the problem happening anymore, so you can go ahead and close this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76685</commentid>
    <comment_count>9</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2017-09-08 14:22:36 +0000</bug_when>
    <thetext>It appears this is no longer a NEEDINFO bug.  If it is, please restate the question.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76686</commentid>
    <comment_count>10</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-09-08 14:26:51 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; It appears this is no longer a NEEDINFO bug.  If it is, please restate the
&gt; question.

Again. 

This is a yes/no answer required to &quot;does this still happen&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76687</commentid>
    <comment_count>11</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2017-09-08 14:28:59 +0000</bug_when>
    <thetext>Bruce, he answered no, he is no longer seeing it.  I would close the bug works for me unless you have something else you want from him than that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76689</commentid>
    <comment_count>12</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-09-08 14:33:40 +0000</bug_when>
    <thetext>ok. I can do that.

We can re-open this if it happens again.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>