Mounting network shares with autofs (alternative to fstab)

H @fzinken,
I suggest indicating in what syntax to add NFS mount options to the /etc/auto.nfs.shares - I had to Google it elsewhere. I tried to filter out the options that may be downgraded in the negotiation but will not limit the performance from the suggestions of @THEM in thread Consistently interrupted playback - #6 by THEM
My suggestion is:

/mnt/TV-F -fstype=nfs,noatime,nolock,local_lock=all,async,rsize=1048576,wsize=1048576 192.168.0.1:/TV-F

  • The rsize and wsize may be downgraded if server does not allow that big, but we mostly deal with streaming big files anyhow, so the bigger the better
  • Locking does not usually happen, but better just disable remote and local alike
  • async should be default, but let’s just try and force it
  • let’s not update atime at all (otherwise it defaults to relatime for me that I know is almost as efficient, but this is the most performant available)

All this and other choices helped me to get very close to the theoretical bandwith of Gigabit Ethernet in Buffering issues - #34 by petersasi. :slight_smile: