gnome-shell has high cpu usage and causes significant lag
This bug report will be marked for expiration in 59 days if no further activity occurs. (find out why)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-shell (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
I've lately been noticing a substantial lag that consumes an entire core on my CPU (CPU% 1.00+). It's most noticeable with the cursor, where it starts "jumping" around instead of moving smoothly across the screen.
It seems to stem from `gnome-shell` but I'm not sure how to further debug this and find the root cause. I've included a couple screenshots as well as debug information from `ubuntu-bug gnome-shell`.
If I reboot, it tends to go away. It only seems to happen after 4-5 hours of uptime.
Please let me know how to further debug this problem or if any other information is needed.
```
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 23.10
Release: 23.10
```
```
$ apt-cache policy gnome-shell
gnome-shell:
Installed: 45.2-0ubuntu1.1
Candidate: 45.2-0ubuntu1.1
Version table:
*** 45.2-0ubuntu1.1 500
500 http://
500 http://
100 /var/lib/
45.0-1ubuntu2 500
500 http://
```
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: gnome-shell 45.2-0ubuntu1.1
ProcVersionSign
Uname: Linux 6.5.0-41-generic x86_64
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Mon Jun 24 14:09:02 2024
DisplayManager: gdm3
InstallationDate: Installed on 2023-11-01 (236 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
RelatedPackageV
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)
Thanks for the bug report. The only similar issue I'm aware of is that sometimes the cursor can become laggy but that is also fixed by putting the screen to sleep (Super+L) and waking it up again. That issue is so rare that I haven't seen it in months.
If that doesn't work around your issue adequately then the next thing to try is to remove all local extensions:
cd ~/.local/ share/gnome- shell/
rm -rf extensions
and then log in again.
Please also note that Ubuntu 23.10 reaches end of life next month and we recommend 24.04 instead. https:/ /wiki.ubuntu. com/Releases