Issue #1443 has been updated by jamtur01. Status changed from Re-opened to Closed
Pushed in commit:"65eafb7c01e6b4c003066cf7c6dceb5910e91950" in branch 0.24.x ---------------------------------------- Bug #1443: Enable lazy loading of latest packages for yum http://projects.reductivelabs.com/issues/show/1443 Author: immerda Status: Closed Priority: Normal Assigned to: jamtur01 Category: package Target version: 0.24.6 Complexity: Unknown Patch: None Affected version: Keywords: yum I could observe that yumhelper.py can run quite some time and use quite a lot of memory (up to 100MB!) if you're using many repositories. As the yumhelper is only needed if you use latest as a ensure-keyword it makes no sense for people like me letting puppet fetch these details always, if you're never going to use latest. Therefor this patch changes the behaviour, that the yumhelper is only called, if @updates is accessed the first time. => lazy loading. some observations I could do showed some significant perfomance boost: without lazy loading: <pre> notice: Finished catalog run in 61.45 seconds </pre> with lazy loading and not using any latest definition: <pre> notice: Finished catalog run in 34.99 seconds </pre> Pushed in commit: "c24237":http://github.com/duritong/puppet/commit/c24237daf14d22c858ff07fe88384333e0558bb6 Branch published @ "github":http://github.com/duritong/puppet/tree/yumhelper_lazyloading However maybe the yumhelper itself should be examined on the memory usage. But I think most of the stuff is coming from yum itself. ---------------------------------------- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
