You are not logged in.

#1 2015-09-23 14:10:17

NeroBurner
Member
Registered: 2013-09-05
Posts: 31

Plasma5 spawns massive amount of threads

I'm running Plasma 5 and I've recently noticed, that sometimes my system is unresponsive and a bit laggy.

When I open htop I get the following output:

  1  [||||                                                4.8%]     Tasks: 89, 160 thr; 1 running
  2  [||||                                                4.8%]     Load average: 0.39 0.45 0.47 
  3  [||||                                                6.6%]     Uptime: 05:35:45
  4  [|||                                                 4.3%]
  Mem[|||||||||||||||||||||||||||||||||||||||||||||3031/7905MB]
  Swp[|                                               3/7904MB]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
 1330 nero       20   0  952M 89780 61768 S  0.0  1.1  0:11.08 │  ├─ /usr/bin/dolphin
 1332 nero       20   0  952M 89780 61768 S  0.0  1.1  0:00.00 │  │  ├─ /usr/bin/dolphin
 1331 nero       20   0  952M 89780 61768 S  0.0  1.1  0:00.89 │  │  └─ /usr/bin/dolphin
  640 nero       20   0 3464M  233M 93228 S  8.1  3.0 19:07.25 │  ├─ /usr/bin/plasmashell --shut-up
  853 nero       20   0 3464M  233M 93228 S  0.0  3.0  0:00.00 │  │  ├─ /usr/bin/plasmashell --shut-up
  849 nero       20   0 3464M  233M 93228 S  0.0  3.0  0:00.16 │  │  ├─ /usr/bin/plasmashell --shut-up
  823 nero       20   0  9740  2196  1860 S  0.0  0.0  0:20.17 │  │  ├─ ksysguardd
  746 nero       20   0 3464M  233M 93228 S  0.0  3.0  0:00.00 │  │  ├─ /usr/bin/plasmashell --shut-up
  745 nero       20   0 3464M  233M 93228 S  0.0  3.0  0:00.59 │  │  ├─ /usr/bin/plasmashell --shut-up
  737 nero       20   0 3464M  233M 93228 S  0.0  3.0  0:00.00 │  │  ├─ /usr/bin/plasmashell --shut-up
  720 nero       20   0 3464M  233M 93228 S  0.0  3.0  0:00.02 │  │  ├─ /usr/bin/plasmashell --shut-up
  642 nero       20   0 3464M  233M 93228 S  1.9  3.0  4:36.41 │  │  └─ /usr/bin/plasmashell --shut-up
  633 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:03.83 │  ├─ /usr/bin/krunner
 4245 nero       20   0  599M 81668 35144 S  0.5  1.0  0:03.52 │  │  ├─ mono /usr/share/keepass/KeePass.exe
 4252 nero       20   0  599M 81668 35144 S  0.0  1.0  0:00.06 │  │  │  ├─ mono /usr/share/keepass/KeePass.exe
 4251 nero       20   0  599M 81668 35144 S  0.0  1.0  0:00.00 │  │  │  ├─ mono /usr/share/keepass/KeePass.exe
 4250 nero       20   0  599M 81668 35144 S  0.0  1.0  0:00.00 │  │  │  ├─ mono /usr/share/keepass/KeePass.exe
 4247 nero       20   0  599M 81668 35144 S  0.0  1.0  0:00.01 │  │  │  └─ mono /usr/share/keepass/KeePass.exe
 4243 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.02 │  │  ├─ /usr/bin/krunner
 4242 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.00 │  │  ├─ /usr/bin/krunner
 4241 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.03 │  │  ├─ /usr/bin/krunner
 4240 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.03 │  │  ├─ /usr/bin/krunner
 4239 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.07 │  │  ├─ /usr/bin/krunner
 4238 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.00 │  │  ├─ /usr/bin/krunner
 4237 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.04 │  │  ├─ /usr/bin/krunner
 4236 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.02 │  │  ├─ /usr/bin/krunner
  669 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.12 │  │  ├─ /usr/bin/krunner
  638 nero       20   0 6496M  130M 80708 S  0.0  1.7  0:00.76 │  │  └─ /usr/bin/krunner
  627 nero       39  19 5522M 68196 58996 S  0.0  0.8  0:06.58 │  ├─ /usr/bin/baloo_file
 3025 nero       39  19 5488M 37776 30628 S  0.0  0.5  0:00.06 │  │  ├─ /usr/bin/baloo_file_extractor
 2944 nero       39  19 5522M 68196 58996 S  0.0  0.8  0:00.03 │  │  ├─ /usr/bin/baloo_file
  637 nero       39  19 5522M 68196 58996 S  0.0  0.8  0:00.43 │  │  └─ /usr/bin/baloo_file
  607 nero       20   0  578M 47592 31552 S  0.0  0.6  0:02.56 │  ├─ ksmserver [kdeinit5]
  625 nero       20   0 3070M  133M 67228 S  1.0  1.7  4:14.68 │  │  ├─ kwin_x11
  694 nero       20   0 3070M  133M 67228 S  0.0  1.7  0:00.00 │  │  │  ├─ kwin_x11
  685 nero       20   0 3070M  133M 67228 S  0.0  1.7  0:00.04 │  │  │  ├─ kwin_x11
  667 nero       20   0 3070M  133M 67228 S  0.0  1.7  0:28.58 │  │  │  └─ kwin_x11
  608 nero       20   0  578M 47592 31552 S  0.0  0.6  0:00.68 │  │  └─ ksmserver [kdeinit5]
  592 nero       20   0 1155M 63052 49388 S  0.0  0.8  0:05.88 │  ├─ kded5 [kdeinit5]
  687 nero       20   0  279M 17140 15336 S  0.0  0.2  0:01.08 │  │  ├─ /usr/lib/kf5/kscreen_backend_launcher
  689 nero       20   0  279M 17140 15336 S  0.0  0.2  0:00.43 │  │  │  └─ /usr/lib/kf5/kscreen_backend_launcher
  622 nero       20   0 1155M 63052 49388 S  0.0  0.8  0:00.00 │  │  ├─ kded5 [kdeinit5]
  621 nero       20   0 1155M 63052 49388 S  0.0  0.8  0:00.00 │  │  ├─ kded5 [kdeinit5]
  618 nero       20   0 1155M 63052 49388 S  0.0  0.8  0:00.00 │  │  ├─ kded5 [kdeinit5]
  594 nero       20   0 1155M 63052 49388 S  0.0  0.8  0:00.48 │  │  └─ kded5 [kdeinit5]
  590 nero       20   0  454M 29068 24764 S  0.0  0.4  0:01.19 │  └─ klauncher [kdeinit5] --fd=9
  591 nero       20   0  454M 29068 24764 S  0.0  0.4  0:00.41 │     └─ klauncher [kdeinit5] --fd=9
  588 nero       20   0  8192    92     0 S  0.0  0.0  0:00.00 ├─ /usr/lib/kf5/start_kdeinit --kded +kcminit_startup
  550 nero       20   0 37676  3468  2204 S  0.0  0.0  0:00.30 ├─ /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 15 --sess
  549 nero       20   0 43964  2108  1740 S  0.0  0.0  0:00.00 ├─ dbus-launch --sh-syntax --exit-with-session
  536 nero       20   0 35884  4380  3728 S  0.0  0.1  0:00.02 ├─ /usr/lib/systemd/systemd --user
F1Help  F2Setup F3SearchF4FilterF5SortedF6CollapF7Nice -F8Nice +F9Kill  F10Quit

Is it normal, that there are so many threads from the same process? When opening firefox I get a full window with just entries of `/usr/bin/firefox`.

I have Plasma5 installed with version 5.2 and upgraded ever since.


Some information to my system

uname -a
Linux burner-red 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64 GNU/Linux
lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
        Subsystem: Lenovo Device 3978
        Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev ff)
        Kernel modules: nouveau, nvidia
08:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
pacman -Qs xf86-video
local/xf86-video-fbdev 0.4.4-4 (xorg-drivers xorg)
    X.org framebuffer video driver
local/xf86-video-intel 1:2.99.917+381+g5772556-1 (xorg-drivers xorg)
    X.org Intel i810/i830/i915/945G/G965+ video drivers
local/xf86-video-vesa 2.3.4-1 (xorg-drivers xorg)
    X.org vesa video driver
pacman -Qs plasma
...
local/plasma-desktop 5.4.1-2 (plasma)
    KDE Plasma Desktop
local/plasma-framework 5.14.0-1 (kf5)
    Plasma library and runtime components based upon KF5 and Qt5
local/plasma-meta 5.4-2
    Meta package to install KDE Plasma
...

Last edited by NeroBurner (2015-09-23 14:11:12)

Offline

#2 2015-09-23 15:14:55

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,313

Re: Plasma5 spawns massive amount of threads

No, that's definitely not normal. Try downgrading dbus/libdbus to see if it's related to the recent changes.

Online

#3 2015-09-24 07:44:47

NeroBurner
Member
Registered: 2013-09-05
Posts: 31

Re: Plasma5 spawns massive amount of threads

downgraded dbus and libdbus from 1.10.0-3 to 1.8.18-1 and still the same output. Just Firefox, htop and one window of Dolphin open

  1  [|                                                   0.5%]     Tasks: 77, 132 thr; 1 running
  2  [|                                                   0.5%]     Load average: 0.09 0.42 0.30 
  3  [||                                                  1.4%]     Uptime: 00:07:25
  4  [|                                                   0.5%]
  Mem[|||||||||||||                                 942/7905MB]
  Swp[                                                0/7904MB]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
  590 nero       20   0  171M  4404  3988 S  0.0  0.1  0:00.00 │  └─ /usr/lib/dconf/dconf-service
  580 nero       20   0  434M 34248 29572 S  0.0  0.4  0:00.13 ├─ /usr/bin/kglobalaccel5
  581 nero       20   0  434M 34248 29572 S  0.0  0.4  0:00.00 │  └─ /usr/bin/kglobalaccel5
  576 nero       20   0  442M 30796 26516 S  0.0  0.4  0:00.08 ├─ /usr/bin/kaccess
  577 nero       20   0  442M 30796 26516 S  0.0  0.4  0:00.00 │  └─ /usr/bin/kaccess
  560 nero       20   0  322M 23276 19668 S  0.0  0.3  0:00.10 ├─ kdeinit5: Running...
 1122 nero       20   0  464M 29268 24480 S  0.0  0.4  0:00.04 │  ├─ thumbnail.so [kdeinit5] thumbnail local:/run/user/1000/klauncher
 1123 nero       20   0  464M 29268 24480 S  0.0  0.4  0:00.00 │  │  └─ thumbnail.so [kdeinit5] thumbnail local:/run/user/1000/klaunc
 1115 nero       20   0  544M 80012 55668 S  0.0  1.0  0:00.86 │  ├─ /usr/bin/kate -b /home/nero/htop_output.txt
 1116 nero       20   0  544M 80012 55668 S  0.0  1.0  0:00.00 │  │  └─ /usr/bin/kate -b /home/nero/htop_output.txt
 1114 nero       20   0  324M 20324 16704 S  0.0  0.3  0:00.00 │  ├─ file.so [kdeinit5] file local:/run/user/1000/klauncherLhX561.1.s
 1113 nero       20   0  330M 22980 19024 S  0.0  0.3  0:00.03 │  ├─ trash.so [kdeinit5] trash local:/run/user/1000/klauncherLhX561.1
 1112 nero       20   0  326M 20376 16748 S  0.0  0.3  0:00.00 │  ├─ file.so [kdeinit5] file local:/run/user/1000/klauncherLhX561.1.s
 1106 nero       20   0  602M 76584 53448 S  0.0  0.9  0:00.81 │  ├─ /usr/bin/dolphin
 1108 nero       20   0  602M 76584 53448 S  0.0  0.9  0:00.00 │  │  ├─ /usr/bin/dolphin
 1107 nero       20   0  602M 76584 53448 S  0.0  0.9  0:00.01 │  │  └─ /usr/bin/dolphin
 1094 nero       20   0  326M 21068 17380 S  0.0  0.3  0:00.00 │  ├─ file.so [kdeinit5] file local:/run/user/1000/klauncherLhX561.1.s
 1093 nero       20   0  326M 20384 16744 S  0.0  0.3  0:00.00 │  ├─ file.so [kdeinit5] file local:/run/user/1000/klauncherLhX561.1.s
 1004 nero       20   0 1229M  345M 98744 S  0.5  4.4  0:10.91 │  ├─ /usr/bin/firefox
 1090 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1089 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1088 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1086 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1085 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1084 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1080 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.30 │  │  ├─ /usr/bin/firefox
 1077 nero       21   1 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1076 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1075 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1074 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1072 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.02 │  │  ├─ /usr/bin/firefox
 1071 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1069 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1068 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1067 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1056 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.13 │  │  ├─ /usr/bin/firefox
 1054 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1045 nero       20   0 1229M  345M 98744 S  0.5  4.4  0:00.14 │  │  ├─ /usr/bin/firefox
 1038 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1037 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1036 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1035 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1034 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.19 │  │  ├─ /usr/bin/firefox
 1033 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1032 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1031 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1030 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1029 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1028 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.61 │  │  ├─ /usr/bin/firefox
 1027 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1023 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1022 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.04 │  │  ├─ /usr/bin/firefox
 1021 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.13 │  │  ├─ /usr/bin/firefox
 1020 nero       21   1 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1019 nero       21   1 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
 1018 nero       20   0 1229M  345M 98744 S  0.0  4.4  0:00.00 │  │  ├─ /usr/bin/firefox
F1Help  F2Setup F3SearchF4FilterF5SortedF6CollapF7Nice -F8Nice +F9Kill  F10Quit

Offline

#4 2015-09-24 07:55:21

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,313

Re: Plasma5 spawns massive amount of threads

Forget my previous reply, those are threads, not independent processes. This is normal, your system's unresponsiveness has nothing to do with this.

Last edited by arojas (2015-09-24 08:38:40)

Online

#5 2015-09-24 15:59:05

rооt
Member
From: Ukraine
Registered: 2015-06-20
Posts: 5

Re: Plasma5 spawns massive amount of threads

Offline

#6 2015-09-25 10:22:17

NeroBurner
Member
Registered: 2013-09-05
Posts: 31

Re: Plasma5 spawns massive amount of threads

rооt wrote:

Thanks, but I don't think, that it is the same. My threads do disappear when I close the programs

Offline

#7 2015-09-25 11:40:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Plasma5 spawns massive amount of threads

They are threads they are created by programs to do a variety of things, why would you think this to be unnormal behaviour? Quick example which I know of, dolphin will create threads for all your cpu cores in order to speed up directory listing. That a browser uses a ton is pretty easily explained, all those tabs running connections/animations/flash/whatev will all have to be in a thread to do these tasks "simultaneously"

Last edited by V1del (2015-09-25 11:43:30)

Offline

Board footer

Powered by FluxBB