Bug 1392392 - yum repolist -C takes longer than yum repolist
Summary: yum repolist -C takes longer than yum repolist
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Valentina Mukhamedzhanova
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-07 12:32 UTC by Oliver Ilian
Modified: 2016-11-24 18:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-24 17:40:46 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1398406 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1398406

Description Oliver Ilian 2016-11-07 12:32:35 UTC
Description of problem:
If you try to get a repolist via "yum repolist" it takes longer to display the repos from the cache than without the cache option

Version-Release number of selected component (if applicable):
yum-3.4.3-150.el7.noarch
yum-rhn-plugin-2.0.1-6.el7.noarch

Steps to Reproduce:
1. run "yum repolist" to ensure the repo is udpated
2. run: time yum repolist
output:
real	0m1.464s
user	0m0.350s
sys	0m0.061s

3.  run: time yum repolist -C
real	0m3.498s
user	0m3.300s
sys	0m0.157s


Actual results:
yum repolist -C takes 2.5 times the time of yum repolist to display the output of the repo list

Expected results:
yum repolist -C should be much faster than yum repolist

Additional info:
The repolist contains of:
17 Satellite channels
7 yum repos

Comment 2 Michal Domonkos 2016-11-22 12:22:20 UTC
I can't reproduce this.  I'm getting roughly the same times for both with and without -C (it shouldn't be that much faster with -C anyway).

Do you still experience this?  If so, could you please run:

1) yum clean all
2) yum repolist
3) yum repolist --verbose and attach the output
4) yum repolist -C --verbose and attach the output

Comment 3 Oliver Ilian 2016-11-22 15:54:30 UTC
Created attachment 1222756 [details]
yum repolist

Comment 4 Oliver Ilian 2016-11-22 15:55:03 UTC
Created attachment 1222757 [details]
yum repolist -C

Comment 5 Oliver Ilian 2016-11-22 15:58:45 UTC
I have found the reason for the delay. If I only have satellite channels , yum repolist -C is double as fast as yum repolist .

If I add a local yum repo additional to the satellite channels, the output looks really strange when using the -C option, and the duration is double as long as yum repolist (see output in attachment)

Comment 8 Michal Domonkos 2016-11-22 16:27:57 UTC
Thanks for the data, I'll take a look.


Note You need to log in before you can comment on or make changes to this bug.