Re: Interesting anaconda/yum performance issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2007-06-13 at 13:40 -0600, Jeffrey Law wrote:
> Using cProfile, it appears that we're calling buildPkgRefDict for each
> explicitly listed package -- at a cost of nearly a half-second per call
> (3GigHz P4).  Clearly this gets to be rather expensive when the package
> list is long -- a typical install is over 600 packages.  We're burning
> an absurd amount of time here.
> 
> Using @group syntax does not suffer from this problem.  So clearly
> there's a path through anaconda which does not need to call 
> buildPkgRefDict so often.

The difference is that the comps file isn't allowed to do anything more
than list an exact package name.  Listing packages in %packages is
allowed to be globs, specify version, specify, arch, etc.  

Although I'm not quite sure why we're not using the matchPackageNames()
bits in yum's install() method... it should provide the same sort of
results but also be able to do some of the querying using sql queries
against the sqlite db (and thus probably be faster)

Jeremy


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux