Page 1 of 2

PVR via NFS and device performance test

Posted: Thu Nov 08, 2012 1:24 pm
by beatfreak
Yesterday i played around a bit with my nfs mount settings for the PVR share and now TV even says OK at performance test.
(Hanewin NFS-Server @ W7)
If anyone wants to know how please reply here ;)

Re: PVR via NFS and device performance test

Posted: Thu Nov 08, 2012 2:05 pm
by juusso
Don`t ask, just share your experience here :)

Re: PVR via NFS and device performance test

Posted: Thu Nov 08, 2012 2:05 pm
by greenhorn
yes, please...

Re: PVR via NFS and device performance test

Posted: Thu Nov 08, 2012 7:07 pm
by beatfreak
ok, here we go...

i think the reason why the test failed in the past wasn't the overall transfer-rate but the slowdowns... so the goal is a constant stream not a very high throughput (i did a test record with TNT-Serie HD and needed about 15Mbit/s aka ~2MByte/s and during testing i reached 9MByte/s)
to trace this i opened TaskManager on my Server PC, in general you will need some kind of network monitor with a throughput graph...

*first we disable nfsmount and record_to_nwshare scripts and reboot tv
*ssh to tv and create a mountpoint for testing

Code: Select all

# md /tmp/mnt
then we only have to repeat the test procedure and watch our network graph / test results
it goes like
*mount the nfs share with test settings
*check if mount has been done with the specified parameter
*copy over / write some test-files
*unmount again to be ready to remount with different settings

Code: Select all

# /bin/busybox mount -t nfs -o soft,udp,async,nolock,rsize=32768,wsize=8192 192.168.1.4:/nfsshare /tmp/mnt
# /bin/busybox mount
(...)
192.168.1.4:/nfsshare on /tmp/mnt type nfs (rw,vers=3,rsize=32768,wsize=8192,soft,nointr,nolock,proto=udp,timeo=7,retrans=3,sec=sys,addr=192.168.1.4)
# dd if=/dev/zero of=/tmp/mnt/ddfile bs=1000 count=512000
512000+0 records in
512000+0 records out
512000000 bytes (512 MB) copied, 58.0756 s, 8.8 MB/s
# /bin/busybox umount /tmp/mnt
as you may notice the mount has been made without the async option, undesirable but no disaster...

now play a bit with rsize and wsize (for reading and writing direction)
start with 1024 and then go on doubling the values (1024, 2048, 4096, 8192, 16384, 32768)
stop when the network utilization doesn't increase from test to test

you may also test different filesizes (up to 2GB perhaps, its multiplied of bs for blocksize and count)

also switch between tcp and udp...

above you see the settings i ended up with

Re: PVR via NFS and device performance test

Posted: Mon Nov 12, 2012 10:25 am
by coyotee
Hello! Can someon please help me how to set up NFS share on my C650. How to start, share folder etc....

Re: PVR via NFS and device performance test

Posted: Mon Nov 12, 2012 12:41 pm
by greenhorn
You can start NFS client on your C650 if you have installed Samygo Extensions pack. You need NFS server. What is your nfs server (windows/linux)?

Re: PVR via NFS and device performance test

Posted: Fri Nov 23, 2012 6:33 am
by coyotee
I use linux, and I managed to make NFS share, Now I am trying to set up PVR recording and till now, I dont know exactly how to do it....

Re: PVR via NFS and device performance test

Posted: Fri Nov 23, 2012 9:33 am
by greenhorn
Is your TV mounting your NFS linux server?
Can you show your exports on the linux server?
Try this:
showmount -e IP_linux_server

Re: PVR via NFS and device performance test

Posted: Sat Nov 24, 2012 10:59 am
by xinvox
Hello, I am after several attempts trying to record for nfs, I still have to get it, I'm trying to do on a synology nas, nfs shared folders work properly I see all shared resources on the server and mounted me perfectly folders the tv, but when I record says this device is not suitable for recording, that failure can not be, anyone can help me, thank you very much

Re: PVR via NFS and device performance test

Posted: Sun Nov 25, 2012 12:49 am
by Cichas
xinvox wrote:Hello, I am after several attempts trying to record for nfs, I still have to get it, I'm trying to do on a synology nas, nfs shared folders work properly I see all shared resources on the server and mounted me perfectly folders the tv, but when I record says this device is not suitable for recording, that failure can not be, anyone can help me, thank you very much
Two possibilities: your share is to slow or you don't know that Samsung TV is able to record only to XFS filesystem. The second issue can be overcome by something like following. Telnet/ssh to your TV and paste following code (just modify NFSRECORDINGDIR variable and maybe SamyGO_USB also).

Code: Select all

#Adjust following variable(s) to match your environment
NFSRECORDINGDIR="10.0.0.2:/TV_RECORDINGS"
SamyGO_USB="/dtv/usb/sda1"
FAKE_RECORDING_USB="/dtv/usb/sdb"


mkdir -p /tmp/xfs
mount -t nfs -o tcp,soft,nolock $NFSRECORDINGDIR /tmp/xfs
if [ ! -e /tmp/xfs/pvrimage ]; then 
  mkfs.xfs -f -d file,name=/tmp/xfs/pvrimage,size=1536m;
fi
insmod $SamyGO_USB/SamyGO/lib/modules/2.6.24_SELP.4.3.x-Cortex-A8/kernel/drivers/usb/gadget/dummy_hcd.ko
insmod $SamyGO_USB/SamyGO/lib/modules/2.6.24_SELP.4.3.x-Cortex-A8/kernel/drivers/usb/gadget/g_file_storage.ko file=/tmp/xfs/pvrimage
sleep 6
mount -o bind /tmp/xfs $FAKE_RECORDING_USB
if [ ! -e $FAKE_RECORDING_USB/CONTENTS/.PVRPfmChkLog ]; then
  mkdir -p $FAKE_RECORDING_USB/CONTENTS
  echo -n 1 >$FAKE_RECORDING_USB/CONTENTS/.PVRPfmChkLog
fi

PS: This is quick hack. You will waste 1,5G space of your NFS share, script have no safe checking of /sys/block/sdb/device/model etc. etc.