[mythtv-users] High X server load. Why?

Mark markhsa at shaw.ca
Fri Jan 9 02:27:31 UTC 2009


Paulin wrote:
>
>
> On Thu, Jan 8, 2009 at 6:09 PM, Dean Harding 
> <dean.harding at dload.com.au <mailto:dean.harding at dload.com.au>> wrote:
>
>     > Also, I am seeing 54% load on one CPU when mythfrontend is just
>     sitting
>     > on the recordings page.  Nothing playing.  That seems excessive?
>      3ghz
>     cpu.
>
>     Do you have the video preview running? That eats up a bit of CPU IIRC.
>
>     Dean.
>
>
>     _______________________________________________
>     mythtv-users mailing list
>     mythtv-users at mythtv.org <mailto:mythtv-users at mythtv.org>
>     http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
> I had all of these problems and just got my myth frontend working 
> about 1 hour ago...It's going through the Wife test right now.
>
> I have a 2.2 Dual core with an NVidia 8400 GS DVI hookup to a 1080i 
> TV.  And the NVidia 180.16 driver.
>
> First off 0.21 will not work.  You have to compile it yourself.    It 
> took me a little bit but once I got the compiling figured out I 
> started tweeking.  The first few compiles I did I saw X and Myth FE 
> taking ov er the CPU both 57/43%...So CPU was high always....Even when 
> not playing video.
>
> First I started with Mythbuntu 8.10 which includes Myth 0.21.   Got 
> that working (db setup and all).  Then I removed everything myth 
> (plugins, thems, web, frontend, backend)   I left the DB, and 
> Mythbuntu scripts (init.d type stuff).  So the /usr/lib, 
> /usr/share/mythtv, /usr/bin didn't have anything myth (excluding 
> mythbuntu items) in them. 
>
> Next I started playing around with the compiler using SVN Trunk 
> 19597.  I compile write on this box.   Here are the settings I 
> eventually ended up using.
>
> MythTV
> ./configure --prefix=/usr --enable-proc-opt --disable-joystick-menu 
> --disable-firewire --disable-hdhomerun --disable-xvmcw 
> --enable-xvmc-opengl --enable-vdpau  --disable-directfb 
> --enable-opengl-vsync
>
> MythPlugins
> ./configure --prefix=/usr --enable-opengl --enable-mytharchive 
> --disable-mythbrowser --disable-mythcontrols --disable-mythflix 
> --enable-mythgallery --disable-mythgame --enable-mythmusic 
> --disable-mythnews --disable-mythphone --enable-mythvideo 
> --disable-mythweather --disable-mythzoneminder --disable-mythmovies
>
> Now I then used
>     sudo checkinstall
> to create .deb packages (using mythbuntu 8.10 as my base).  I then use
>      dpkg -i <package>
> to install them.
>
> Then started testing...  First you have to setup the playback profile 
> to use the VDPAU settings.  Next I try watching a recording.  Still 
> stuttered but my 100% CPU dropped to 9% for the frontend and 1% for 
> X.  So looks good but still stuttering.  Next I moved on to looking at 
> the logs....I ran with
>
> Now I started working on the interlacers.
>
> frontend -v playback >& /var/log/mythtv/frontend.log
>
> So I saw the deinterlacer wasn't working properly... So I kept 
> tweaking that setting.  Finally I settled on Advance (2x, HW) because 
> of something I read on the wiki...  (keep reading though before 
> jumping on this one).
>
> Still stuttered but then I noticed in the log a lot of audio issues 
> and buffer overrunds.  That led me down an audio path.  So I worked 
> with that for a days trying to et digiital playback.  Never got that 
> to work and just set it to ALSA;hw:0,0
>
> So then I went back and worked on playback.   I end up setting the 
> deinterlacer to One Field (1x, Hw) and None for the secondary....
>
> Now everything is working perfectly.
>
> I hope that this helps and sorry it was so long.
>
> steve
> ------------------------------------------------------------------------
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>   
Even with no preview running, the load is 90+%
Now with VDPAU, mythfrontend is really low, and X is STILL really high.
Ideas?

29611 root      20   0  339m  25m 9.8m R 98.1  1.3   5:24.28 /usr/bin/X 
-br -nol
30092 mythtv    20   0  581m 350m  48m S  2.7 17.3   2:00.35 mythfrontend




More information about the mythtv-users mailing list