Page 2 of 2
Re: PVR via NFS and device performance test
Posted: Sun Nov 25, 2012 1:25 pm
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
Re: PVR via NFS and device performance test
Posted: Mon Nov 26, 2012 7:58 pm
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
Re: PVR via NFS and device performance test
Posted: Tue Nov 27, 2012 11:59 am
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
Re: PVR via NFS and device performance test
Posted: Wed Nov 28, 2012 8:27 am
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!
Re: PVR via NFS and device performance test
Posted: Wed Nov 28, 2012 1:53 pm
by coyotee
What is the minimum transfere rate for PVR record to work?
Re: PVR via NFS and device performance test
Posted: Wed Nov 28, 2012 5:33 pm
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...