-
Notifications
You must be signed in to change notification settings - Fork 255
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
Performance flags for use over sshfs (Mac) #614
Comments
After lots of searching, I've found that I have been able to increase r/w performance on the raw sshfs connection to 110 MB/s each way, and r/w performance via gocryptfs to 72MB/s write, 110MB/s read. This was achieved by modifying and compiling sshfs 2.10 using instructions here: osxfuse/sshfs#64 There is still the mystery of why gocryptfs is limited to 72MB/s write despite the sshfs connection being capable of 110MB/s. Perhaps there is scope for gocryptfs in the future to use larger write buffers or other means to achieve higher throughput over sshfs? |
The numbers you get look pretty good, but yes, gocryptfs performance over sshfs is limited for two reasons:
|
@rfjakob Thanks for the insight. FYI the performance tests above were from a Mac to a Linux server, with an average ping of 0.70ms. I repeated the experiment to a remote Linux server with an average ping of 87ms, and I achieved an upload speed of 0.36 MB/s and a download speed of 2.20 MB/s via gocryptfs (over SSHFS). Via SSHFS only, I get an upload speed of 1.5MB/s and a download speed of 13.0 MB/s. |
I'm using gocryptfs over sshfs between two linux cloud servers. via only SSHFS: 83.7 MB/s via gocryptfs v1.8: 14.5 MB/s via gocryptfs v2.3: 5.4 MB/s @rfjakob thanks for this awesome piece of software! I suspect my speeds are below expectation even considering the above explanation. Any reason my speed deteriorates with the newer version? Is there anything I can try to improve throughput?
|
I'm mounting a cipher directory over a 1GbE wired LAN via sshfs, and then mounting that via gocryptfs:
If I copy a 10GB file to the
/Volumes/cipher
directory (i.e. not via gocryptfs), it copies at 76.4 MB/s.If I copy a 10GB file to the
/Volumes/plain
directory (i.e. via gocryptfs), it copies at 33.8 MB/s.gocryptfs -speed
reportsAES-GCM-256-Go 3963.06 MB/s
(usinggocryptfs v2.2.1 without_openssl
)Can anyone recommend any sshfs or other flags that might help increase performance please?
The text was updated successfully, but these errors were encountered: