4 ms·
NFSv4 (not NFSv3 or earlier) is the most efficient network FS protocol (beats SMB in all my testing), but I frequently access work machines over VPN and can't u
by FullyFunctional 4y ago
NFSv4 (not NFSv3 or earlier) is the most efficient network FS protocol (beats SMB in all my testing), but I frequently access work machines over VPN and can't use NFS because of many reasons in which case SSHFS is very convenient.
ADD: Some might not be aware that NFSv4 is a MAJOR change from the earlier versions and has many radical changes, including: time-expiring lease-based coherency, bundled requests (do much more in each NFSv4 network packet), locking built-in to the protocol. Don't don't base your assumptions of NFS on NFSv3.
Some on this thread suggests Syncthing, scp, rsync, etc, but this not really the same.
When the file system is enormous and you need to commit your changes back - it would be impractical to sync everything (many TiB of data) and a pain to try to remember which things changed.
The situation on macOS has been a bit sad; Mac Homebrew refuse to install sshfs as Mac FUSE is not open source (because the author got fed up with commercial abuse of his work).
I sympathize, but that still leaves me in limbo.
Ideally, Apple should just include a FUSE like facility in macOS as it's so useful.
- FullyFunctional 4y agoOh wow, inspired by the stunnel above I just successfully used $ ssh -Nf -L2049:my-nas:2049 my-gw $ sudo mount -t nfs -o vers=4 localhost:/mnt/somewhere/username /home to mount my home (5,000 miles from where I currently sit) over ssh (over zerotier) without needing SSHFS. I'm going to use this going forward.
- maccam94 4y agoBeware, you may need to do a significant amount of sysctl tuning/mount option tweaking to get fast NFS performance over high latency networks.
- FullyFunctional 4y agoThanks, got pointers? It already works very well (seat-of-the-pants feels comparable to or better than my sshfs recollection); I managed to build Rust projects over it (with target on local FS). Googling around suggest bumping the TCP transfer window but I don't see that as option in macOS's man mount_nfs, or any other useful option for that matter.