libfuse / sshfs

A network filesystem client to connect to SSH servers
GNU General Public License v2.0
5.74k stars 488 forks source link

sshfs is much slower than rclone mount over high-latency connections due to lack of SFTP pipelining #300

Open nh2 opened 2 months ago

nh2 commented 2 months ago

I know that sshfs is not currently actively developed, but writing this down here because so many people have had problems with this topic and it is not properly documented here in the upstream project.

Observation

cating a file over sshfs can be 100x slower over rclone mount with rclone's SFTP backend over high-latency connectinons (servers far away).

For example, on a 200 ms connection, pv < ssh-mount/myfile > /dev/null only prouces 1 MB/s when the connection shows 100 MB/s over TCP (measured with iperf3).

Reason

sshfs does not seem to implement request pipelining, thus is is much slower.