I have a Synology DS215j NAS attached to a TP-Link TL-WDR4300 router. My home network easily supports up to 80 or 90 mbps, but I only get about 27 mbps (3.2MB/s) in Kodi's internal NFS network mount.
I pretty much always experienced stuttering while playing 1:1 bluray rips streaming from my NAS, and I read that mounting NFS shares over UDP gives you better speeds, very close to the physical limit of the Pi’s 100 mbit port, which is more than enough even for 1:1 bluray rips.
In Kodi/Openelec I create a script file in /storage/.config/system.d/ called 'storage-movies2.mount' in order to mount NFS shares from my Synology. This is my script (192.168.0.106:/volume1/videos is my NAS path):
Code: Select all
[Unit]
Description=movies2 mount test
Requires=network-online.service
After=network-online.service
Before=kodi.service
[Mount]
What=192.168.0.106:/volume1/videos
Where=/storage/movies2
Options=udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3
Type=nfs
[Install]
WantedBy=multi-user.targetOpenelec seems to mount OK, but I'm unable to access that media. For example, if I try to watch a movie, it gets stuck on 'loading'. In the script if I delete the 'UDP' option, I can watch the movie fine, so I think it's an issue related to UDP option.
How can I implement UDP protocol in NFS network shares and get more speed? Is there any wrong in my script?