[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: kio multithreading
From:       Waldo Bastian <bastian () kde ! org>
Date:       2000-12-30 6:25:34
[Download RAW message or body]

On Friday 29 December 2000 18:30, Lotzi Boloni wrote:
> > The problem starts when you have 5 long-lasting downloads going. The
> > scheduler will not create more slaves but waits for one of the slaves
> > that are busy to finish first.
> >
> > I can fix that problem by lifting the limit of 5, essentially putting the
> > scheduler out of business, but that creates problems when you e.g.
> > recursively copy a directory-tree, because then you suddenly get 200
> > slaves or so.
> >
> > So if anyone has an idea how to solve this I'm interested to hear it.
>
>   I am sure that the only solution is to distinguish between the different
> types of ioslaves, and group them. You can then allow 5 http ioslaves,
> 5 local ones, and an unlimited number of ftp slaves, so you will have
> different pools.

We do that already, but that doesn't solve the problem does it? A download 
uses e.g. an ftp slave and a file slave.

>   I don't understand completely what the scheduler is supposed to do for
> http, I guess to limit the number of connections for a webpage download.

Well, actually khtml already does some scheduling of itself. So as far as I 
know only recursive file operations really makes use of the scheduler.

> I think that those downloads which are user initiated (i.e. put up the
> progress dialog) should go into the unlimited pool.

Yes, I'm also thinking in that direction.

Cheers,
Waldo
-- 
bastian@kde.org | SuSE Labs KDE Developer | bastian@suse.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic