<?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>4236</bug_id>
          
          <creation_ts>2013-04-10 06:30:11 +0000</creation_ts>
          <short_desc>smart command run very slow on qemumips</short_desc>
          <delta_ts>2015-01-02 18:11:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Package Management Issues</product>
          <component>package-management-issues</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>bogdan.a.marinescu</cc>
    
    <cc>ke.zou</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>ning.zhang</cc>
    
    <cc>Qi.Chen</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>31790</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-04-10 06:30:11 +0000</bug_when>
    <thetext>Image location: http://autobuilder.yoctoproject.org/pub/nightly/20130403-2/
Git rev: fe336b149552b1f4f24d979c40302653298b98cc

I found on qemumips the smart command run slow than qemuarm and qemuppc. Especially for update and install command, the time is about 4 times.

Here are some time data output:

On qemumips:
#############
root@qemumips:~# time smart
Usage: smart command [options] [arguments]
...[snip]...

real	0m2.615s
user	0m2.410s
sys	0m0.150s

root@qemumips:~# time smart update --help
Usage: smart update [options] [channelalias] ...
...[snip]...

real	0m4.537s
user	0m4.270s
sys	0m0.240s

root@qemumips:~# time smart query busybox
Updating cache...                                                         ...[snip]...

real	0m39.063s
user	0m35.760s
sys	0m1.100s

root@qemumips:~# time smart channel --add myrpmmd type=rpm-md baseurl=http://192.168.7.1/rpmrepo/qemumips -y


real	0m6.783s
user	0m6.280s
sys	0m0.380s

root@qemumips:~# time smart update
Loading cache...
Updating cache...
...[snip]...                                                         
Channels have 9438 new packages.
Saving cache...


real	17m17.422s
user	17m3.950s
sys	0m7.130s

root@qemumips:~# time smart query groff
Loading cache...
Updating cache...                                                         ...[snip]...   

groff-1.20.1-r2@mips32



real	1m42.839s
user	1m41.070s
sys	0m1.410s


root@qemumips:~# time smart install groff -y
Loading cache...
Updating cache...
...[snip]...                                                          


real	2m26.322s
user	2m20.050s
sys	0m3.600s
root@qemumips:~# 
#############

On qemuarm:
##############
root@qemuarm:~# time smart
Usage: smart command [options] [arguments]
...[snip]...   

real	0m1.379s
user	0m1.020s
sys	0m0.280s

root@qemuarm:~# time smart update --help
Usage: smart update [options] [channelalias] ...
...[snip]...   

real	0m1.774s
user	0m1.360s
sys	0m0.380s


root@qemuarm:~# time smart query busybox
Updating cache...
...[snip]...                                                            

real	0m10.126s
user	0m7.820s
sys	0m1.360s


root@qemuarm:~#  time smart channel --add myrpmmd type=rpm-md baseurl=http://192.168.7.1/rpmrepo/qemuarm -y


real	0m2.503s
user	0m1.850s
sys	0m0.620s

root@qemuarm:~# time smart update
Loading cache...
Updating cache...
...[snip]...                                                            
Channels have 9453 new packages.
Saving cache...


real	4m3.461s
user	3m49.290s
sys	0m10.210s

root@qemuarm:~# time smart query groff
Loading cache...
Updating cache...
...[snip]...                                                            

groff-1.20.1-r2@armv5te



real	0m22.119s
user	0m20.060s
sys	0m1.980s


root@qemuarm:~# time smart install groff -y
Loading cache...
Updating cache...
...[snip]...                                                            



real	0m34.861s
user	0m28.300s
sys	0m4.660s
root@qemuarm:~# 
##################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31827</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-04-10 14:54:02 +0000</bug_when>
    <thetext>The question is, is this poor performance only with smart or with other applications as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31922</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-11 11:42:23 +0000</bug_when>
    <thetext>Please retest this after the recent kernel changes for the release, it could well be better now qemumips is working properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32332</commentid>
    <comment_count>3</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2013-04-18 06:09:43 +0000</bug_when>
    <thetext>The problem still exists in 20130411 build

Image location: 

http://autobuilder.yoctoproject.org/pub/nightly/20130411-3

poky   dylan:dab237bc6a7679dfeaa981c14736aedc7b04ecb9


qemumips sato log:

smart add channel:

Alias: 05-14-27
Type: rpm-md
Base URL: http://192.168.7.1/rpmrepo/qemumips

Include this channel? (y/N): y



real	0m33.734s
user	0m13.460s
sys	0m1.330s


smart update:


real	18m36.711s
user	17m41.250s
sys	0m10.210s


smart install mc


real	3m23.976s
user	2m24.560s
sys	0m9.790s



qemumips sato_sdk log:

smart add channel:


Alias: 05-41-05
Type: rpm-md
Base URL: http://192.168.7.1/rpmrepo/qemumips

Include this channel? (y/N): y



real	0m39.662s
user	0m13.250s
sys	0m1.290s


smart update:


real	15m56.747s
user	15m24.450s
sys	0m8.980s


smart install mc


real	3m37.884s
user	2m49.870s
sys	0m10.600s



Comparing to qemuarm:
add rpm-md channel:


Base URL: http://192.168.7.1/rpmrepo/qemuarm

Include this channel? (y/N): y



real	0m12.767s
user	0m4.830s
sys	0m1.290s


smart update:


real	4m3.139s
user	3m38.050s
sys	0m10.350s


smart install mc:


real	1m25.840s
user	0m38.280s
sys	0m11.360s</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47715</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-01-02 18:11:23 +0000</bug_when>
    <thetext>I&apos;ve looked at this again finally; everything I can determine suggests that this is simply about the speed of emulation of qemumips rather than anything specific to do with smart. I don&apos;t think there&apos;s much I can do about this, therefore I&apos;m marking this as WONTFIX.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>