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

From: Andrew Morton (akpm@digeo.com)
Date: Tue Oct 08 2002 - 15:42:24 EST


Matthias Schniedermeyer wrote:
>
> ...
> I use a program called VDR. This is for recording digital-TV-program
> from satallite.
>
> After a recording is finished i cut the recordings. I my case i "stream"
> the input-data via NFS from the recording machine(s) through a converter
> into the local temporary directory. After i have enough files i create
> ISO-images of the files. When i create an ISO-images i "stream" the
> files from HDD1 to HDD2 because otherwise it would completly kill the
> performance. Then i burn the ISO-Image onto a DVD-R.
>
> Every single part in the whole process trashes the cache.

Right. You dont have O_DIRECT for NFS and you control the
application. You need O_STREAMING. Or posix_fadvise(), which
would be significantly harder to use and is not really implementable
in 2.4.

Any magical kernel voodoo which reads your mind and drops that
cache early would probably help, but there's no way in which it
can be as effective as an explicit hint.
-
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:27 EST