Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588194 - kde-plasma/plasma-workspace: plasmashell high cpu usage
Summary: kde-plasma/plasma-workspace: plasmashell high cpu usage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-07 01:45 UTC by Kenton Groombridge
Modified: 2016-10-06 01:19 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenton Groombridge 2016-07-07 01:45:30 UTC
plasmashell cpu usage never goes below 70% on my intel based laptop.  I researched this issue and have found many recent posts regarding the same. Weird thing is that I have an AMD based desktop which the same exact desktop settings including plasmoids, taskbar settings, etc and plasmashell stays around 1% usage. It appears that over time, the cpu usage increases as I see it bouncing over 300% after a couple hours use, but can't say for sure as I usually have to reboot it as it becomes so unresponsive.  This has been going on for over a month and I was waiting for the kde plasma 5.7 release before posting a bug. 

Reproducible: Always

Steps to Reproduce:
1. use kde
2. run top command and watch as it never falls below 70%.
3.
Actual Results:  
System is very slow and unresponsive.

Expected Results:  
It should be less than 5%, my AMD system never has gone above 2% as I used it as a reference.

emerge --info
Portage 2.3.0 (python 3.5.1-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r2, 4.6.3-gentoo x86_64)
=================================================================
System uname: Linux-4.6.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:    16349376 total,   2196988 free
KiB Swap:    1637372 total,   1624836 free
Timestamp of repository gentoo: Thu, 07 Jul 2016 00:00:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.4::gentoo, 3.5.1-r3::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.2::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/ http://cosmos.illinois.edu/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus acpi afpacket aften alsa amd64 bbswitch berkdb binary-drivers bluetooth branding bzip2 cairo caps-ng cdda cdr cli client consolekit cracklib crypt cups cxx dbus declarative dri3 dts dvb dvd dvdr efi efiemu emboss encode evdev exif external-fuse fam ff-card ffmpeg file-inspect firefox flac fortran gdbm gif glamor gpm gstreamer gtk hpcups iconv icu ipv6 java javascript jit jpeg kde kipi large-pcap-64bit lcms ldap libav libnotify mad mjpeg mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nfs nfsv4 nls nptl nsplugin ntfsprogs ntp ogg openal opencl opengl openmp openssl pam pango pcre pdf phonon png policykit ppds prelink projectm pulseaudio python qemu qml qt3support qt4 qt5 rar readline samba sdl seccomp semantic-desktop session shm sna soprano spell sqlite sse sse2 ssl startup-notification svg tcpd theora threads tiff touchpad truetype udev udisks unicode upower usb uxa v4l v4l2 vdpau vix vorbis vpx wayland widevine widgets wifi winbind wma wxwidgets x264 x265 xattr xcb xcomposite xine xinerama xml xnest xorg xscreensaver xv xvid zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard evdev synaptics void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mirko Langisch 2016-07-09 08:26:34 UTC
same problem here... have to kill (and restart) it at least twice a day, looks like it also has some serious memleaks

interestingly it got even worse with 5.7.0
Comment 2 Mirko Langisch 2016-07-13 15:04:17 UTC
I switched to the modesetting driver - problem gone :)
Comment 3 Kenton Groombridge 2016-07-13 16:52:14 UTC
That brings up what may be the factor that causes this. My laptop uses the intel video driver where my desktop is nvidia.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2016-09-15 18:38:29 UTC
Any feedback about whether this is still an issue with Qt 5.6.1/Frameworks 5.26/Plasma 5.7.5 would be appreciated.
Comment 5 Kenton Groombridge 2016-09-15 22:02:42 UTC
This is still an issue for me.  I have googled the heck out of this and tried everything I have found with no results.  Even disabling composting doesn't help.  Plasmashell CPU usage never goes below 70%.  My laptop is worthless with this problem as my fans are constantly spinning to keep it cool and the battery drains quickly.

My desktop has an nVidia video card and plasmashell runs less that 2% CPU with composting and the same plasmoids.  I have a feeling it is an intel video driver issue.
Comment 6 Kenton Groombridge 2016-10-06 01:19:52 UTC
After tonight's KDE Plasma update I did the same thing I have been doing when receiving major KDE Plasma or Frameworks updates:

Log in as root
Rename my normal user's .kde directory
Log out and log in as my normal user

This time plasmashell CPU usage is on par with my NVidia desktop system.  Reconfigured KDE to my likes and have been beating it up now for about four hours as I wanted to be sure this problem has been solved, and so far it has been running great.

Not sure what was done to fix this issue, by for my this problem appears to have been solved.