Sendfile in file ioslave

George Staikos staikos at kde.org
Wed Jul 2 11:41:58 CEST 2003


On Tuesday 01 July 2003 05:56, Szombathelyi György wrote:
> I think the patch is so small, that the optimization should be only
> adjusting the buffer size. All other belongs to the kernel people :)
>
> I tried to do some benchmarks, and I really doesn't noticed any
> speed-ups on my system, only a minor CPU-usage reduction. If I increased
> the buffer size to about 3 MB, it resulted in a major load reduction,
> but of course made the progress dialog very unresponsive.

    Hmm.  I wonder if there is any way to solve this problem.  Is it possible 
to get progress feedback some other way from sendfile()?  Maybe we could 
extend KIO to handle this.

> I will improve the patch with better error handling, the I will resend
> till weekend. I think it can be applied, the only problem how can I
> seperate read errors from write errors (both returns EIO as man sendfile
> says).

  Great, thanks!

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/



More information about the Kde-optimize mailing list