Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Graphite theme consuming 100% CPU while idle

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


voidtrance at comcast

Nov 16, 2009, 12:50 PM

Post #1 of 5 (515 views)
Permalink
Graphite theme consuming 100% CPU while idle

Hi all,

Yesterday, I decided to try the Graphite theme with the new 0.22-fixes
RPMs from RPM Fusion (I am running myth 0.22-fixes with MythDora 10.21).

I switched the theme and then I noticed that it mythfrontend started
taking up 100% of the CPU while sitting idle at the main menu. This only
happens with the Graphite theme. None of the others that I've tried
(Terra, BlueAbstract) do that. They usually take up to 60% while
switching menues or screens but stay at close to 0-1% when idle.

I have a dual core Athlon64 2GHz processor. I am using the OpenGL
painter rather then the QT one.

I did an strace on mythfrontend while the Graphite theme was running
and for the most part, it was doing sched_yield() calls along with
gettimeofday() calls (strace log snippet below).

The interesting thing is that while strace was running, it (strace) was
consuming most of the CPU (presumably while trying to write to the
output file) and mythfrontend was only consuming about 15%. As soon as
I stopped strace, mythfrontend went up to 100% again.

10868 12:45:08.373721 clock_gettime(CLOCK_MONOTONIC, {13791, 135513056}) = 0
10868 12:45:08.373795 read(7, 0xfbe894, 4096) = -1 EAGAIN (Resource temporarily unavailable)
10868 12:45:08.373861 read(16, 0x10074a4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
10868 12:45:08.373917 poll([.{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI},
{fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd
=7, events=POLLIN}, {fd=20, events=POLLIN}], 9, 0) = 0 (Timeout)
10868 12:45:08.374004 read(7, 0xfbe894, 4096) = -1 EAGAIN (Resource temporarily unavailable)
10868 12:45:08.374059 clock_gettime(CLOCK_MONOTONIC, {13791, 135846614}) = 0
10868 12:45:08.374160 gettimeofday({1258404308, 374180}, NULL) = 0
10868 12:45:08.374219 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0
10868 12:45:08.374328 clock_gettime(CLOCK_MONOTONIC, {13791, 136116198}) = 0
10868 12:45:08.374384 read(7, 0xfbe894, 4096) = -1 EAGAIN (Resource temporarily unavailable)
10868 12:45:08.374439 read(16, 0x10074a4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
10868 12:45:08.374508 poll([.{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI},
{fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd
=7, events=POLLIN}, {fd=20, events=POLLIN}], 9, 0) = 0 (Timeout)
10868 12:45:08.374582 clock_gettime(CLOCK_MONOTONIC, {13791, 136369579}) = 0
10868 12:45:08.374637 read(7, 0xfbe894, 4096) = -1 EAGAIN (Resource temporarily unavailable)
10868 12:45:08.374711 getpid() = 10868
10868 12:45:08.375007 getpid() = 10868
10868 12:45:08.375101 getpid() = 10868
10868 12:45:08.375155 sched_yield() = 0
10868 12:45:08.375202 sched_yield() = 0
10868 12:45:08.375246 sched_yield() = 0
10868 12:45:08.375290 sched_yield() = 0
10868 12:45:08.375334 sched_yield() = 0
10868 12:45:08.375379 sched_yield() = 0
10868 12:45:08.375423 sched_yield() = 0
10868 12:45:08.375468 sched_yield() = 0
10868 12:45:08.375532 sched_yield() = 0
10868 12:45:08.375577 sched_yield() = 0
10868 12:45:08.375621 sched_yield() = 0
10868 12:45:08.375666 sched_yield() = 0
10868 12:45:08.375770 sched_yield() = 0
10868 12:45:08.375815 sched_yield() = 0
10868 12:45:08.375860 sched_yield() = 0
10868 12:45:08.375904 sched_yield() = 0

Has anybody else seen this?

--
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


ylee at pobox

Nov 16, 2009, 2:29 PM

Post #2 of 5 (498 views)
Permalink
Re: Graphite theme consuming 100% CPU while idle [In reply to]

Mitko Haralanov <voidtrance [at] comcast> says:
> I switched the theme and then I noticed that it mythfrontend started
> taking up 100% of the CPU while sitting idle at the main menu. This
> only happens with the Graphite theme.

By "the main menu," do you mean Watch Recordings or the menu above
that (the real "main menu")?

In the main menu I don't see anything too unusual CPU-usagewise with
Graphite (a few percentage points for the subtle throbbing of the
highlighted menu entry), but I do see 25% usage at Watch Recordings
versus 0-2% for other themes on my Pentium 4 3.0GHz frontend.

--
Frontend/backend: P4 3.0GHz, 1.5TB software RAID 5 array
Backend: Quad-core Xeon 1.6GHz, 6.6TB sw RAID 6
Video inputs: Four high-definition over FireWire/OTA
Accessories: 47" 1080p LCD, 5.1 digital, and MX-600
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


voidtrance at comcast

Nov 16, 2009, 5:42 PM

Post #3 of 5 (485 views)
Permalink
Re: Graphite theme consuming 100% CPU while idle [In reply to]

On Mon, 16 Nov 2009 14:29:51 -0800
Yeechang Lee <ylee [at] pobox> wrote:

> By "the main menu," do you mean Watch Recordings or the menu above
> that (the real "main menu")?

The real "main menu", top level menu when mythfrontend starts.

> In the main menu I don't see anything too unusual CPU-usagewise with
> Graphite (a few percentage points for the subtle throbbing of the
> highlighted menu entry), but I do see 25% usage at Watch Recordings
> versus 0-2% for other themes on my Pentium 4 3.0GHz frontend.

Well, I don't even see the "throbbing" which you describe. The
highlighting on the menu items is static (brighter then the rest but no
animation). I am on a slower machine then you but nonetheless, this is
just the rendering of the theme. It should never take this much CPU
especially with hardware acceleration.

--
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


tralph11 at yahoo

Nov 16, 2009, 5:53 PM

Post #4 of 5 (488 views)
Permalink
Re: Graphite theme consuming 100% CPU while idle [In reply to]

--- On Mon, 11/16/09, Mitko Haralanov <voidtrance [at] comcast> wrote:

> Well, I don't even see the "throbbing" which you describe.
> The
> highlighting on the menu items is static (brighter then the
> rest but no
> animation). I am on a slower machine then you but
> nonetheless, this is
> just the rendering of the theme. It should never take this
> much CPU
> especially with hardware acceleration.
>

I believe this is a known issue with themes using alpha pulse and a ticket by a developer explaining what's happening has already been submitted. Please refer to the following:

http://svn.mythtv.org/trac/ticket/7525

Regards.

--
Taylor



_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


nick.rout at gmail

Nov 16, 2009, 6:57 PM

Post #5 of 5 (490 views)
Permalink
Re: Graphite theme consuming 100% CPU while idle [In reply to]

On Tue, Nov 17, 2009 at 2:53 PM, Taylor Ralph <tralph11 [at] yahoo> wrote:

>
> I believe this is a known issue with themes using alpha pulse and a ticket by a developer explaining what's happening has already been submitted. Please refer to the following:
>
> http://svn.mythtv.org/trac/ticket/7525

About as clear as swimming in a jar of marmite to me...

But its always good to see people working on stuff!!
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.