Is it normal that some Plugins (e.g. Media Player Plugin) are using more than 50% (and up to 100% [on a Quad-Core]) of CPU after some time?

Asked by joni

When i use some plugins, especially the Media Player Plugin my CPU Usage reaches about 100%.
I use the plugin with Banshee and i when i start the Daemon, everything looks ok (about 10% Usage).
I noticed that the time display is bugged a bit: The current time of the song does NOT reset. When the next song begins the time simply doesn't reset (show e.g. "8:50 of 4:50").
When i stop the song (just the song not banshee) the python processes go down to about 3% CPU Usage.
If i start again then it goes immediately up to 40% again.

Now i stop g19daemon and g15-desktop-service and start it again.
CPU usage is now about 10% with Media Player plugin and everything working fine, until the next song starts and the time display doesn't reset. But when i skip a song the current time display reset to 0:00. That bad thing is, cpu usage stays high (~50%).

Not sure if there is a bug, thats why a ask a question first. If needed i'll post logs (don't know which logs so please tell me :) )

Question information

Language:
English Edit question
Status:
Answered
For:
gnome15 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
tanktarta (tanktarta) said :
#1

Part of the focus of the upcoming 0.7.0 has been improvements to memory and CPU usage. With the next release you should see a marked improvement in both. Some of the bugs fixed include :-

* Fixed pango Layout memory leak. Memory still leaks, but at a much slower rate (RSS plugin is suspected)
* Impulse15 now automatically decrease frame rate when there is no audio for 5 seconds.
* Impulse15 frame rate is adjustable.
* Deadlock in media player fixed (playing first track when notify plugin is installed)
* HTTP retrieved images now cached (includes media player artwork and weather plugin)

If you are not already, using the Kernel driver improves CPU usage a lot. Looking at your idle CPU usage, I suspect you are already using it.

Impulse15 is the biggest user of CPU as it has a high frame rate.

So, these may cover at least some of your problems. Also, the problem with the track progress has been fixed. If you are confident enough, please feel free to grab the latest source from Bazaar and see how it goes (there are some brief instructions on building in a recent post on gnome15.org).

Alternatively, wait a week or so for the actual 0.7.0 release :)

Hope this helps.

Revision history for this message
tanktarta (tanktarta) said :
#2

Oh, I just re-read your comment, you say you are using g19daemon, i.e. not the kernel driver (sorry, it's very late!). All the above still applies, but you may want to try that as well. There are instructions on the gnome15.org for this.

Can you help with this problem?

Provide an answer of your own, or ask joni for more information if necessary.

To post a message you must log in.