On Sun, Jun 5, 2011 at 11:17 AM, tushar mehta <mehta...@gmail.com> wrote:
> On Sun, Jun 5, 2011 at 2:38 PM, todd rme <toddrme2...@gmail.com> wrote:
>>
>> On Sun, Jun 5, 2011 at 11:04 AM, tushar mehta <mehta...@gmail.com> wrote:
>> >
>> > Question:
>> > Do we have any control on how much data kioslaves will read from network
>> > and put into kernel buffer?
>> > and if application is taking out the data from kernel buffer at some
>> > rate
>> > then
>> > it will be specific to that application and other applications which are
>> > using same
>> > type of slaves will not have the speed control on the data which they
>> > are
>> > dealing with.
>> > Can we do something so that KIO it self will fill the kernel buffer at
>> > some
>> > configurable rate?
>>
>> I'm not sure I would want one application being able to tell all the
>> other applications what they are and are not allowed to do with their
>> own data.
>>
>> -Todd
>
> but if we are making some changes in KIO then those applications which
> are using the KIO will get affected. right?
> so say if KIO is transferring data at some particular rate then all the
> applications
> which are using that KIO, will follow the rate.

No, it would be made on a per-connection basis, not a per kio-slave
basis.  So each time an application tries to transfer a file it can
optionally set a bandwidth limit for that one transfer.  This would
have no affect on any other transfers, and this would be a strictly
opt-in feature (applications that don't set a transfer limit would not
have a transfer limit).

The problem with this approach, I just realized, is that it may make
it impossible to change the transfer rate during a transfer.  So say
you want to set a limit for all transfers using kget.  If you add a
new transfer you would not able to reduce the rate of the other
transfers to maintain the same overall rate because the rate was set
when the transfer started.  Maybe there might be some way to
dynamically set the rate, but I am not sure what it would be.

Are you in touch with the guy from this project? :
http://www.google-melange.com/gsoc/project/google/gsoc2011/munk/13001

He is working on a more general overhaul of the internals of the KIO
file transfer system. This may include better per-application and
per-kio slave handling of multiple transfers.  It would probably be
good to stay in touch with him so you can look for any areas of
overlap between your projects and coordinate them (or at the very
least avoid conflicts).

-Todd
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to