rsize issue
#1
Hello if have a samll question to the raspberry with openelec (3.14.11) and xbmc (13.1). Raspberry -> Switch -> QnapTS412.

I realized that I have some problems (stuttering) playing mkv with a Bitrate of ~40 Mbps or more (e.x. Birds) over ethernet from my NAS (NFS).

1) I testet the same video from an usb stick and everything was perfect. So it is not a performence issue.

2) I edited the advancedsettings.xml to:

PHP Code:
<advancedsettings>
    <
network>
        <
buffermode>1</buffermode> <!-- Comment: Default is 1 -->
        <
cachemembuffersize>20971520</cachemembuffersize> <!-- Comment: Default is 20971520 bytes or 20 MB -->
        <
readbufferfactor>4.0</readbufferfactor> <!-- Comment: Default is 1.0 -->
    </
network>
</
advancedsettings

Play the same video from my NAS again. At the beginning (when the buffer was full) everything is fine but the the starts again. So I guessed my network speed would be too low.

3) I copied the video from my nas to /dev/null to check the network speed.

PHP Code:
dd if=/storage/mount8/test.file of=/dev/null 

Result: 104857600 bytes (100.0MB) copied, 17.393698 seconds, 5.7MB/s

That seems to be too low.

4) I changed the rsize and some other parameters:

PHP Code:
mount -t nfs 192.168.0.100:/WD20EFRX/_Unsorted /storage/mount8 -o udp,noatime,rsize=32768,
wsize=32768,nolock,nfsvers=

Nothing changed and the video is still stuttering.

So I checked my configuration with mount -v and the result was, that rsize (and wsize) didnt change.

PHP Code:
192.168.0.100:/WD20EFRX/_Unsorted on /storage/mount8 type nfs (rw,noatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,nolock,proto=udp,port=2049,timeo=7,retrans=3,sec=sys,local_lock=all,addr=192.168.0.100

Is there any known problem or did I something wrong? And sorry, I am new to linux etc Confused

greetings and thank you
Reply
#2
Did you unmount the old nfs mount before mounting it with your new parameters?
Reply
#3
yes sure. And if I switch from udp to tcp rsize and wsize change automatic to 32xxx.
Reply
#4
Just tried:
Code:
OpenELEC:~ # mount -t nfs 192.168.4.9:/Public/temp /storage/mnt -o udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3
OpenELEC:~ # mount -v
...
192.168.4.9:/Public/temp on /storage/mnt type nfs (rw,noatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,nolock,proto=udp,port=2049,timeo=7,retrans=3,sec=sys,local_lock=all,addr=192.168.4.9)
So I'd say openelec on Pi does support 32K rsize with udp. I think you need to look at the supported settings on you NAS.
(I'm using windows with hanewin for nfs, and that allows me to specific maximum rsize)
Reply

Logout Mark Read Team Forum Stats Members Help
rsize issue0