manio / vdr-plugin-dvbapi

VDR dvbapi plugin for use with OSCam
http://www.streamboard.tv/wbb2/thread.php?threadid=40060
GNU General Public License v2.0
57 stars 25 forks source link

High CPU-Load when record a view HD-Streams #43

Closed MegaV0lt closed 10 years ago

MegaV0lt commented 10 years ago

I set up 2.1.4 and had a viuew recordings in hd. Then i got vdsb and i was lloking at the log. there is many device buffer overflows and htop shows 100% of vdr cpu usage. short log: https://dl.dropboxusercontent.com/u/1490505/VDR/G2V_V4/info.txt Full package with more informations: https://dl.dropboxusercontent.com/u/1490505/VDR/G2V_V4/VDSB_1391022845.tar.xz I was using dvbapi 2.0 latest git with libdvbcsa enabled.

imperia777 commented 10 years ago

its the same. :(

manio commented 10 years ago

oh ;( ok - time to sleep... thx

imperia777 commented 10 years ago

ok. bb

MegaV0lt commented 10 years ago

My tests with the last commit and vdr 2.1.4 are fairly good. I made 8 hd recordings and got no errors and cpu was ~50%. Plugin is now performing good enought ;)

My cpu is a amd 48503 (2 x 2,5 GHz) and running on 64-Bit Gen2VDR (Gentoo)

manio commented 10 years ago

@imperia777 Please send me an e-mail

manio commented 10 years ago

@MegaV0lt Thanks, at least your case is done ;)

imperia777 commented 10 years ago

Hello guys, @MegaV0lt Unless its some CPU related issue, when we fix it you will be able to do 16 hd recordings :) @manio i've sent you an email on skyboo.net

manio commented 10 years ago

@imperia777 And I replied :)

3PO commented 10 years ago

just for understanding.....

i use vdr-2.1.4 and dvbapy directly from master branch, without any patch and i do not have any abnormal cpuload.

http://imageshack.com/a/img198/4621/be4z.png

for what are the patches good for and do i need this patches?

manio commented 10 years ago

@3PO Do not use this patches - it was only to detect where is the problem. It occurs only on this specific configuration (USB TBS 5922 DVB-S2). It may be even a driver problem - I am still investigating. Just don't bother :) If there will be a fix, it will finally land in the master.

manio commented 10 years ago

For the @imperia777 case: We have found out that the TBS 5922 drivers are crappy. The poll() function doesn't works properly, causing to raise cpu usage. It has to be fixed in drivers, but as a workaround (if anyone has similar problem) @imperia777 is using the following patch in VDR 2.1.4: http://pastebin.com/QsCNSLNR @imperia777 Thank you very much for ssh access - I couldn't find the problem without ability to debug on your hardware.

About the main @MegaV0lt issue problem with cpu usage - it is now fixed in aa5d72fd9c

Thank you all involved. Overall - closing this issue.