[MPlayer-dev-eng] [PATCH] Use posix_fadvise in stream_file if available

Tobias Diedrich ranma at tdiedrich.de
Wed Nov 11 15:57:26 CET 2009


Reimar Döffinger wrote:
> What do you think? Seems nicer and more flexible than your increased
> buffer size patch to me.

I looked more into the fuse/sshfs issue and it looks even more
borked to me.  AFAICS in the fuse case posix_fadvise effectively
turns into a blocking read. :(

On the bright side, the Linux read-ahead code handles jumps between
two streams much better than expected.

So I won't push this patch anymore for now.
I think I'll ask linux-kernel if it really is expected to block with
fuse.
I'll try if increasing the Linux read-ahead size from default will
help remove the occasional stuttering I'm seeing (and I really
should check if this affects only the badly muxed files).
Maybe I'll have a look at getting -cache to work with multiple
streams...

-- 
Tobias						PGP: http://8ef7ddba.uguu.de



More information about the MPlayer-dev-eng mailing list