<?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>3328</bug_id>
          
          <creation_ts>2012-10-23 17:43:14 +0000</creation_ts>
          <short_desc>sstate: show some progress when downloading lots of packages from SSTATE_MIRROR</short_desc>
          <delta_ts>2013-03-26 09:02:03 +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>core</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <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>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26847</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-10-23 17:43:14 +0000</bug_when>
    <thetext>19:31:34 &lt; JaMa&gt; bluelightning: is this worth enhancement bug report: with SSTATE_MIRROR fully populated, bitbake hangs on &quot;NOTE: Preparing runqueue&quot; for 
                 really long time without showing any output - downloading lots of sstate packages on background
19:32:18 &lt; kergoth&gt; interesting. ideally we&apos;d have some sort of progress indicator like the parsing, probably..
19:33:04 &lt; bluelightning&gt; JaMa: yes, I think it should show something to let you know what&apos;s happening in that case
19:38:33 &lt; JaMa&gt; kergoth: maybe progress bar is not enough, as some packages are very quick, but e.g. 2GB webkit should be probably shown alone
19:38:49 &lt; JaMa&gt; kergoth: but on otherside another Download queue is probably too much
19:39:15 &lt; JaMa&gt; maybe something like knotty2 does with showing current task to show current package being downloaded

In my case (slower network, big sstate-cache - 25GB) it will show &quot;NOTE: Preparing runqueue&quot; for few hours and only indicator that it&apos;s still working is wget showing up in top.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26854</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-10-24 08:17:55 +0000</bug_when>
    <thetext>It is still running (showing &quot;NOTE: Preparing runqueue&quot;) now :). So I&apos;ve noticed that you cannot even stop it with Ctrl+C (tried 5 times).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27360</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-11-12 15:56:45 +0000</bug_when>
    <thetext>Did http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=44c5d3dc845988be9a11df6e0c8aef51377aef49 mean this at least shows there is a task running now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27458</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-11-15 00:12:53 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Did
&gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/
&gt; ?id=44c5d3dc845988be9a11df6e0c8aef51377aef49 mean this at least shows there
&gt; is a task running now?

No it hangs the same and still cannot be killed by Ctrl+C.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28296</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-12-14 14:40:00 +0000</bug_when>
    <thetext>I&apos;m pretty sure this was actually caused by http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a0cf759537260f00311450e0dac41bf45b474454 and this issue should be resolved now. The download will happen in the actually running task, not during the runqueue initilisation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28316</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-12-16 21:19:20 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I&apos;m pretty sure this was actually caused by
&gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/
&gt; ?id=a0cf759537260f00311450e0dac41bf45b474454 and this issue should be
&gt; resolved now. The download will happen in the actually running task, not
&gt; during the runqueue initilisation.

Yes it is much better now, but still hangs on ~ 10 mins without any output according to strace doing mostly &quot;stat sstate-cache/foo&quot; and also in only one thread. I&apos;ve tried it on big build (world with many layers, cca 6500 setscene tasks, 23000 normal tasks) but also SSTATE_MIRRORS points to the same machine (over http:// for test).

I don&apos;t think that every &quot;stat&quot; should be shown on screen, but is there way to see what&apos;s going on at least with -D or -v?

Maybe something like:
Looking for sstate-cache files: .... and add dot for every archive tried (or every 10th, 100th)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30897</commentid>
    <comment_count>6</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-20 15:07:19 +0000</bug_when>
    <thetext>The download is no longer done during &quot;NOTE: Preparing runqueue&quot; phase. The apparent &quot;hang&quot; is gone.

Verified in master:e89f812a0af56beda951c1dce6113a61d6db8cda</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31164</commentid>
    <comment_count>7</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-26 09:02:03 +0000</bug_when>
    <thetext>Because of the way this was implemented, we will not be making a test case to test this enhancement at this time.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>