gnome shell takes 35% of cpu when system load indicator is run in default configuration

Bug #1866698 reported by Ľubomír Mlích
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Triaged
Low
Unassigned
gnome-shell-extension-appindicator (Ubuntu)
Triaged
Medium
Unassigned
indicator-multiload (Ubuntu)
Incomplete
High
Unassigned

Bug Description

Problems started 10 days ago or so after update and restart of OS. Cpu load is 35 percent constantly after start of the system. No other process is started - I just login and that's it. I see cpu load. See attached file "Top".

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-shell 3.35.91-1ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-14.17-generic 5.4.18
Uname: Linux 5.4.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu18
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Mar 9 20:26:58 2020
DisplayManager: gdm3
ExecutablePath: /usr/bin/gnome-shell
InstallationDate: Installed on 2019-12-27 (73 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20191223)
RelatedPackageVersions: mutter-common 3.35.91-1ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ľubomír Mlích (lubomir-mlich) wrote :
description: updated
description: updated
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report.

Can you please check to see if you have any animating (or just any) application icons in the top panel?

Please also check for and tell us if there are any app windows constantly updating.

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
tags: added: performance
Revision history for this message
Ľubomír Mlích (lubomir-mlich) wrote :

Hi Daniel, thanks for looking into it.

Yes I have system load indicator running, cpu load is not there if I turn it off.

It is probably cause of the problem.

Also if I change interval of update from 500 ms to 1000 ms, cpu load goes to half. 5 seconds are nearly not visible.

summary: - gnome shell takes 35% of cpu
+ gnome shell takes 35% of cpu when system load indicator is run in
+ default configuration
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

OK, that sounds like a simple explanation.

On one hand this sounds related to https://gitlab.gnome.org/GNOME/gnome-shell/issues/2085 but I hesitate to link that since that one really has a different root cause. And my proposed fix for that won't help you with this bug.

Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This is going to be a semi-common issue so I've added it to the list of performance issues to be investigated: https://trello.com/c/pe5mRmx7

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Is it indicator-multiload you are using?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

See also bug 784055

Changed in indicator-multiload (Ubuntu):
status: New → Incomplete
Changed in gnome-shell (Ubuntu):
importance: Undecided → Low
Changed in gnome-shell-extension-appindicator (Ubuntu):
importance: Undecided → Medium
Changed in indicator-multiload (Ubuntu):
importance: Undecided → High
Changed in gnome-shell (Ubuntu):
status: New → Triaged
Changed in gnome-shell-extension-appindicator (Ubuntu):
status: New → Triaged
Revision history for this message
Ľubomír Mlích (lubomir-mlich) wrote :

Yes, it is indicator-multiload:

```
$ apt search indicator |grep installed
gnome-shell-extension-appindicator/focal,focal,now 32-1 all [installed,automatic]
indicator-multiload/focal,now 0.4-0ubuntu5 amd64 [installed]
libappindicator3-1/focal,now 12.10.1+18.04.20180322.1-0ubuntu5 amd64 [installed,automatic]
```

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. Since it's the same root cause I will merge this into bug 784055...

Revision history for this message
Ľubomír Mlích (lubomir-mlich) wrote :

Thank you

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.