lkml.org 
[lkml]   [2002]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] O_STREAMING - flag for optimal streaming I/O
Date
In article <XFMail.20021010113849.pochini@shiny.it>,
Giuliano Pochini <pochini@shiny.it> wrote:
>>> The kernel already have cache pruning algorithm. O_STREAMING logic
>>> should not clear caches if there is no need to do that. We could
>>
>> The entire point of O_STREAMING is to let user space specify
>> policy. If user space user space knows with 100% certainty that
>> the data being read/written from a particular file descriptor is
>> use-once-and-discard data, then it makes sense to honor that
>> hint. In this case, user space knows best and can set policy on
>> a per file descriptor basis.
>
>Yes, it makes sense, but it's useless or harmful to discard caches
>if nobody else needs memory. You just lose data that may be
>requested in the future for no reason.

But to cache the DVD you will have to throw out the data which
is already there for no reason, and that is exactly what you
want to avoid.

At least on my machine buffers/cache _always_ fill up all free
memory. I don't want the streaming DVD to push that out.

Mike.

-
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    [W:0.115 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site