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

From: Gerhard Mack (
Date: Thu Oct 10 2002 - 10:37:18 EST

On Wed, 9 Oct 2002, Erik Andersen wrote:

> 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.

Personally I would settle for updatedb being converted.


Gerhard Mack

<>< As a computer I find your faith in technology amusing.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

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