[Yum-devel] speeding up yum was Re: [Bug 207] yumError.py patch submissio

seth vidal skvidal at phy.duke.edu
Thu Feb 26 15:47:24 UTC 2004


> can take several seconds.  I need to look deeper, but is the problem
> reading the header from the disk, sticking it into the rpmdb, or both.
> Could consider using mmap() to cache the headers before use, conditional
> on mem available.  
> 
> The big potential fix that I see here is not destroying and  rebuilding
> the entire ts each iteration through resolvedep().  For example,
> 
> Running through resolvedeps(), ts.check() indicates that dependency is
> not met.
> 
> Package is found that satisfies dependency.
> package is added to the addInstallList (actually flag is set).
> 
> Now now entire ts is rebuilt and checked.
> 
> Why not just add the package to existing ts and check().  Situation were
> the ts is rebuilt should be reduced to corner cases.

b/c rpm transaction sets don't work like that.

At all.

You MUST tear down the ts and start a new one.


> ts.check() -- no fix



> 
> 
> Mean while, back in main--
> 
> tstest = clientStuff.create_final_ts(tsInfo)
> clientStuff.tsTest(tstest)
> 
> If we have a proven good ts why create and test again? Remember making
> and checking ts can take several seconds to several minutes!

b/c we have to have a valid test.


> tsfin = clientStuff.create_final_ts(tsInfo)
> tsfin.check()
> tsfin.order()
> errors = tsfin.run(cb.callback, '')
> 
> Huh, we are making and checking it again!  

for the file conflicts test.


> The goal should be to build only one ts!
> 

And that's not possible. You need to get to know the rpm transaction
sets a lot better.

up2date and anaconda do the same thing.

There isn't a way around it.

There is the rpm ts.check callback which helps some but all the tests
done on it so far say that it doesn't handle conflicts sufficiently for
the program using it to sort out the problems.

-sv





More information about the Yum-devel mailing list