Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very high CPU usage on GNOME 3.32 #118

Open
xuanruiqi opened this issue Mar 16, 2019 · 21 comments

Comments

@xuanruiqi
Copy link

commented Mar 16, 2019

Basically the issue as in #96, but seems a problem with the extension this time: before updating to 3.32 TopIcons Plus ran seamlessly, but after the update CPU usage became very high (~80%-90%). Also, I don't have System Monitor.

I'm not sure if 3.32 API changes changed anything performance-wise.

@zegkljan

This comment has been minimized.

Copy link

commented Mar 17, 2019

Can confirm on Arch Linux. It might be good to know that other tray-related extensions (Topicons, Tray icons) also experience this issue.

@ismaail

This comment has been minimized.

Copy link

commented Mar 17, 2019

In topIcons Plus settigns, changing Tray horizontal alignement option to Center drops the CPU usage.

@zegkljan

This comment has been minimized.

Copy link

commented Mar 17, 2019

@ismaail Well, it's even more complicated. When I set the alignment to center, the CPU load drops. However, if I disable the extension and enable it again, the CPU load is back. If I then change the alignment to right, the load disappears. Reloading gnome shell (alt+f2 r) and unlocking the screen (after super+L or after wake up from suspend) has the same effect as disabling and enabling the extension.

@ismaail

This comment has been minimized.

Copy link

commented Mar 17, 2019

@zegkljan you're right, this doesn't solve the issue.

@accdias

This comment has been minimized.

Copy link

commented Mar 25, 2019

I can confirm the same problem on Fedora 30 pre-beta as well.

@C-Bouthoorn

This comment has been minimized.

Copy link

commented Mar 25, 2019

Also confirmed on 5.0.3-arch1-1, GNOME Shell 3.32.0, gnome-shell-extension-topicons-plus-git 22+5+g6bbdbaa-1
Moving the alignment from center to right drops the CPU load for gnome-shell from 95% to 0.5%

@mattia-b89

This comment has been minimized.

Copy link

commented Apr 2, 2019

I confirm the strange behaviour

@davidgxxl

This comment has been minimized.

Copy link

commented Apr 9, 2019

I confirm in Archlinux with gnome 3.32!

@pacho2

This comment has been minimized.

Copy link

commented Apr 14, 2019

Maybe this fix in dash-to-dock could help as it seems the root cause is the same:
home-sweet-gnome/dash-to-panel@3cdd20c

@pacho2

This comment has been minimized.

Copy link

commented Apr 14, 2019

It seems it could be a gnome-shell bug:
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1054

@legluondunet

This comment has been minimized.

Copy link

commented Apr 18, 2019

Same issue on Ubuntu 19.04, I deactivated Gnome Shell extensions one per one and found that it is Topicons-plus extension that made gnome-shell process at more than 90% cpu load.

@luoc0815

This comment has been minimized.

Copy link

commented Apr 27, 2019

I can confirm that issue. It may be of interest that CPU usage is only high if any tray icon appears.

@znmeb

This comment has been minimized.

Copy link

commented Apr 27, 2019

This is not the only GNOME shell extension that has this issue. Dash to Dock also has this (or a related issue). I only see it on my laptop with an NVidia GPU though - it doesn't happen on my workstation.

@rmader

This comment has been minimized.

Copy link

commented Apr 29, 2019

Fixed upstream, should come to 3.32.2 (https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/521)

@borovaka

This comment has been minimized.

Copy link

commented Apr 30, 2019

I tested the fix from https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/521 on Fedora 30, and it is working.

Here is a little script that you can use on Fedora 30 before the patch is released:
https://gist.github.com/borovaka/ba048f2d4153f23bcba0b5369823618c

p.s. Use this with caution and do not forget to cleanup /etc/environment after the Gnome 3.32.2 release

@mooninite

This comment has been minimized.

Copy link

commented May 2, 2019

@borovaka while that gist is a good start it needs some help and won't run properly in most cases.

This gist should work for a majority of cases and includes the gresource package required in a comment.

https://gist.github.com/mooninite/09d2f51240f6f03cf072fe106a5b32d9

@borovaka

This comment has been minimized.

Copy link

commented May 2, 2019

@mooninite You are totally right. But, we need tocheck for glib2-devel (Fedora) / libglib2.0-bin (Ubuntu).
That was the reason I do not include the package in the script

@widon1104

This comment has been minimized.

Copy link

commented May 3, 2019

wait for this extension support for gnome3.32

@ismaail

This comment has been minimized.

Copy link

commented May 21, 2019

I can confirm, the issue is fixed with latest update gnome-shell (3.32.2-1)

$ cat /usr/share/gnome/gnome-version.xml

<?xml version="1.0"?>
  <gnome-version>
  <platform>3</platform>
  <minor>32</minor>
  <micro>2</micro>
  <distributor>Arch Linux®</distributor>
  <date>2019-05-07</date>
</gnome-version>
@bryango

This comment has been minimized.

Copy link

commented May 21, 2019

image

For me it's not quite fixed yet... As shown above, you can see a clear drop of average CPU usage right after top icons are switched off.

$ cat /usr/share/gnome/gnome-version.xml

<?xml version="1.0"?>
<gnome-version>
 <platform>3</platform>
 <minor>32</minor>
 <micro>2</micro>
 <distributor>Arch Linux®</distributor>
 <date>2019-05-07</date>
</gnome-version>
@martinpovolny

This comment has been minimized.

Copy link

commented May 21, 2019

It seemed to be fixed for me with upgrade to 3.32.2. Yesterday suddenly the issue reappeared and the only way to stop the fan was to disable the extension again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.