PVR via NFS and device performance test

Support for C series TVs that all user could ask. Please do not ask a questions at other forums.

User avatar
beatfreak
SamyGO Project Donor
Posts: 597
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

PVR via NFS and device performance test

Post 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 ;)
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS // >> decommissioned due to tuner death
//UE46F8090 @ T-FXPDEUC 1136 // rooted by new Widget // root starting with empty usb drive
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: PVR via NFS and device performance test

Post by juusso »

Don`t ask, just share your experience here :)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
User avatar
greenhorn
SamyGO Project Donor
Posts: 701
Joined: Wed Feb 15, 2012 3:05 pm
Location: Eastern Europe

Re: PVR via NFS and device performance test

Post by greenhorn »

yes, please...
TV: UE40F7000 - T-FXPDEUC-1115.0 - SamyGO Extensions on F series
TV: UE55ES7000S - T-ECPDEUC-2003.4 - SamyGO tool Right from USB - no develop account is needed
TV: UE40C6710 - T-VALDEUC 3011 - Hacking TV over Hotel mode (C650 T-VALDEUC-3009.2)
BD-Player: BD-E6100 - B-FIRBPEWWC 1063.3 - rooted, no more Cin@vi@
NAS: CIFS: MAG250 NFS: Playon!HD
User avatar
beatfreak
SamyGO Project Donor
Posts: 597
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: PVR via NFS and device performance test

Post 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
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS // >> decommissioned due to tuner death
//UE46F8090 @ T-FXPDEUC 1136 // rooted by new Widget // root starting with empty usb drive
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
coyotee
Posts: 15
Joined: Wed Nov 30, 2011 6:04 am

Re: PVR via NFS and device performance test

Post by coyotee »

Hello! Can someon please help me how to set up NFS share on my C650. How to start, share folder etc....
User avatar
greenhorn
SamyGO Project Donor
Posts: 701
Joined: Wed Feb 15, 2012 3:05 pm
Location: Eastern Europe

Re: PVR via NFS and device performance test

Post 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)?
TV: UE40F7000 - T-FXPDEUC-1115.0 - SamyGO Extensions on F series
TV: UE55ES7000S - T-ECPDEUC-2003.4 - SamyGO tool Right from USB - no develop account is needed
TV: UE40C6710 - T-VALDEUC 3011 - Hacking TV over Hotel mode (C650 T-VALDEUC-3009.2)
BD-Player: BD-E6100 - B-FIRBPEWWC 1063.3 - rooted, no more Cin@vi@
NAS: CIFS: MAG250 NFS: Playon!HD
coyotee
Posts: 15
Joined: Wed Nov 30, 2011 6:04 am

Re: PVR via NFS and device performance test

Post 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....
User avatar
greenhorn
SamyGO Project Donor
Posts: 701
Joined: Wed Feb 15, 2012 3:05 pm
Location: Eastern Europe

Re: PVR via NFS and device performance test

Post 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
TV: UE40F7000 - T-FXPDEUC-1115.0 - SamyGO Extensions on F series
TV: UE55ES7000S - T-ECPDEUC-2003.4 - SamyGO tool Right from USB - no develop account is needed
TV: UE40C6710 - T-VALDEUC 3011 - Hacking TV over Hotel mode (C650 T-VALDEUC-3009.2)
BD-Player: BD-E6100 - B-FIRBPEWWC 1063.3 - rooted, no more Cin@vi@
NAS: CIFS: MAG250 NFS: Playon!HD
xinvox

Re: PVR via NFS and device performance test

Post 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
Cichas
Posts: 11
Joined: Tue May 08, 2012 12:45 am
Location: Czech Republic

Re: PVR via NFS and device performance test

Post 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.

Post Reply

Return to “[C] Support”