Another way to handle streaming is to inform the kernel that it may as
well discard pages after they've been used by the mpg player, if no-one
else is using them. I prefer this because it permits the kernel to use
the pages if they are in cache for some reason, it lets the kernel
decide on readahead policies according to device speed etc. (in
principle), and the kernel can keep the data around anyway if it wants,
for another process or simply because there's loads of free memory.
madvice(MADV_SEQUENTIAL) is one mechanism for this, which Linux doesn't
have. It gets mentioned from time to time.
Discardable pages is another that was discussed in a thread a while
back. I have most of the implementation of this one done, now if I can
only find the motivation to finish the darn thing...
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/