After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752070 - polari uses a lot of cpu
polari uses a lot of cpu
Status: RESOLVED OBSOLETE
Product: polari
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-07 12:45 UTC by Matthias Clasen
Modified: 2016-07-26 13:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2015-07-07 12:45:45 UTC
When my desktop is idling, most apps are well-behaved, just firefox and polari are constantly using 40%-50% of cpu. powertop also shows around 200 wakeups/s for polari. That really shouldn't be necessary for an irc client - xchat shows nothing like that...
Comment 1 Olav Vitters 2015-10-08 19:21:24 UTC
For me it is about 10% CPU with my current system, but it also was 30-40% CPU before. This while there doesn't seem to be any activity going on (no chats).
Comment 2 Cody Welsh 2015-10-23 23:24:01 UTC
I observed Polari for a while using top, and it never surpassed 2.7% CPU; I then recorded performance for a couple of hours using perf, and it still didn't consume any more than that (except upon starting).

Is it possible for you guys to profile Polari until it gets to undesirable CPU usage levels? Since I can't reproduce it, I personally wouldn't know where to start (other than looking for superfluous function calls, etc).
Comment 3 Michael Catanzaro 2016-02-18 14:41:21 UTC
(In reply to Cody Welsh from comment #2)
> Is it possible for you guys to profile Polari until it gets to undesirable
> CPU usage levels? Since I can't reproduce it, I personally wouldn't know
> where to start (other than looking for superfluous function calls, etc).

Where to start is to compile GLib with some added some printfs to gmain.c, to print the names of the sources that are getting dispatched. You will most likely see some offending source appearing continuously. If it's not named then you can call g_source_set_name_by_id() after each use of the g_timeout_add() or g_idle_add() family of functions in Polari to fix that. If you're lucky it will be a source attached by Polari and you'll have found the problem; if you're unlucky, you'll have to look at the Telepathy client library as well and debug a bit more.
Comment 4 Olav Vitters 2016-02-18 17:40:47 UTC
I haven't seen high CPU usage for quite a while. Nowadays it is usually 0% CPU. This around the same time as switching machines. Intel driver instead of nouveau, different CPU, etc. Not sure if it is the different system or maybe a newer Polari/glib/something. In any case, seems ok and I've checked for 1-2 months now.
Comment 5 Matthias Clasen 2016-02-20 16:46:54 UTC
dropping off the target list, then
Comment 6 Alexandre Franke 2016-07-26 13:24:28 UTC
Matthias, can we maybe close this as OBSOLETE?