<?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>12907</bug_id>
          
          <creation_ts>2018-08-30 18:14:22 +0000</creation_ts>
          <short_desc>Python3 builds have slowed down significantly for non-x86 targets</short_desc>
          <delta_ts>2018-09-13 14:48: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>devtools / tool chain</component>
          <version>2.6</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</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>81463</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2018-08-30 18:14:22 +0000</bug_when>
    <thetext>Since commit

http://git.openembedded.org/openembedded-core/commit/?id=05a2a53f9cc7e75b4a3838ab9368cadf0f15ba1b

We are enabling PGO for generating optimized python3 in a cross build environment. This is running a command under qemu usermode

pybench.py -n 10

which will execute 10 iterations of benchmarks to generate profile instrumentation data

For raspberrypi3 builds on a Xeon E5 it now takes 1503 seconds (approx 25 minutes) in do_compile, its clearly not coming without a huge build time penalty

when running a raspberrypi3 build its running the test with qemuarm usermode
rpi3 being (armv7) and qemuarm being (armv5) I wonder how accurate the information is going to be.

This works much faster for x86 targets but thats probably due to host and target arches being same.

At the least this should be turned into a PACKAGECONFIG so users can disable it

I would also like to propose to disable it for non-x86 architectures by default or more appropriately for cases when buildhost arch != targethost arch

What kind of performance tests can be done, to assess the benefit of this change</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81509</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-09-05 20:44:44 +0000</bug_when>
    <thetext>The time penalty is large even on x86 as far as I can tell. We have already dropped to -n 1 which is helping and I believe Ross has some other improvements which should help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81546</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-09-13 14:48:40 +0000</bug_when>
    <thetext>Fixed in oe-core 98b2b6c3eae15d9b84c97c6a1495040f6b7e389a.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>