Is there any way to improve sshfs speed on amazon aws?
Asked Answered
U

1

6

My ping to the AWS instance is on the level of 50ms and cat'ing files through the ssh takes way less than second, but when I mount directory using sshfs and open it using SublimeText3/Gedit lags are greater than 10 seconds. 1. Is there anything I could do to reduce those lags? 2. Why it works like that? 3. Are some better tools for remote file editing?

My ssh config:

Host myinstance
  HostName ********
  User ec2-user
  IdentityFile ~/idfile
  Compression no
  Ciphers arcfour
  ServerAliveInterval 15
Uniaxial answered 14/5, 2014 at 11:33 Comment(0)
L
1

As a first step, I'd suggest adding this line to your settings (Preferences -> Settings-User):

"atomic_save": false

and see if that does the trick. My answer to this question has some more details behind why this works, but basically what Sublime is doing with atomic_save enabled is creating new temp files and deleting the original file, then renaming the temp back to the original's name. This leads to a very significant increase in traffic over the connection, and if the server on the other side of the pipe is a little bit laggy anyway, it can really slow down Sublime.

Layer answered 14/5, 2014 at 17:48 Comment(1)
Thank you so much. Your solution + removing GitGutter from ST3 fixed the situation.Uniaxial

© 2022 - 2024 — McMap. All rights reserved.