https://bugzilla.redhat.com/show_bug.cgi?id=1011674
Bug ID: 1011674 Summary: [PATCH] yum-langpackages slows down yum runs a lot, due to langtable and loading groups. Product: Red Hat Enterprise Linux 7 Version: 7.1 Component: yum-langpacks Assignee: pnemade@redhat.com Reporter: james.antill@redhat.com CC: i18n-bugs@lists.fedoraproject.org, james.antill@redhat.com, notting@redhat.com, petersen@redhat.com, pnemade@redhat.com Depends On: 1011670
+++ This bug was initially created as a clone of Bug #1011670 +++
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
--- Additional comment from James Antill on 2013-09-24 15:10:11 EDT ---
--- Additional comment from James Antill on 2013-09-24 15:16:55 EDT ---
Just checked and this is a problem in F19, and thus. I assume el7.
https://bugzilla.redhat.com/show_bug.cgi?id=1011674
--- Comment #2 from James Antill james.antill@redhat.com --- Created attachment 802434 --> https://bugzilla.redhat.com/attachment.cgi?id=802434&action=edit Don't load langtable module when it isn't used.
Adding patches directly to clone.
https://bugzilla.redhat.com/show_bug.cgi?id=1011674
--- Comment #3 from James Antill james.antill@redhat.com --- Created attachment 802435 --> https://bugzilla.redhat.com/attachment.cgi?id=802435&action=edit Don't download groups for langpack in postrepo. setup.
https://bugzilla.redhat.com/show_bug.cgi?id=1011674
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |i18n Version|7.1 |7.0 Target Milestone|rc |beta
https://bugzilla.redhat.com/show_bug.cgi?id=1011674
Satyabrata Maitra smaitra@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |smaitra@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1011674
Bug 1011674 depends on bug 1011670, which changed state.
Bug 1011670 Summary: [PATCH] yum-langpackages slows down yum runs a lot, due to langtable and loading groups. https://bugzilla.redhat.com/show_bug.cgi?id=1011670
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |ERRATA
https://bugzilla.redhat.com/show_bug.cgi?id=1011674
Parag pnemade@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED Group| |devel Fixed In Version| |yum-langpacks-0.4.1-2.el7
--- Comment #4 from Parag pnemade@redhat.com --- Fixed in yum-langpacks-0.4.1-2.el7
https://bugzilla.redhat.com/show_bug.cgi?id=1011674
errata-xmlrpc errata-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
https://bugzilla.redhat.com/show_bug.cgi?id=1011674
Parag pnemade@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Rebase Doc Type|Bug Fix |Rebase: Bug Fixes and | |Enhancements
i18n-bugs@lists.fedoraproject.org