Activities overview causes increased CPU in Wayland & Xorg

Bug #1757088 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Fix Released
Medium
Daniel van Vugt
mutter (Ubuntu)
Invalid
Medium
Daniel van Vugt

Bug Description

gnome-shell CPU usage doubles when in activities overview

summary: - gnome-shell CPU usage increases about another 50% when in activities
- overview
+ Activities overview causes increased CPU in Wayland & Xorg
Changed in mutter (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Daniel van Vugt (vanvugt)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Without the overview.

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

With the overview.

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

Gnome 3.28.0: without the overview

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

Gnome 3.28.0: with the overview.

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

Here are some realtime profiles showing gnome-shell's CPU going from 11.2% normally to 18.2% when in overview:

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

OK it looks like the increase in CPU in activities overview is just expected. Mutter/Gnome Shell is fairly inefficient to start with so switching to a mode where it has to render more widgets and more detail of course incurs higher CPU.

I think a holistic approach is required. Not just fixing this bug, but to reduce CPU usage in all scenarios such that a 60% increase doesn't hurt so much.

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

Looks like a 100% increase (CPU doubles) now that I'm using the trick of turning off seconds in the panel clock.

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

I made a solid attempt at fixing a few related issues,

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/73

but failed to address this bug completely. That said, it does provide a significant absolute performance improvement to the overview.

I think this bug will be deferred indefinitely until we can make Clutter (in mutter) fundamentally more efficient as outlined in the above link.

Changed in gnome-shell (Ubuntu):
status: In Progress → Triaged
Changed in mutter (Ubuntu):
status: In Progress → Triaged
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Maybe in the previous comment was being overly harsh on myself and gnome-shell. According to the latest stats, this bug was actually mostly fixed by:

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/73

which is also in Ubuntu 18.04 and later already.

So let's call this bug closed and open a new one when/if new stats are at hand.

Changed in gnome-shell (Ubuntu):
status: Triaged → Fix Released
Changed in mutter (Ubuntu):
status: Triaged → Invalid
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.