Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm newer in using sshfs.

I realize that when I edit a file in sshfs mount point, the save command is very slow.

I did put the debug option "-o debug", and this erros are showed at save command:

LOOKUP /teste2
getattr /teste2
   NODEID: 2
   unique: 126, success, outsize: 144
unique: 127, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld53.tmp
getattr /.subld53.tmp
   unique: 127, error: -2 (No such file or directory), outsize: 16
unique: 128, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld53.tmp 0100666 umask=0000
   unique: 128, error: -13 (Permission denied), outsize: 16
unique: 129, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld54.tmp
getattr /.subld54.tmp
   unique: 129, error: -2 (No such file or directory), outsize: 16
unique: 130, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld54.tmp 0100666 umask=0000
   unique: 130, error: -13 (Permission denied), outsize: 16
unique: 131, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld55.tmp
getattr /.subld55.tmp
   unique: 131, error: -2 (No such file or directory), outsize: 16
unique: 132, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld55.tmp 0100666 umask=0000
   unique: 132, error: -13 (Permission denied), outsize: 16
unique: 133, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld56.tmp
getattr /.subld56.tmp
   unique: 133, error: -2 (No such file or directory), outsize: 16
unique: 134, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld56.tmp 0100666 umask=0000
   unique: 134, error: -13 (Permission denied), outsize: 16
unique: 135, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld57.tmp
getattr /.subld57.tmp
   unique: 135, error: -2 (No such file or directory), outsize: 16
unique: 136, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld57.tmp 0100666 umask=0000
   unique: 136, error: -13 (Permission denied), outsize: 16
unique: 137, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld58.tmp
getattr /.subld58.tmp
   unique: 137, error: -2 (No such file or directory), outsize: 16
unique: 138, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld58.tmp 0100666 umask=0000
   unique: 138, error: -13 (Permission denied), outsize: 16
unique: 139, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld59.tmp
getattr /.subld59.tmp
   unique: 139, error: -2 (No such file or directory), outsize: 16
unique: 140, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld59.tmp 0100666 umask=0000
   unique: 140, error: -13 (Permission denied), outsize: 16
unique: 141, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld5a.tmp
getattr /.subld5a.tmp
   unique: 141, error: -2 (No such file or directory), outsize: 16
unique: 142, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld5a.tmp 0100666 umask=0000
   unique: 142, error: -13 (Permission denied), outsize: 16
unique: 143, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld5b.tmp
getattr /.subld5b.tmp
   unique: 143, error: -2 (No such file or directory), outsize: 16
unique: 144, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld5b.tmp 0100666 umask=0000
   unique: 144, error: -13 (Permission denied), outsize: 16
unique: 145, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld5c.tmp
getattr /.subld5c.tmp
   unique: 145, error: -2 (No such file or directory), outsize: 16
unique: 146, opcode: CREATE (35), nodeid: 1, insize: 69, pid: 11484
create flags: 0x80c1 /.subld5c.tmp 0100666 umask=0000
   unique: 146, error: -13 (Permission denied), outsize: 16
unique: 147, opcode: LOOKUP (1), nodeid: 1, insize: 53, pid: 11484
LOOKUP /.subld5d.tmp

And goes on, until save the file. These errors occurs by 30 seconds, then the file is saved.

I enabled many options to try fix it, but don't works. Only stay it more faster when enable caches. 30 sec was the most faster that I can.

I use:

sshfs -o debug
,umask=022
,auto_cache
,big_writes
,noatime
,sshfs_sync
,cache=yes
,reconnect
,follow_symlinks
,allow_other
,compression=yes
,async_read
,auto_unmount
,workaround=all
,cache_stat_timeout=600
,Ciphers=arcfour

Can someone help me?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.