Here’s a set of recommendations to work with NFS on OpenWRT: [OpenWrt Wiki] NFS share configuration As well as another set: [OpenWrt Wiki] Network File System (NFS)
For performance tuning, it recommends that you turn off connection tracking for NFS connections in order to avoid the CPU being quite so much of a bottleneck. A problem here is that some of the instructions don’t even work on the command line:
jtd@Wormhole:~
% sudo iptables -t raw -A INPUT -i br-lan -s 192.168.8.1/24 -p udp --dport 32777:32780 -j CT --notrack
iptables: No chain/target/match by that name.
Running the others appears to succeed, but I’m still getting 2.5 to 3.5 MB/s write to my high-speed SD card.
I also can’t echo to max_block_size:
jtd@Wormhole:/proc/fs/nfsd
% sudo echo 32768 > max_block_size 19-11-16 - 0:00:22
zsh: permission denied: max_block_size
Anyone have any ideas how to flip these switches?