CPU spikes and system hangs from gnome-shell every 5-10 seconds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-shell (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
On a fresh installation of Ubuntu 20.04 with no configuration files changed yet (the "install third-party software" option enabled), installed from the official daily ISO, the system freezes for about a second every 5-10 seconds and I see a spike to 70% or more CPU usage by gnome-shell. I cannot see anything that shows up in `sudo journalctl -ef` or `sudo dmesg -w` when the freezes occur. The problem reproduces on both X11 and Wayland, although under Wayland it's more annoying since a freeze leads to repeated keypresses of whatever key was being held down on the keyboard at the time of the freeze.
This problem seems to have been reported at <https:/
I tried to follow <https:/
Result of `sudo perf top`:
4.39% libglib-
4.26% libc-2.31.so [.] __vfprintf_internal
And `sudo perf top --sort comm,dso`:
45.28% gnome-shell libglib-
17.23% gnome-shell libc-2.31.so
And `sudo perf record -g -p PID` for the `gnome-shell` PID:
+ 39.81% 0.01% [unknown] [.] 0000000000000000
+ 14.26% 2.04% libc-2.31.so [.] __vasprintf_
+ 8.61% 8.42% libglib-
+ 8.51% 8.09% libc-2.31.so [.] __vfprintf_internal
And `strace -c -p PID`:
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
34.41 0.128602 5 22784 19837 recvmsg
25.74 0.096215 7 13716 632 ioctl
18.04 0.067420 10 6686 poll
9.50 0.035523 7 4858 write
4.56 0.017025 7 2322 writev
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-shell 3.36.4-
ProcVersionSign
Uname: Linux 5.4.0-49-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 9 07:54:43 2020
DisplayManager: gdm3
InstallationDate: Installed on 2020-10-09 (0 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20201007)
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/usr/bin/zsh
RelatedPackageV
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)
Reattached GsettingsChange s.txt since the apport version contained private information.