-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for streaming large files with lookahead #104
Comments
@lars18th thanks for your suggestion. In general both operating systems and file systems implement parts of the read-ahead policy. On Windows the read-ahead policy is implemented in the operating system and its exact mechanics are not fully documented -- however it appears that in modern Windows OS'es the read-ahead policy is adapted based on how the file is used. The file system can influence the operating system read-ahead policy by using the kernel mode The file system can also has its own read-ahead policy that is separate from the operating system. AFAIK the upstream SSHFS project (on which SSHFS-Win is based on) does not implement read-ahead. You may also want to open an issue there asking for read-ahead to be implemented. |
The missing readahead causes really severe throughput problems (pretty much unusable) for me with media playback. I'm trying to play from a remote sshfs mount, ~30mbps throughput and ~55ms ping. When I configure mpv to use a 2MB buffer it will do bigger reads and can go up to ~2600 KiB/s which is a good result, but the increased buffed size introduces a lot of lag when seeking in the file. Playing several files at the same time is not working; one link will starve the other link of bandwidth, even if their combined bitrate would easily fit the bandwidth budget. I originally reported this problem to mpv because they recently changed their cache implementation (see mpv-player/mpv#6802), but I think this is better fixed in sshfs(-win) since almost all applications are affected. |
@Marco01809 @lars18th please add your votes to winfsp/winfsp#243. This increases the chances that I will look into this enhancement sooner rather than later :) |
Hi,
The current cache and lookahead functionality is good. However, for large files in streaming it can be improved. Please, consider this:
You can check this comparing a COPY of a remote file with a PLAY of the same file. In the first case, your link will saturate, but in the second case the link is used, more or less, at the bitrate speed of the file. And this generates pauses with large network delays.
So my suggestion is to provide the option to:
I hope you agree to consider it.
Regards.
The text was updated successfully, but these errors were encountered: