Bug 382618 - High CPU load after login or resume which is fixed by killing and restarting plasmashell. How to debug?
Summary: High CPU load after login or resume which is fixed by killing and restarting ...
Status: RESOLVED DUPLICATE of bug 378010
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.10.3
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-23 11:12 UTC by Gunter Ohrner
Modified: 2017-07-30 22:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Xorg.0.log (44.88 KB, text/x-log)
2017-07-23 11:12 UTC, Gunter Ohrner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gunter Ohrner 2017-07-23 11:12:42 UTC
Created attachment 106794 [details]
Xorg.0.log

I observed high CPU usage of plasmashell after it starts initially after login. The problem sometimes / often reappears if the system wakes up from suspend. (It just got to my mind that both of these situations may be associated with screen layout reconfigurations, as my machine is a notebook and I reconfigure the screens for my different work places after login using xrandr in scripts.)

The reason I even noticed it is that this behaviour causes the system fan to run at significantly higher speed, which is clearly audible. Closer examination also shows a much more sluggish screen update / more sluggish animations, which also are fixed by simply killing and restarting the process.

I do not use plasmoids with lots of animations, but I also do not know how to provide useful debug information. Is there any monitoring tool which shows what plasmashell is actually doing, or a tool to list all plasmoids currently running? (I have the impression that there are some plasmoids active which are not actually displayed on any visible screen, it would be nice to be able to check this.)

ii  kdeconnect-plasma                                                                                                       0.9+git20160315+really1.0.3-0neon+16.04+build23                  all                                                              transitional dummy package    
ii  kdeplasma-addons-data                                                                                                   4:5.10.4-0neon+16.04+xenial+build61                              all                                                              locale files for kdeplasma-addons                                                                                                                                           
ii  libkdeclarative5                                                                                                        4:4.14.16-0ubuntu3.2                                             amd64                                                            declarative library for plasma
ii  libkf5plasma-dev                                                                                                        5.36.0-0neon+16.04+xenial+build41                                amd64                                                            development files for plasma-framework                                                                                                                                      
ii  libkf5plasma5:amd64                                                                                                     5.36.0-0neon+16.04+xenial+build41                                amd64                                                            Plasma Runtime components     
ii  libkf5plasmaquick5:amd64                                                                                                5.36.0-0neon+16.04+xenial+build41                                amd64                                                            Plasma Runtime components     
ii  libplasma-geolocation-interface5                                                                                        4:5.10.4-0neon+16.04+xenial+build88                              amd64                                                            Plasma Workspace for KF5 library                                                                                                                                            
ii  libplasma3                                                                                                              4:4.14.16-0ubuntu3.2                                             amd64                                                            Plasma Library for the KDE Platform                                                                                                                                         
ii  libsmokeplasma3                                                                                                         4:4.14.2-0ubuntu6                                                amd64                                                            Plasma SMOKE library          
ii  muon-discover                                                                                                           4:5.10.4-0neon+16.04+xenial+build75                              all                                                              Transitional package (muon-discover -> plasma-discover)                                                                                                                     
ii  muon-notifier                                                                                                           4:5.10.4-0neon+16.04+xenial+build75                              all                                                              Transitional package (muon-notifier -> plasma-discover-updater)                                                                                                             
ii  muon-updater                                                                                                            4:5.10.4-0neon+16.04+xenial+build75                              all                                                              Transitional package (muon-updater -> plasma-discover-updater)                                                                                                              
ii  plasma-dataengines-addons                                                                                               4:5.10.4-0neon+16.04+xenial+build61                              amd64                                                            additional data engines for Plasma
ii  plasma-desktop                                                                                                          4:5.10.4-0neon+16.04+xenial+build64                              amd64                                                            Tools and widgets for the desktop
ii  plasma-desktop-data                                                                                                     4:5.10.4-0neon+16.04+xenial+build64                              all                                                              Tools and widgets for the desktop data files
ii  plasma-discover                                                                                                         5.10.4-0neon+16.04+xenial+build75                                amd64                                                            Utility for browsing, installing and removing software
ii  plasma-discover-common                                                                                                  5.10.4-0neon+16.04+xenial+build75                                all                                                              Discover software manager suite (common data files)
ii  plasma-discover-private                                                                                                 5.10.4-0neon+16.04+xenial+build75                                amd64                                                            Private runtime libraries for the Discover suite
ii  plasma-discover-updater                                                                                                 5.10.4-0neon+16.04+xenial+build75                                amd64                                                            Update manager for KDE
ii  plasma-framework                                                                                                        5.36.0-0neon+16.04+xenial+build41                                amd64                                                            Plasma Runtime components
ii  plasma-integration                                                                                                      5.10.4-0neon+16.04+xenial+build53                                amd64                                                            Qt Platform Theme integration plugins for KDE Plasma
ii  plasma-look-and-feel-org-kde-breezedark-desktop                                                                         4:5.10.4-0neon+16.04+xenial+build49                              all                                                              Dark Breeze look-and-feel for Plasma
ii  plasma-nm                                                                                                               4:5.10.4-0neon+16.04+xenial+build42                              amd64                                                            Plasma5 networkmanager library.
ii  plasma-pa                                                                                                               4:5.10.4-0neon+16.04+xenial+build43                              amd64                                                            Plasma 5 Volume controller
ii  plasma-runners-addons                                                                                                   4:5.10.4-0neon+16.04+xenial+build61                              amd64                                                            additional runners for Plasma 5 and Krunner
ii  plasma-scriptengine-javascript                                                                                          4:15.12.3-0ubuntu1                                               amd64                                                            JavaScript script engine for Plasma
ii  plasma-scriptengine-superkaramba                                                                                        4:15.08.3-0ubuntu1~ubuntu15.10~ppa1                              amd64                                                            SuperKaramba theme support for the Plasma Workspaces
ii  plasma-wallpapers-addons                                                                                                4:5.10.4-0neon+16.04+xenial+build61                              amd64                                                            additional wallpaper plugins for Plasma 5
ii  plasma-widget-message-indicator                                                                                         0.5.8-3                                                          amd64                                                            Plasma widget to display message indicators
ii  plasma-widgets-addons                                                                                                   4:5.10.4-0neon+16.04+xenial+build61                              amd64                                                            additional widgets for Plasma 5
ii  plasma-workspace                                                                                                        4:5.10.4-0neon+16.04+xenial+build88                              amd64                                                            Plasma Workspace for KF5
ii  python-xkit                                                                                                             0.5.0ubuntu2                                                     all                                                              library for the manipulation of xorg.conf files (Python 2)
ii  python3-xkit                                                                                                            0.5.0ubuntu2                                                     all                                                              library for the manipulation of xorg.conf files (Python 3)
ii  xorg                                                                                                                    1:7.7+13ubuntu3                                                  amd64                                                            X.Org X Window System
ii  xorg-docs-core                                                                                                          1:1.7.1-1ubuntu1                                                 all                                                              Core documentation for the X.org X Window System
ii  xorg-sgml-doctools                                                                                                      1:1.11-1                                                         all                                                              Common tools for building X.Org SGML documentation
ii  xserver-xorg                                                                                                            1:7.7+13ubuntu3                                                  amd64                                                            X.Org X server
ii  xserver-xorg-core                                                                                                       2:1.18.4-0ubuntu0.2                                              amd64                                                            Xorg X server - core server
ii  xserver-xorg-input-evdev                                                                                                1:2.10.1-1ubuntu2                                                amd64                                                            X.Org X server -- evdev input driver
ii  xserver-xorg-input-synaptics                                                                                            1.8.2-1ubuntu3                                                   amd64                                                            Synaptics TouchPad driver for X.Org server
ii  xserver-xorg-input-wacom                                                                                                1:0.32.0-0ubuntu3                                                amd64                                                            X.Org X server -- Wacom input driver
ii  xserver-xorg-video-fbdev                                                                                                1:0.4.4-1build5                                                  amd64                                                            X.Org X server -- fbdev display driver
rc  xserver-xorg-video-intel                                                                                                2:2.99.917+git20160325-1ubuntu1.2                                amd64                                                            X.Org X server -- Intel i8xx, i9xx display driver
ii  xserver-xorg-video-intel-arbiter                                                                                        0+p16.04+git20170210.1114                                        all                                                              Dummy package to help with Intel GPU driver selection
ii  xserver-xorg-video-intel-native-modesetting                                                                             0+p16.04+git20170210.1114                                        all                                                              Dummy package to force native modesetting for xorg on intel
ii  xserver-xorg-video-vesa                                                                                                 1:2.3.4-1build2                                                  amd64                                                            X.Org X server -- VESA display driver


