Bug 1011670

Summary: [PATCH] yum-langpackages slows down yum runs a lot, due to langtable and loading groups.
Product: [Fedora] Fedora Reporter: James Antill <james.antill>
Component: yum-langpacksAssignee: Parag Nemade <pnemade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: i18n-bugs, james.antill, notting, petersen, pnemade
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yum-langpacks-0.4.1-3.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1011674 (view as bug list) Environment:
Last Closed: 2013-09-28 00:21:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1011674    
Attachments:
Description Flags
Load langtable module lazily.
none
Don't download groups for langpack in postrepo. setup. none

Description James Antill 2013-09-24 19:09:26 UTC
Created attachment 802429 [details]
Load langtable module lazily.

Description of problem:

Noticed that yum runs in F20 were a lot slower than I expected, traced it to langpacks (not sure how recent this is, maybe needs fix in F18/F19/el7 too?).

The first patch is a huge savings:

~1 second off, from 1.8s to 0.8s to do: yum list yum

...which is all "import langtable", so I moved that to happen lazily.

The second patch is that postreposetup_hook() gets called for basically every command, but we only need that data if a transaction happens. So I moved it:

~0.3s off, from 0.8s to 0.5s to do: yum list yum

Comment 1 James Antill 2013-09-24 19:10:11 UTC
Created attachment 802430 [details]
Don't download groups for langpack in postrepo. setup.

Comment 2 James Antill 2013-09-24 19:16:55 UTC
Just checked and this is a problem in F19, and thus. I assume el7.

Comment 3 Parag Nemade 2013-09-25 03:29:13 UTC
Thank you for the patches. I will update the package by later today.

Comment 4 Fedora Update System 2013-09-25 07:25:45 UTC
yum-langpacks-0.4.1-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yum-langpacks-0.4.1-2.fc20

Comment 5 Fedora Update System 2013-09-25 08:29:19 UTC
yum-langpacks-0.4.1-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/yum-langpacks-0.4.1-2.fc19

Comment 6 Fedora Update System 2013-09-26 06:14:33 UTC
Package yum-langpacks-0.4.1-2.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-langpacks-0.4.1-2.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-17633/yum-langpacks-0.4.1-2.fc19
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-09-28 00:21:25 UTC
yum-langpacks-0.4.1-2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2013-09-30 09:29:18 UTC
yum-langpacks-0.4.1-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yum-langpacks-0.4.1-3.fc20

Comment 9 Fedora Update System 2013-10-09 14:28:13 UTC
yum-langpacks-0.4.1-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.