Re: [PATCH] O_STREAMING - flag for optimal streaming I/O

From: Erik Andersen (andersen@codepoet.org)
Date: Wed Oct 09 2002 - 22:29:51 EST


On Thu Oct 10, 2002 at 12:20:02AM +0100, Jamie Lokier wrote:
> Mark Mielke wrote:
> > 2) Pages should not be candidates for dropping if the pages belong
> > to the first few pages of a file. (First = 2? 4? 8?) The theory
> > being, that somebody could begin reading the file again from the
> > beginning.
>
> This breaks the benefit of using O_STREAMING to read a lot of small
> files once, as you might do when grepping the kernel tree for example.

I don't think grep is a very good candidate for O_STREAMING. I
usually want the stuff I grep to stay in cache. O_STREAMING is
much better suited to applications like ogle, vlc, xine, xmovie,
xmms etc since there is little reason for the OS to cache things
like songs and movies you aren't likely to hear/see again any
time soon.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:35 EST