Comments (6)
This issue is recurrent. With all versions in different environments. When copying files, usually larger than 100MB, the copy operation hangs, and the only way to recover is killing the sshfs process. The drive becomes unresponsive during the hanging copy, too.
Is there a way to debug what is causing the hang?
from sshfs-win.
Try increasing the ThreadCount
for your file system. It is likely that the file system is getting flooded with requests and does not have enough threads to deal with all of them timely.
The option is -o ThreadCount=N
where N
is the number of threads. The default is the number of cores in your machine (with a minimum of 2). So if you have 2 cores on your machine try running it with -o ThreadCount=4
or -o ThreadCount=8
. (More threads should not harm performance, because of how WinFsp tells Windows to schedule threads, but I would not go over 100.)
BTW, for your scenario of transferring very large files you may also want to consider using the -o FileInfoTimeout
and -o DirInfoTimeout
options. Like so:
-o FileInfoTimeout=-1 # enable file caching
-o DirInfoTimeout=1000 # but keep dir caching at 1 sec to pick up remote changes
Be aware of cache coherency issues if you do use the last 2 options. For example, if a file is updated remotely, your local client may not "pick up" the changes until the file is closed. So I would not use this for an SSHFS server that has files updated by multiple clients.
from sshfs-win.
None of suggested options solved the issue. When running with debug flag -d the copy does not hang but it is as slow as 1 MB/s. Removing the -d, the copy speed is 20 MB/s but hangs in the middle of the operation. Any idea how to debug what is causing the hang?. The file size is 1GB. I am working with the latest beta versions.
from sshfs-win.
This may be an SSHFS networking issue and unrelated to its file system layer where my expertise lies (SSHFS-Win simply packages libufse/sshfs and the required patches are now minimal as all necessary changes have been incorporated into the upstream project).
If you are able to debug C code, I would start with the vanilla libfuse/sshfs and build it on Cygwin (this is now possible with latest WinFsp).
from sshfs-win.
from sshfs-win.
Try debugging on the SSH server. IIRC OpenSSH has at least 3 debugging levels.
from sshfs-win.
Related Issues (20)
- How can i change a sshfs mapped drive letter? HOT 1
- Problem with SSHFS to Couchdrop HOT 1
- Can not delete drive with net use <drive>: /d HOT 1
- Slow autocompletion in cygwin bash / enabling directory ls caching
- Errors running executables: 0x800704b3 and ShellExecuteExfailed; code1203
- Setup Instructions for noobs / SSH for dummies
- Offline files do not work
- using ssh private key to create connection doesnt happen by default HOT 1
- Can't connect to host HOT 1
- Unable to connect, unable to stop the attempt to connect, and unable to edit/modify connection params HOT 1
- How to prevent a connection timeout (solution for reference) HOT 4
- Impossible to connect - Connection reset by peer HOT 1
- The token '&&' is not a valid statement separator in this version.
- "sshfs" version is too old. Please update to at least version 3.5.2
- Can't open fonts under Windows 10
- Why are the symbols in `fuse3/fuse.h` prefixed with fuse3? HOT 1
- how to specify `ssh_command` in order to prevent it from reading ssh config?
- cannot track login/logout activities of ssh-win on server side
- Cannot Mount with Windows. HOT 1
- SSHFS-Win does not work correctly with comments in the ssh-config file (Windows 11)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sshfs-win.