GithubHelp home page GithubHelp logo

Comments (6)

sganis avatar sganis commented on June 10, 2024

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.

billziss-gh avatar billziss-gh commented on June 10, 2024

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.

sganis avatar sganis commented on June 10, 2024

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.

billziss-gh avatar billziss-gh commented on June 10, 2024

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.

sganis avatar sganis commented on June 10, 2024

from sshfs-win.

pavelxkrejci avatar pavelxkrejci commented on June 10, 2024

Try debugging on the SSH server. IIRC OpenSSH has at least 3 debugging levels.

from sshfs-win.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.