<?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>10615</bug_id>
          
          <creation_ts>2016-11-07 23:34:49 +0000</creation_ts>
          <short_desc>[Build-Perf] Perl 5 seems blocking build more than 2 min</short_desc>
          <delta_ts>2017-02-06 23:39:38 +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>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jianxun Zhang">jianxun.zhang</reporter>
          <assigned_to name="Jianxun Zhang">jianxun.zhang</assigned_to>
          <cc>richard.purdie</cc>
    
    <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>68057</commentid>
    <comment_count>0</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-11-07 23:34:49 +0000</bug_when>
    <thetext>NOTE: This bug shall go to bld-perf component once we have it. But now I submitted to this component as a temporary solution.

Poky: edb5b524b3ee807d55a437cbab3d768c5f6f2283
Machine: qemux86
Image: core-image-minimal
Test: Download all source code, then measure time of a clean build

On my build host, tasks in a single package perl-5.52 block whole build progress for about 2 min before any other tasks started.

perl5: do_compile, neat overhead: at least 110 sec
perl5: do_package, neat overhead: at least 40 sec

I lost raw buildstat data, so from another build:
perl-5.22.1-r0	do_compile:	294.36 sec (total, not neat)
perl-native-5.22.1-r0	do_compile:	35.95 sec (total, not neat)

You can see native build consumes much less total time of compile task. But it doesn&apos;t have do_package task for another comparison.

This makes me feel we could start some investigation on compile task of perl5 to optimize core-image-minimal build. But if people concludes minimal build is not in goals of perf tuning, we could drop this case since it may be a different story for sato and other images.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68198</commentid>
    <comment_count>1</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-11-09 17:47:03 +0000</bug_when>
    <thetext>Ed,
I assume you are not working on build performance issues. I didn&apos;t have a closer call for project when filing this ticket. I take it with such assumption.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68403</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-11-17 15:40:41 +0000</bug_when>
    <thetext>I think perl-native is limited in scope (mini perl only?) hence it build faster but isn&apos;t as complete. I&apos;m open to exploring this area further but without more detailed investigation and proposal with an idea of where we&apos;d get potential gains, I&apos;m reluctant to spend a lot of time on this area. The perl recipe isn&apos;t very nice and I&apos;m worried that trying to modify it would also result in problems, there are probably big cleanups needed to sort out the perl build process first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70461</commentid>
    <comment_count>3</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2017-02-06 23:39:38 +0000</bug_when>
    <thetext>This issue is not addressed properly or precisely once I did some research in build perf area.

Perl 5 may still be a hot spot but we need to investigate other aspects before draw the conclusion.

I close this bug at this stage.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>