LinHES Forums
http://forum.linhes.org/

Lower x.org cpu load dramatically in R5E50 when watching HD
http://forum.linhes.org/viewtopic.php?f=3&t=13550
Page 1 of 3

Author:  MrFahrenheit [ Mon Jan 15, 2007 7:39 pm ]
Post subject:  Lower x.org cpu load dramatically in R5E50 when watching HD

The cpu load from x.org for me was above 50% when watching high def channels. Since mythfrontend was using the other 50%, I was getting audio stuttering and other problems...

This worked for me on an nVidia 6200:

First, upgrade to the latest nVidia driver using instructions from here:
http://mysettopbox.tv/phpBB2/viewtopic. ... highlight=
(Note, read the whole thread first)

Then, edit the /etc/X11/xorg.conf file and add the line
Option "UseEvents" "True"
To the "Device" section.

I got the information from here: http://www.gossamer-threads.com/lists/m ... ts;#242186

Basically, the problem is that the older nVidia driver is doing a busy wait when waiting for v-sync. The new driver uses a different method that's not processor intensive.

Now, when watching HD content, my x.org hovers at around 7% cpu load.

Author:  thornsoft [ Mon Jan 15, 2007 9:27 pm ]
Post subject: 

It sounds great, but that nvidia thread scares the crap out of me!
Is there a way to do it without recompiling against the kernel sources?
And is there a reason that the newer nvidia drivers aren't already in R5E50?
It sure would be nice to have a 7% x.org....

Author:  MrFahrenheit [ Tue Jan 16, 2007 10:20 am ]
Post subject: 

Downloading the kernel source is the only way I found to do it. If you find a faster way, please post it.

I didn't really have a choice though since I couldn't actually watch HD content unless I made this change. This would probably be a case of "if it ain't broke, don't fix it." If you can watch HD content without problems, then why bother trying this?

Author:  ethernut [ Tue Jan 16, 2007 11:16 am ]
Post subject: 

MrFahrenheit, if you don't mind me asking, what deinterlacing method are you using for HD?

Author:  thornsoft [ Tue Jan 16, 2007 1:30 pm ]
Post subject: 

MrFahrenheit wrote:
If you can watch HD content without problems, then why bother trying this?

I have pauses once in a while, especially when recording on all 3 tuners. I'd like to be able to run commflag.
Lower CPU may translate into less heat and noise.
Just a few. But none that make me want to risk having to re-build, and spend a day getting it all running again.

Author:  MrFahrenheit [ Tue Jan 16, 2007 1:58 pm ]
Post subject: 

I found that using Kernel with libmpeg2 currently looks the best to me. All de-interlace methods had performance problems. Even turning de-interlace off, I had the same issue.

Author:  lantz [ Tue Jan 16, 2007 4:28 pm ]
Post subject: 

thornsoft wrote:
It sounds great, but that nvidia thread scares the crap out of me!
Is there a way to do it without recompiling against the kernel sources?
And is there a reason that the newer nvidia drivers aren't already in R5E50?
It sure would be nice to have a 7% x.org....


I did the upgrade and it's really not very hard, even if it looks kinda scary.

Author:  slowtolearn [ Tue Jan 16, 2007 8:21 pm ]
Post subject: 

MrFahrenheit wrote:
I found that using Kernel with libmpeg2 currently looks the best to me. All de-interlace methods had performance problems. Even turning de-interlace off, I had the same issue.

MrFahrenheit, what are your system specs? I need to get back to testing a new frontend (Asus M2NPV-VM, A64 3200+) and I don't believe I've tried that combination yet...

Thanks

Author:  MrFahrenheit [ Tue Jan 16, 2007 9:09 pm ]
Post subject: 

I'm running a slightly modified version of a dragon v1.1. Same Mobo, proc, vid card, ram, soundcard, and tuner card.

Author:  slowtolearn [ Tue Jan 16, 2007 9:30 pm ]
Post subject: 

MrFahrenheit wrote:
I'm running a slightly modified version of a dragon v1.1. Same Mobo, proc, vid card, ram, soundcard, and tuner card.

Many thanks, I will be sure to give kernel/libmpeg2 a try.

Author:  thornsoft [ Wed Jan 24, 2007 7:02 pm ]
Post subject: 

It's an awesome fix - thanks Farenheight!
My xorg is about 10% now, instead of 45.

Author:  williammanda [ Tue Feb 06, 2007 9:53 pm ]
Post subject: 

I'm having the same issue (video and sound stopping and starting every 1- 3 seconds during HDTV). I added the statement to my xorg.conf and Nvidia drivers are 1.0.7184. I cannot see the usage during Mythtv but when I have a browser open to Bloackbuster.com is can see it then and it is running up to 90% when I scroll up / down the page.
PIV 2.8Ghz 1 G ram.
Thanks

Author:  thornsoft [ Wed Feb 07, 2007 9:03 am ]
Post subject: 

williammanda wrote:
I cannot see the usage during Mythtv


Alt+X should open a floating X window, which you should be able to see on top of the playback. Or, hop on another PC and telnet/ssh over to the mythbox.

Author:  lantz [ Wed Feb 07, 2007 12:08 pm ]
Post subject: 

williammanda wrote:
I'm having the same issue (video and sound stopping and starting every 1- 3 seconds during HDTV). I added the statement to my xorg.conf and Nvidia drivers are 1.0.7184. I cannot see the usage during Mythtv but when I have a browser open to Bloackbuster.com is can see it then and it is running up to 90% when I scroll up / down the page.
PIV 2.8Ghz 1 G ram.
Thanks


As I understand, this option only works in conjunction with the 9xxx drivers.

Author:  williammanda [ Wed Feb 07, 2007 1:41 pm ]
Post subject: 

I mis-read the posts for the version (thought the version was less than 1). I will try to upgrade the drivers.
Thanks

Page 1 of 3 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/