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

Tobias Diedrich ranma at tdiedrich.de
Wed Nov 11 16:06:47 CET 2009


Tobias Diedrich wrote:
> 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. :(

Case in point (Nail on the coffin):
strace of mplayer of mp3 on sshfs with about 8KB/s of upstream on
the server side:
[...]
5345  00:00:17.334209 open("mnt/Chitchana Yukitsukai Sugar - Sugar Baby Love (Exciting Cute Version).mp3", O_RDONLY|O_LARGEFILE) = 3
5345  00:00:18.011383 _llseek(3, 0, [3544379], SEEK_END) = 0
5345  00:00:18.011626 _llseek(3, 0, [0], SEEK_SET) = 0
5345  00:00:18.012393 fadvise64_64(3, 0, 1048576, POSIX_FADV_WILLNEED) = 0
5345  00:01:02.438097 write(1, "[file] File size is 3544379 byte"..., 34) = 34
[...]
40 effing seconds!

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



More information about the MPlayer-dev-eng mailing list