Bug 127218

Summary: yum is *extremely* slow when resolving dependencies
Product: [Fedora] Fedora Reporter: Florian Effenberger <floeff>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: barryn
Target Milestone: ---   
Target Release: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-30 06:07:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florian Effenberger 2004-07-04 17:30:05 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7)
Gecko/20040626 Firefox/0.9.1

Description of problem:
yum is *extremely* slow when resolving dependencies. I run on a AMD
K6-500 machine and have the following in my /etc/yum.conf:

===
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/fedora-core/2/i386/os/

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/fedora-core/updates/2/i386/

[updates-testing]
name=Fedora Core $releasever - $basearch - Unreleased Updates
baseurl=ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/fedora-core/updates/testing/2/i386/

[development]
name=Fedora Core $releasever - Development Tree
baseurl=ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/fedora-core/development/i386/
===

When installing a package, e.g. via "yum install openssl-devel", it
takes ages at the "Resolving dependencies" step. The computer doesn't
seem to do much (no high CPU load, no hard disk usage).

My /etc/fedora-release says "Fedora Core release 2 (Tettnang)" and the
kernel version is 2.6.7-1.469.

Version-Release number of selected component (if applicable):
yum-2.0.7-1.1

How reproducible:
Always

Steps to Reproduce:
1. yum install openssl-devel (or any other package)
    

Actual Results:  Takes a long time at "Resolving dependencies" (minutes!)

Expected Results:  Should get *much* faster

Additional info:

Comment 1 Florian Effenberger 2004-07-04 17:39:06 UTC
I have to correct myself:
The CPU load is about 0.99. (no other services are running)
However, there is no remarkable hard disk access as I said.

Comment 2 Florian Effenberger 2004-07-04 17:43:32 UTC
I've measured the time. It takes about 11 (eleven!) minutes to resolve
the dependencies of openssl-devel.

I will do the following:
[install: openssl-devel 0.9.7a-39.i386]
I will install/upgrade these to satisfy the dependencies:
[deps: e2fsprogs-devel 1.35-8.i386]
[deps: zlib-devel 1.2.1.1-3.i386]
[deps: krb5-devel 1.3.4-1.i386]
Is this ok [y/N]: y


Comment 3 Seth Vidal 2004-07-04 18:03:18 UTC
Google a bit, this is known and it is being worked on.

Reporting it for the Nth time just annoys the primary developer.



Comment 4 Florian Effenberger 2004-07-04 19:17:26 UTC
I searched, but I did not find anything. Is there a workaround?

Comment 5 Seth Vidal 2004-07-04 19:19:27 UTC
it improves if you:
use fewer repositories - and especially don't mix and match fc2 stable
and development trees.

if you want to use devel then just use devel, not some of fc2 AND devel.


Comment 6 Florian Effenberger 2004-07-04 19:24:03 UTC
Okay, thanks, I'll try! ;-)

Comment 7 Seth Vidal 2004-09-02 18:24:14 UTC
Once fc3test2 is released. Try yum from there, see if it is better.

All reports and tests have said yes, so far.


Comment 8 Seth Vidal 2004-11-30 06:07:18 UTC
reports from yum 2.1.X from fc3 say resolution speed is much much much
better.