$ xrandr -q
Screen 0: minimum 320 x 200, current 4160 x 1440, maximum 8192 x 8192
LVDS-1 connected 1600x900+2560+0 (normal left inverted right x axis y axis) 294mm x 165mm
   1600x900      59.94*+  50.00    40.00  
   1440x900      59.89  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   960x600       60.00  
   960x540       59.99  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   800x512       60.17  
   700x525       59.98  
   640x512       60.02  
   720x450       59.89  
   640x480       60.00    59.94  
   680x384       59.80    59.96  
   576x432       60.06  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2048x1152     60.00  
   1920x1200     59.95  
   1920x1080     60.00    60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94  
   1600x1200     60.00  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1200x960      59.99  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
   2560x1440     54.93* 
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
Comment 1 Gunter Ohrner 2017-07-28 06:36:28 UTC
"top" after login:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     ZEIT+ BEFEHL                                                                    
 2382 gunter    20   0 3692224 243880 128088 S  48,2  2,0   5:36.91 plasmashell                                                               
 1806 root      20   0  216816  59832  27736 R  25,6  0,5   3:57.13 Xorg                                                                      
 2377 gunter    20   0 3170420  94044  59628 S  20,6  0,8   3:07.37 kwin_x11                                                                  

The system monitor gkrellm shows a sustained CPU load of about 25%. This discrepancy may be related to my Core i7 CPU (2 physical cores, 4 virtual cores).

If I now kill and restart plasmashell, the CPU usage will be reduced to zero, as it's supposed to be.
Comment 2 David Edmundson 2017-07-30 22:41:44 UTC
If you're wiling to compile your own Qt, ping me. Otherwise not.

*** This bug has been marked as a duplicate of bug 378010 ***