[issue34] rpm-md use is VERY SLOW

patoruzu at Labix Tracker tracker at labix.org
Fri Feb 17 03:08:37 PST 2006


patoruzu <sinderbox+labix at gmail.com> added the comment:

I was using the one you asked me to test (@bugzilla) with the new yast patch.
Now it upgraded itself to even one more version.
Deleting the cache file did help partially.
1) No more saving cache when not needed
2) Saving cache is much faster (but sill slow sometimes. Range 10/20 minutes AFAICS)

Saving cache took 10 minutes on first run. (when there was no cache file)
Then this is very interesting:

================================================================================
1) repodata dir is newer => save time is around 20 minutes
server:~ # time smart update
Loading cache...
Updating cache...                                      
############################################################################# [100%]

Fetching information for 'SUSE 10.1 base Factory (YUM)'...
->
http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/repodata/repomd.xml
repomd.xml                                             
############################################################################# [ 33%]
->
http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/repodata/filelists.xml.gz
->
http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/repodata/primary.xml.gz
primary.xml.gz                                         
############################################################################# [ 66%]
filelists.xml.gz                                       
############################################################################# [100%]

Updating cache...                                      
############################################################################# [100%]

Channels have no new packages.
Saving cache...


real    39m59.051s
user    3m55.747s
sys     1m9.648s

[ESTIMATED CACHE SAVING TIME: 20 minutes)

================================================================================
2) repodata dir unchanged, smart update => save time is fast (seconds)

server:~ # time smart update
Loading cache...
Updating cache...                                      
############################################################################# [100%]

Fetching information for 'SUSE 10.1 base Factory (YUM)'...
->
http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/repodata/repomd.xml
repomd.xml                                             
############################################################################# [ 33%]

Updating cache...                                      
############################################################################# [100%]

Channels have no new packages.

real    0m23.182s
user    0m15.713s
sys     0m3.592s


================================================================================
3) Reinstalling a small package => save time is fast (second):

server:~ # time smart reinstall nmap
Loading cache...
Updating cache...                                      
############################################################################# [100%]

Computing transaction...

Installing packages (1):
  nmap-4.00-2 at i586

647.4kB of package files are needed. 2.5MB will be used.

Confirm changes? (Y/n): Y

Fetching packages...
->
http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/i586/nmap-4.00-2.i586.rpm
nmap-4.00-2.i586.rpm                                   
############################################################################# [100%]


Committing transaction...
Preparing...                                           
############################################################################# [  0%]
   1:Installing nmap                                   
############################################################################# [100%]



real    0m57.556s
user    0m12.361s
sys     0m2.880s

================================================================================

4) repodata dir unchanged, smart update => SLOW AGAIN in the 10 minutes order
(download time/cache load+update took few seconds only)

server:~ # time smart update
Loading cache...
Updating cache...                                      
############################################################################# [100%]

Fetching information for 'SUSE 10.1 base Factory (YUM)'...
->
http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/repodata/repomd.xml
repomd.xml                                             
############################################################################# [ 33%]

Updating cache...                                      
############################################################################# [100%]

Channels have no new packages.
Saving cache...


real    9m26.139s
user    0m29.566s
sys     0m20.425s

================================================================================

5) it is fast next time again

server:~ # time smart update
Loading cache...
Updating cache...                                      
############################################################################# [100%]

Fetching information for 'SUSE 10.1 base Factory (YUM)'...
->
http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/repodata/repomd.xml
repomd.xml                                             
############################################################################# [ 33%]

Updating cache...                                      
############################################################################# [100%]

Channels have no new packages.

real    0m23.331s
user    0m15.705s
sys     0m3.508s

================================================================================

CPU is mostly free during run time.
Memory is fully used and some swapping needed, this amplifies the problem and is
probably less noticeable on other machines. But it should not take 10 minutas
for file saving even when swapping

server:~ # smart mirror --show

server:~ # smart channel --show
[suse-10.1-YUM]
type = rpm-md
name = SUSE 10.1 base Factory (YUM)
baseurl =
http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/

[rpm-sys]
type = rpm-sys
name = RPM System

server:~ # rpm -q --changelog smart
* Wed Feb 15 2006 - stbinner at suse.de
- fix Name in .desktop file

* Mon Feb 13 2006 - cthiel at suse.de
- updated smart-YaST2.diff (fixes #149845)

* Sun Feb 05 2006 - cthiel at suse.de
- fix requires (added python-xml)

* Wed Jan 25 2006 - mls at suse.de
- converted neededforbuild to BuildRequires

[...]

Hope this helps

_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue34>
_______________________________________



More information about the Smart mailing list