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

From: Andrew Morton (
Date: Tue Oct 08 2002 - 15:03:11 EST

Matthias Schniedermeyer wrote:
> ...
> I only have 3 GB of RAM, and creating and writing trashes the whole
> cache twice.

That's actually something completely dumb and irritating which
Linux has done for ever ;)

What we need is to detect the situation where someone is linearly
walking through a file which is preposterously too large to cache,
and just start dropping it.

It's not hard to implement the lower machinery to do that - it would
basically be an internal call to posix_fadvise(), which we don't
have but could and perhaps should...

The tricky part is designing the algorithm which decides when to
pull the trigger.
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:27 EST