<?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>7555</bug_id>
          
          <creation_ts>2015-04-01 05:02:13 +0000</creation_ts>
          <short_desc>make oe-init-build-env-memres default instead of oe-init-build-env</short_desc>
          <delta_ts>2017-12-06 16:48:34 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.9</version>
          <rep_platform>x86</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>enhancement</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          <dependson>5470</dependson>
    
    <dependson>10730</dependson>
    
    <dependson>10732</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Esquivel">benjamin.esquivel</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50012</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-04-01 05:02:13 +0000</bug_when>
    <thetext>This is a proposal to have oe-init-build-env-memres (and oe-init-build-env) to either:

A) use getopts
B) at the memres script have this argument order: &lt;builddir&gt; &lt;port&gt; (right now it is &lt;port&gt; &lt;builddir&gt;)

I consider A the standard for calling a script with arguments but it might present some portability issues and, I consider B would help positional argument coherency between the two oe-init-build-env* scripts. B would also allow you at the memres script to specify &lt;builddir&gt; and leave port to random.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50025</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-04-01 16:42:29 +0000</bug_when>
    <thetext>The proposal has turned to make the memres option default. This would mean to try to keep a single file for both memres and not and do memres always unless otherwise specified via command line.

There is also the proposal to use the port for memres from the environment or generate it randomly if not found. This means dropping the command line argument for the port as well.

Testing required for this type of change would be:

1. build machine core count variation (run bbperf on it). This would act as both, performance and functional testing.
2. build small and big (number of tasks) image targets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64159</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-07-19 14:57:10 +0000</bug_when>
    <thetext>changing title since it is no longer accurate</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75271</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-07-25 09:36:18 +0000</bug_when>
    <thetext>This has been resolved in a slightly different way than anticipated - Richard has reworked the server connection logic to remove the process/xmlrpc abstraction - there is now a hybrid server that can be persistent if a timeout is set via BB_SERVER_TIMEOUT (in seconds). There are still some bugs to be worked out, but we are now operating with memory resident mode effectively being the default. (oe-init-build-env-memres is now gone as well so there&apos;s no split from the user perspective.)

Here&apos;s Richard&apos;s commit that implemented it:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4602408c69132315c3784718fe4ce155b12464cf</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>