OpenELEC Testbuilds for RaspberryPi Part 2
I'm not sure if this is a development build issue or not but I'm having some problems with timeouts on my NFS mounted /storage

cmdline.txt
Code:
ip=10.150.213.5::10.150.213.30:255.255.255.224:OpenELEC:eth0:off boot=LABEL=SYSTEM disk=NFS=10.150.213.2:/volume1/openelec console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 ssh

Code:
OpenELEC:~ # mount | grep 10.150.213.2
10.150.213.2:/volume1/openelec on /storage type nfs (rw,noatime,vers=3,rsize=131072,wsize=131072,namlen=255,soft,nolock,proto=tcp,port=2049,timeo=3,retrans=2,sec=sys,local_lock=all,addr=10.150.213.2)

The NFS server is connected to the same switch as the Pi.

The timeouts seem to occur randomly but I can usually reproduce them by transferring a lot of data to/from the NFS mount at the same time:

Code:
OpenELEC:~ # dd if=/dev/zero of=/storage/test.data bs=8M count=512
512+0 records in
512+0 records out
4294967296 bytes (4.0GB) copied, 420.484441 seconds, 9.7MB/s
OpenELEC:~ # dmesg | grep nfs
OpenELEC:~ # cp /storage/test.data /storage/test2.data
cp: write error: Input/output error
OpenELEC:~ # dmesg | grep nfs
[136858.199309] nfs: server 10.150.213.2 not responding, timed out
[136858.207228] nfs: server 10.150.213.2 not responding, timed out
[136858.231235] nfs: server 10.150.213.2 not responding, timed out
[136858.231657] nfs: server 10.150.213.2 not responding, timed out
[136858.231918] nfs: server 10.150.213.2 not responding, timed out
[136858.248969] nfs: server 10.150.213.2 not responding, timed out
[136858.261939] nfs: server 10.150.213.2 not responding, timed out

What I've found is that if I change the rsize and wsize to smaller values, I don't have any problems:
Code:
OpenELEC:~ # mkdir /var/media/test
OpenELEC:~ # mount -o rw,noatime,vers=3,rsize=32768,wsize=32768,soft,nolock,proto=tcp,timeo=3,retrans=2 10.150.213.2:/volume1/openelec /var/media/test
OpenELEC:~ # mount | grep 10.150.213.2
10.150.213.2:/volume1/openelec on /storage type nfs (rw,noatime,vers=3,rsize=131072,wsize=131072,namlen=255,soft,nolock,proto=tcp,port=2049,timeo=3,retrans=2,sec=sys,local_lock=all,addr=10.150.213.2)
10.150.213.2:/volume1/openelec on /var/media/test type nfs (rw,noatime,vers=3,rsize=32768,wsize=32768,namlen=255,soft,nolock,proto=tcp,port=2049,timeo=3,retrans=2,sec=sys,local_lock=all,addr=10.150.213.2)
OpenELEC:~ # dmesg -c >/dev/null
OpenELEC:~ # cp /var/media/test/test.data /var/media/test2.data
OpenELEC:~ # dmesg | grep nfs

Is there a way to change the default wsize and rsize for NFS /storage when it's mounted via cmdline.txt?


Messages In This Thread
RE: OpenELEC Testbuilds for RaspberryPi Part 2 - by markius - 2014-02-02, 16:38
AW: RE: - by DieterLumpen - 2013-07-29, 20:50
include guires switch? - by hpbaxxter - 2013-08-01, 21:46
RE: dual audio?? - by pootler - 2013-08-03, 17:13
Help, watch 3D Film on Non 3D TV - by unix72 - 2013-08-09, 12:39
Remote Controllers - by tfft - 2013-08-14, 09:11
rbej repeatable crash - by RichG - 2013-08-19, 12:43
New Tester - by theneverstill - 2013-10-03, 17:16
[split] missing subtitle stream - by Jönke - 2014-01-08, 21:03
3D Support - by michbeck100 - 2014-01-11, 01:01
No sound on Gotham builds - by URBANsUNITED - 2014-01-13, 15:19
Logout Mark Read Team Forum Stats Members Help
OpenELEC Testbuilds for RaspberryPi Part 223