The "slow" with sshfs is not so much to do with throughput (copying a single large file) than it is to do with the latency and frequency of file operations (listing directories, getting attributes, etc.). The Finder does these operations *a lot*. So do many other Mac OS X applications. The underlying SFTP that sshfs uses was *not* written for interactive file systems. Therefore, the slow factor is much worse as compared to AFP, SMB, and the like. This is just a fact of life: when you use sshfs, you aren't putting any server component on the remote machine (unlike AFP, SMB, and the like). So, it comes at a cost. As I said before, this cost is higher on Mac OS X because higher level file APIs in Mac OS X are considerably chattier than the lower layers.
One way to deal with this in the file system is to use aggressive and intelligent caching. Even the caching is at many levels: within the kernel and within the user-space file system. The 'noreadahead' and 'nolocalcaches' options TURN OFF several types of caching at the kernel level. Regardless of what you might have experienced in your use case, you don't/can't make sshfs "faster" by using these options. You can make it slower though. Amit On Apr 2, 3:52 am, Jej <[EMAIL PROTECTED]> wrote: > Hi, > > I am quite newbie to Mac Os and the first thing I installed was > macfuse! (too nostalgic of the kio kde layer...) In fact I was very > disappointed to see that the finder browsing get really slow on a > sshfs drive. As this does not append when browsing in non apple native > apps (jEdit or shell), I suspected some finder issues and not the > sshfs or bandwidth themself... I did find any thread on that, but > maybe that's because I miss some keywords in this new apple world ;) > > Here are the options I used to get it working like a charm. Probably > the lonely needed is noappledouble but I noticed some improvements > with the others. > > sshfs -o no_readahead,noappledouble,nolocalcaches [EMAIL PROTECTED]:. /mount/ > point > > Just add "-o no_readahead,noappledouble,nolocalcaches" in the extra > options field if you use MacFusion. Maybe this should be default > options. > > Hope it helps, > Jej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "macfuse-devel" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/macfuse-devel?hl=en -~----------~----~----~----~------~----~------~--~---
