I'm seeing moderately high CPU usage from the gnome-shell process as
well. It seems to stay running at at least 5% at all times. I decided to
use strace to see what it was doing:
$ sudo strace -c -p 6916
strace: Process 6916 attached
strace: Process 6916 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
25.38 0.054330 6 9277 8116 recvmsg
21.45 0.045927 10 4454 ioctl
18.90 0.040462 12 3295 poll
11.95 0.025583 24 1045 24 futex
7.23 0.015478 11 1388 writev
4.05 0.008663 7 1302 write
2.82 0.006048 4 1500 getpid
2.14 0.004579 5 914 mprotect
2.07 0.004431 7 657 read
1.11 0.002372 11 212 timerfd_create
0.94 0.002012 8 251 close
0.87 0.001859 9 212 timerfd_settime
0.40 0.000857 22 39 openat
0.20 0.000437 6 78 fstat
0.19 0.000413 3 120 getrusage
0.11 0.000244 7 36 mmap
0.10 0.000209 5 39 fcntl
0.06 0.000129 129 1 restart_syscall
0.02 0.000037 37 1 munmap
0.01 0.000029 7 4 1 recvfrom
0.00 0.000000 0 70 60 stat
------ ----------- ----------- --------- --------- ----------------
100.00 0.214099 24895 8201 total
The strange thing here is the large number of EAGAIN errors from the
recvmsg() syscall. When I run strace without the -c I see output such
as:
recvmsg(12, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
recvmsg(12, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
recvmsg(5, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
recvmsg(12, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
recvmsg(12, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1773959
Title:
High CPU usage by gnome-shell when only running gnome-terminal
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1773959/+subscriptions
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs