> Anyways, I still have some old routines in the program doing the
> same via read(). I have tried that (although the program is
> pretty silly, as it reads the 240megs in 4 byte chunks.... the
> call overhead probably is the bigger problem there...) and it
> improved the runtime by aproximately 20% using the use_once
> 22.300u 135.310s 2:41.38 97.6% 0+0k 0+0io 110pf+0w
> 14.980u 108.870s 2:09.79 95.4% 0+0k 0+0io 200pf+0w
> Both measurements taken after reboot and while running KDE2.2 As
> stated: I am still willing to do further experiments...
> (read()ing larger chunks at once?)
Could you try reading 4kB chunks at once ?
That way you should truly only touch each page once.
(using smaller chunks, or chunks which aren't a
multiple of 4kB should break the current code)
-- Executive summary of a recent Microsoft press release: "we are concerned about the GNU General Public License (GPL)"
http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/