[packagekit] Yum backend throttling

Richard Hughes hughsient at gmail.com
Thu Sep 27 11:42:39 PDT 2007


On Thu, 2007-09-27 at 12:22 -0400, Robin Norwood wrote:
> Tim Lauridsen <tla at rasmil.dk> writes:
> > No conversion is needed, the self.yumbase.conf is a special class with
> > getter & setter to set differnt kind of option of different speciel
> > type
> > The class does the convertion.
> > self.yumbase.conf.throttle is a special throttle option there take a
> > lot of differnt values and parse them into something urlgrabber
> > understands.
> > See details here (trottle option).
> > http://devel.linux.duke.edu/gitweb/?p=yum.git;a=blob;f=yum/config.py
> >
> > So the
> >
> > self.yumbase.conf.throttle = "40%" 
> >
> > should work right.
> >
> > the repos inherit the throttle from self.yumbase.conf.throttle, so
> > there should be no need to specify it on each repo object, if we just
> > set the base throttle before the repos is initialized.
> 
> Oh, ok.  I assumed 'parse' was only done when the value was loaded from
> the config file, but now I see how it works.

Sounds good. Can one of commit this pls.

> Is just setting it when yum is set up good enough, or does there need to
> be a call to change the throttle while a transaction is running?  IIRC
> hughsie mentioned something about throttling down when the user is
> 'active', and throttling back up when she is inactive...but that may
> have just been a pipe dream.

Well, a pipe dream now. I think permanently on 40% is much better than
what we have now.

Richard.



More information about the PackageKit mailing list