[Yum-devel] speeding up yum was Re: [Bug 207] yumError.py patch submissio
David Farning
dfarning at sbcglobal.net
Thu Feb 26 16:48:46 UTC 2004
On Thu, 2004-02-26 at 08:53 -0700, Michael Stenner wrote:
> The threading (or forking) idea is coming up a lot lately, so I'm
> beginning to consider it more seriously. However, I don't understand
> how threading would help in this case. It's a single file. Can you
> explain what you mean a bit more?
The situations where threading is useful is where there are several
files to files to pull at the same time. ie when you are pulling
headers from several different repos. Currently I'm pulling from 7
different repos. Using 1 thread vs 4 Threads as a Test on my dls
connection, this morning it is taking about 8 seconds to grab the 7
headers while single threaded and and 3 seconds with 4 threads. It looks
like
pool started
thread 0 starting: Livna.org Fedora Compatible Packages (stable)
thread 1 starting: Livna.org Fedora Compatible Packages (testing)
thread 2 starting: Livna.org Fedora Compatible Packages (unstable)
thread 3 starting: Development Tree - i386
reusing thread 3 Fedora-us 1.90 - i386 - Stable
reusing thread 3 JPackage 1.5 for Fedora Core 1
reusing thread 1 JPackage 1.5, generic
thread 1 done
thread 0 done
thread 2 done
thread 3 done
pool destroyed
In this case it looks like a good bit of time is wasted establishing the
connection with the livna servers. These tests are being run in c using
libcurl but the results should be comparable to those in pthon;)
hmm... Forgot about failover. To keep the interface as clean as
possible, I assume that all the needed files are known ahead of time and
passed as a list. Dealing with failover makes things a good bit more
ugly.
Dave Farning
More information about the Yum-devel
mailing list