Bug 580377
Summary: | auto-update-debuginfo plugin calls doRepoSetup many times, which is slow | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matt McCutchen <matt> | ||||||||||
Component: | yum-utils | Assignee: | Seth Vidal <skvidal> | ||||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||
Severity: | low | Docs Contact: | |||||||||||
Priority: | low | ||||||||||||
Version: | 12 | CC: | james.antill, maxamillion, pmatilai, tim.lauridsen | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | All | ||||||||||||
OS: | Linux | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | yum-utils-1.1.27-2.fc13 | Doc Type: | Bug Fix | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2010-06-14 17:21:47 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: | |||||||||||||
Attachments: |
|
Description
Matt McCutchen
2010-04-08 06:38:21 UTC
Created attachment 405194 [details]
Current yum output
Created attachment 405196 [details]
Yum output with my patch
Created attachment 405197 [details]
Patch that I am using
This patch changes the hook to a prereposetup hook and makes some other cleanups.
What's the "time yum repolist" and/or "time yum list yum" in both cases? The timings are at the end of each log. But this is a design improvement regardless of the amount of speedup. Created attachment 406963 [details]
Analogous patch for debuginfo-install
debuginfo-install could benefit from the same change. The time saved is again about 3 seconds on my system. Here is a patch that makes the change and also tweaks the logic to exactly match the auto-update-debuginfo plugin (namely, to not bother to re-enable already enabled repos).
Thanks for the patches, both are upstream now (although they needed a bit of tweaking due to changes ... feel free to test them!:) yum-utils-1.1.27-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/yum-utils-1.1.27-1.fc13 yum-utils-1.1.27-2.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-utils'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yum-utils-1.1.27-2.fc13 yum-utils-1.1.27-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |