lkml.org 
[lkml]   [2002]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] O_STREAMING - flag for optimal streaming I/O
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 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/

\
 
 \ /
  Last update: 2005-03-22 13:29    [from the cache]
©2003-2011 Jasper Spaans