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.

xinvox

Re: PVR via NFS and device performance test

Post by xinvox »

Hi, thanks for your help, do not know much about linux, you say that copy those telnet commands, I do not understand is that I need to change, for example my tv ip 192.168.1.21, 192.168.1.10 nfs server, the server would be the nfsrecording and would also have to put the shared folder for recordings on the server?

Code: Select all

ip tv= 192.168.1.21 
ip nfs server  = 192.168.1.10
shared folder for recordings = / volume1/Grabaciones


mkdir -p /tmp/xfs
mount -t nfs -o tcp,soft,nolock $192.168.1.10:/volume1/Grabaciones /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

so would be nice?, sorry for the English, Greetings
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 »

1. no thread hijacking please

2. the script posted by Cichas should go into a textfile on your pendrive for example /dtv/usb/sda1/SamyGO/nfsrec.sh

you only modify the first 3 lines (the stuff after the # is just a comment and doesn't count)
there you set the variable
NFSRECORDINGDIR="192.168.1.10:/volume1/Grabaciones"
and whenever a command in the script needs the path it calls it via $NFSRECORDINGDIR so you only have to insert your settings once, not everytime the info is needed...

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

btw.
if this stuff is too hard for you it might be better to simply follow the instructions here: viewtopic.php?f=12&t=1332
before doing a step check if the files going to be created already exist in your storage.
and of course he refers to the scripts with remi71 in the filename


a lot of people were spending lots of hours to get SamyGO running and expanding, so i think for us, the users, it would be the least contribution to invest some time only reading and thinking to prevent them from being bothered with problems that already have been solved elsewhere
//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.
xinvox

Re: PVR via NFS and device performance test

Post by xinvox »

Hello, I tried that and it does not work, I tried several flash drives and hard drives and nothing, not get it to work the recording by nfs, so now I have the stick set, and not to try, because linux I have little idea, greetings
coyotee
Posts: 15
Joined: Wed Nov 30, 2011 6:04 am

Re: PVR via NFS and device performance test

Post by coyotee »

Hello!.The thing is that my folder TV_snemanje is not on XFS partition. Is this the reason tha I can not record? Second:
My NFS server is running on Asus wl-500gp v2 with DD-WRT firmware. Is this also the problem with performance? How can I measure the speed for recording?
This is my samygo.log file
19700101-000028 Start Record to Network Share script (80_80_record_to_nwshare.init)
19700101-000028 Check if server 192.168.1.1 is reachable and NFS service available... OK
19700101-000028 Search for mount point of pvrimage...
19700101-000054 pvrimage mount point is /dtv/usb/sdc
19700101-000054 Mount of 192.168.1.1:/opt/TV_SNEMANJE on /dtv/usb/sdc... OK
19700101-000054 Creating directory /dtv/usb/sdc/CONTENTS for the first time... OK
19700101-000054 Creating .PVRPfmChkLog file... OK
19700101-000054 PVR on server 192.168.1.1 is now ready in localpath /dtv/usb/sdc
19700101-000054 End Record to Network Share script (80_80_record_to_nwshare.init)

Thanks!
coyotee
Posts: 15
Joined: Wed Nov 30, 2011 6:04 am

Re: PVR via NFS and device performance test

Post by coyotee »

What is the minimum transfere rate for PVR record to work?
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 »

reading helps ;)
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)
simply try to get the highest rate possible with constant dataflow
anything above 15Mbit/s should be enough for recording regardless of wether the test fails or not


for testing you dont need xfs partition, for recording the filesystem will be faked as pvrimage is a filesystem image with xfs and your nfs-share is then mounted in your virtual xfs drive so tv sees xfs disk and recordings are saved on nfs server...
//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.

Post Reply

Return to “[C] Support”