X using too much CPU

Leap 42.3
kernel 4.8.5
KDE 5.32.0 Plasma 5.8.7

X is using 40% plus of my cpu power. This makes the whole system very unresponsive
I checked with top and nothing else except an occasional kwin is using much at all
How can I debug this?

Hi
Sounds like it’s probably tracker running in the background creating an initial index of files when system is idle… You should be able to disable/remove or let it finish…

Using ps aux|grep track returns nothing. Also, this doesnt quit after awhile, its quite constant

If you take a look at the KDE bugtracking system https://bugs.kde.org/ there are many reports of high CPU usage by X, kwin, plasmashell, or combinations thereof…

This one in particular https://bugs.kde.org/show_bug.cgi?id=378010 tracks many non specific cases, maybe something of relevance to yours in amongst it.

Here is what is running


# top -b  -n 1
top - 08:02:24 up  1:47,  1 user,  load average: 1.45, 1.45, 1.37
Tasks: 168 total,   2 running, 166 sleeping,   0 stopped,   0 zombie
%Cpu(s):  8.7 us,  0.5 sy,  6.7 ni, 83.9 id,  0.1 wa,  0.0 hi,  0.1 si,  0.0 st
KiB Mem:   8068284 total,  2160292 used,  5907992 free,    65976 buffers
KiB Swap:  1051644 total,        0 used,  1051644 free.  1006040 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
 1356 root      20   0  418876 102404  44468 S 40.00 1.269  32:23.76 X
 4218 root      20   0       0      0      0 R 6.667 0.000   0:03.33 kworker/u+
    1 root      20   0  119372   5512   3940 S 0.000 0.068   0:02.10 systemd
    2 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kthreadd
    3 root      20   0       0      0      0 S 0.000 0.000   0:00.10 ksoftirqd+
    5 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kworker/0+
    7 root      20   0       0      0      0 S 0.000 0.000   0:03.22 rcu_sched
    8 root      20   0       0      0      0 S 0.000 0.000   0:00.00 rcu_bh
    9 root      rt   0       0      0      0 S 0.000 0.000   0:00.03 migration+
   10 root      rt   0       0      0      0 S 0.000 0.000   0:00.01 watchdog/0
   11 root      rt   0       0      0      0 S 0.000 0.000   0:00.01 watchdog/1
   12 root      rt   0       0      0      0 S 0.000 0.000   0:00.09 migration+
   13 root      20   0       0      0      0 S 0.000 0.000   0:00.07 ksoftirqd+
   15 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kworker/1+
   16 root      rt   0       0      0      0 S 0.000 0.000   0:00.01 watchdog/2
   17 root      rt   0       0      0      0 S 0.000 0.000   0:00.09 migration+
   18 root      20   0       0      0      0 S 0.000 0.000   0:00.05 ksoftirqd+
   20 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kworker/2+
   21 root      rt   0       0      0      0 S 0.000 0.000   0:00.01 watchdog/3
   22 root      rt   0       0      0      0 S 0.000 0.000   0:00.10 migration+
   23 root      20   0       0      0      0 S 0.000 0.000   0:00.05 ksoftirqd+
   25 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kworker/3+
   27 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kdevtmpfs
   28 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 netns
   29 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 perf
   30 root      20   0       0      0      0 S 0.000 0.000   0:00.00 khungtaskd
   31 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 writeback
   32 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kcompactd0
   33 root      25   5       0      0      0 S 0.000 0.000   0:00.00 ksmd
   35 root      39  19       0      0      0 S 0.000 0.000   0:00.13 khugepaged
   36 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 crypto
   37 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kintegrit+
   38 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 bioset
   39 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kblockd
   40 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 devfreq_wq
   41 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kswapd0
   42 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 vmstat
   43 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 bioset
   44 root      20   0       0      0      0 S 0.000 0.000   0:00.00 fsnotify_+
   58 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kthrotld
   61 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kpsmoused
   63 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 ipv6_addr+
   73 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 deferwq
  278 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 ata_sff
  342 root      20   0       0      0      0 S 0.000 0.000   0:00.00 scsi_eh_0
  358 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 scsi_tmf_0
  359 root      20   0       0      0      0 S 0.000 0.000   0:00.00 scsi_eh_1
  360 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 scsi_tmf_1
  361 root      20   0       0      0      0 S 0.000 0.000   0:00.00 scsi_eh_2
  362 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 scsi_tmf_2
  363 root      20   0       0      0      0 S 0.000 0.000   0:00.00 scsi_eh_3
  364 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 scsi_tmf_3
  381 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 bioset
  382 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 bioset
  386 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kworker/1+
  387 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kworker/0+
  403 root      20   0       0      0      0 S 0.000 0.000   0:00.02 jbd2/sda2+
  404 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 ext4-rsv-+
  477 root      20   0  117240  58040  57688 S 0.000 0.719   0:00.21 systemd-j+
  520 root       0 -20       0      0      0 S 0.000 0.000   0:00.01 kworker/3+
  526 root      20   0   44788   4240   2912 S 0.000 0.053   0:00.10 systemd-u+
  574 root      20   0   12024   6636   1516 S 0.000 0.082   0:00.70 haveged
  673 root     -51   0       0      0      0 S 0.000 0.000   0:00.00 irq/44-me+
  675 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kworker/u+
  677 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 hci0
  678 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 hci0
  684 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 cfg80211
  687 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kworker/u+
  921 root      20   0       0      0      0 S 0.000 0.000   0:00.00 jbd2/sda1+
  923 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 ext4-rsv-+
  934 root      20   0       0      0      0 S 0.000 0.000   0:00.08 jbd2/sda4+
  935 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 ext4-rsv-+
  946 root      16  -4   30364   1856   1576 S 0.000 0.023   0:00.00 auditd
  950 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kauditd
  966 avahi     20   0   28084   2768   2520 S 0.000 0.034   0:00.03 avahi-dae+
  968 root      20   0  342336   9396   7680 S 0.000 0.116   0:00.02 ModemMana+
  973 root      20   0   25200   4212   3376 S 0.000 0.052   0:00.02 smartd
  980 root      20   0   19248   2704   2472 S 0.000 0.034   0:00.17 irqbalance
  982 message+  20   0   49020   5208   3816 S 0.000 0.065   0:00.92 dbus-daem+
  984 root      20   0    7348   1292   1180 S 0.000 0.016   0:00.10 gpm
  988 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kworker/2+
  990 root      20   0  498364  13600  11228 S 0.000 0.169   0:01.69 NetworkMa+
  996 root      20   0   19648   2860   2648 S 0.000 0.035   0:00.00 bluetoothd
 1003 nscd      20   0  806700   2864   2304 S 0.000 0.035   0:00.77 nscd
 1006 root      20   0   19976   3360   2980 S 0.000 0.042   0:00.00 mcelog
 1026 polkitd   20   0  526028  27312   9540 S 0.000 0.339   0:00.66 polkitd
 1029 root      20   0   22328   2744   2412 S 0.000 0.034   0:00.04 systemd-l+
 1035 root      20   0    4744   1648   1548 S 0.000 0.020   0:00.00 agetty
 1157 root      20   0   57704   6800   5788 S 0.000 0.084   0:00.00 cupsd
 1186 root      20   0    9192   1864   1696 S 0.000 0.023   0:00.00 xinetd
 1220 root      20   0   45304   5512   4912 S 0.000 0.068   0:00.00 sshd
 1281 root      20   0  183188  14192  12992 S 0.000 0.176   0:00.00 sddm
 1381 root      20   0   42524   5392   4836 S 0.000 0.067   0:01.08 tempmonX
 1417 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 kmemstick
 1418 root      20   0       0      0      0 D 0.000 0.000   0:00.40 rtsx_usb_+
 1436 lighttpd  20   0   37228   1928   1404 S 0.000 0.024   0:00.13 lighttpd
 1437 lighttpd  20   0   62596  13720   9984 S 0.000 0.170   0:00.00 php
 1438 lighttpd  20   0   62596   3772      0 S 0.000 0.047   0:00.00 php
 1440 lighttpd  20   0   62596  13656   9916 S 0.000 0.169   0:00.00 php
 1441 lighttpd  20   0   62596   3772      0 S 0.000 0.047   0:00.00 php
 1495 root      20   0   31168   6448   5772 S 0.000 0.080   0:00.80 wpa_suppl+
 1559 root      20   0   33960   2532   2112 S 0.000 0.031   0:00.01 master
 1561 postfix   20   0   36196   5320   4836 S 0.000 0.066   0:00.00 qmgr
 1582 root      20   0   18876   2640   2056 S 0.000 0.033   0:00.00 cron
 1588 root       0 -20       0      0      0 S 0.000 0.000   0:00.00 ktpacpid
 1633 root      20   0  145224  13460  12216 S 0.000 0.167   0:00.00 sddm-help+
 1635 erbenton  20   0   36892   4704   3920 S 0.000 0.058   0:00.03 systemd
 1639 erbenton  20   0   86292   1780     12 S 0.000 0.022   0:00.00 (sd-pam)
 1642 erbenton  20   0   13128   2868   2548 S 0.000 0.036   0:00.03 startkde
 1691 erbenton  20   0   14172   1832   1616 S 0.000 0.023   0:00.00 dbus-laun+
 1692 erbenton  20   0   40080   2928   2172 S 0.000 0.036   0:00.43 dbus-daem+
 1693 erbenton  20   0   13312    332      0 S 0.000 0.004   0:00.01 ssh-agent
 1694 erbenton  20   0   17500    240     12 S 0.000 0.003   0:00.08 gpg-agent
 1861 erbenton  20   0    6120     88      0 S 0.000 0.001   0:00.00 start_kde+
 1862 erbenton  20   0  296756  21748  18600 S 0.000 0.270   0:00.05 kdeinit5
 1863 erbenton  20   0  517572  34188  30352 S 0.000 0.424   0:00.17 klauncher
 1866 erbenton  20   0 1342572  56520  41536 S 0.000 0.701   0:01.03 kded5
 1883 root      20   0  367244   9676   6268 S 0.000 0.120   0:00.58 udisksd
 1891 root      20   0  296296   8608   6964 S 0.000 0.107   0:00.44 upowerd
 1921 erbenton  20   0  519452  34152  29184 S 0.000 0.423   0:00.21 kglobalac+
 1925 erbenton  20   0  530076  32344  28108 S 0.000 0.401   0:00.12 kaccess
 1929 erbenton  20   0  342560  15668  14148 S 0.000 0.194   0:00.07 kscreen_b+
 1938 erbenton  20   0  178328   6500   4056 S 0.000 0.081   0:00.00 dconf-ser+
 1943 erbenton  20   0   69304   6668   6196 S 0.000 0.083   0:00.00 kwrapper5
 1944 erbenton  20   0  636776  41340  36252 S 0.000 0.512   0:00.22 ksmserver
 1948 erbenton  20   0 3047984  71608  51100 S 0.000 0.888   0:21.79 kwin_x11
 1951 erbenton  20   0  654448  42024  37052 S 0.000 0.521   0:00.37 kdeconnec+
 1952 erbenton  20   0  0.252t 138460  98436 S 0.000 1.716   0:01.45 krunner
 1953 erbenton  20   0 3781772 209124  99540 S 0.000 2.592   0:55.04 plasmashe+
 1954 erbenton  20   0  680632  38428  32368 S 0.000 0.476   0:00.14 polkit-kd+
 1955 erbenton  20   0  520564  32528  28772 S 0.000 0.403   0:01.09 xembedsni+
 1969 erbenton   9 -11  636804  12832   9712 S 0.000 0.159   0:00.49 pulseaudio
 1970 rtkit     21   1  182424   3580   3292 S 0.000 0.044   0:00.04 rtkit-dae+
 1977 root      10 -10       0      0      0 S 0.000 0.000   0:00.00 krfcommd
 1994 erbenton  20   0  671800  39076  32276 S 0.000 0.484   0:00.43 org_kde_p+
 1999 erbenton  20   0  907624  36524  32332 S 0.000 0.453   0:00.26 kactivity+
 2005 erbenton  20   0  518772  34296  30484 S 0.000 0.425   0:00.12 kactivity+
 2010 erbenton  20   0  266948  22804  18996 S 0.000 0.283   0:21.65 gkrellm
 2014 erbenton  20   0  518772  34396  30580 S 0.000 0.426   0:00.12 kactivity+
 2038 erbenton  20   0 2852068 447972 111560 S 0.000 5.552   2:43.63 firefox
 2060 erbenton  20   0  812460  73468  62280 S 0.000 0.911   0:00.55 systemset+
 2110 erbenton  20   0  518656  37136  33012 S 0.000 0.460   0:00.49 kmozillah+
 2127 erbenton  20   0  335400   5156   4684 S 0.000 0.064   0:00.01 at-spi-bu+
 2174 erbenton  20   0   21424   2704   2452 S 0.000 0.034   0:00.00 obexd
 2189 erbenton  20   0   84320  12104   8548 S 0.000 0.150   0:17.97 boinc
 2193 erbenton  20   0  280776  30244  25960 S 0.000 0.375   0:00.17 kuiserver
 2717 erbenton  20   0  778940  66776  55552 S 0.000 0.828   0:01.49 konsole
 2726 erbenton  20   0   15892   5816   2972 S 0.000 0.072   0:00.04 bash
 3069 erbenton  20   0 2140968 290628  92944 S 0.000 3.602   0:15.42 thunderbi+
 3117 erbenton  20   0  518604  37300  33176 S 0.000 0.462   0:00.22 kmozillah+
 3286 root      20   0       0      0      0 S 0.000 0.000   0:00.17 kworker/0+
 3458 root      20   0       0      0      0 S 0.000 0.000   0:00.13 kworker/3+
 3609 root      20   0       0      0      0 S 0.000 0.000   0:09.31 kworker/u+
 3787 root      20   0       0      0      0 S 0.000 0.000   0:00.19 kworker/0+
 3838 root      20   0       0      0      0 S 0.000 0.000   0:00.02 kworker/2+
 4099 root      20   0       0      0      0 S 0.000 0.000   0:00.02 kworker/2+
 4111 root      20   0       0      0      0 S 0.000 0.000   0:02.50 kworker/u+
 4173 root      20   0       0      0      0 S 0.000 0.000   0:00.86 kworker/1+
 4249 root      20   0       0      0      0 S 0.000 0.000   0:00.17 kworker/1+
 4259 postfix   20   0   35812   3712   3372 S 0.000 0.046   0:00.00 pickup
 4264 root      20   0   82784   4952   4312 S 0.000 0.061   0:00.00 su
 4268 root      20   0   15820   5744   2976 S 0.000 0.071   0:00.04 bash
 4305 root      20   0       0      0      0 S 0.000 0.000   0:00.02 kworker/3+
 4369 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kworker/2+
 4425 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kworker/0+
 4448 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kworker/1+
 4476 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kworker/3+
 4491 root      20   0   15208   2420   2184 R 0.000 0.030   0:00.00 top




Hi
So if it’s X (Xorg), then look at pstree to see the underling processes?


pstree
pstree -p
pstree -p -H `pidof Xorg` | grep track

Thats a lot of data so i would prefer to include it as an attachment but I dont have perms to do that here
so, here is the data - sorry its long, in fact too long for 1 post


# pstree
systemd─┬─ModemManager─┬─{gdbus}
        │              └─{gmain}
        ├─NetworkManager─┬─{gdbus}
        │                └─{gmain}
        ├─agetty
        ├─at-spi-bus-laun─┬─{dconf worker}
        │                 ├─{gdbus}
        │                 └─{gmain}
        ├─auditd───{auditd}
        ├─avahi-daemon
        ├─bluetoothd
        ├─cron
        ├─cupsd───2*[dbus]
        ├─2*[dbus-daemon]
        ├─dbus-launch
        ├─dconf-service─┬─{gdbus}
        │               └─{gmain}
        ├─gpm
        ├─haveged
        ├─irqbalance
        ├─kaccess─┬─{QDBusConnection}
        │         └─{QXcbEventReader}
        ├─2*[kactivitymanage─┬─{QDBusConnection}]
        │                    └─{QXcbEventReader}]
        ├─kactivitymanage─┬─{QDBusConnection}
        │                 ├─3*{QThread}]
        │                 └─{QXcbEventReader}
        ├─kdeinit5─┬─desktop.so───{QDBusConnection}
        │          ├─file.so
        │          ├─firefox─┬─kmozillahelper─┬─{QDBusConnection}
        │          │         │                └─{QXcbEventReader}
        │          │         ├─{BgHangManager}
        │          │         ├─{Cache I/O}
        │          │         ├─{Cache2 I/O}
        │          │         ├─{Compositor}
        │          │         ├─{DNS Resolver #2}
        │          │         ├─{DNS Resolver #3}
        │          │         ├─2*{DOM Worker}]
        │          │         ├─3*{DataStorage}]
        │          │         ├─{GMPThread}
        │          │         ├─{Gecko_IOThread}
        │          │         ├─{HTML5 Parser}
        │          │         ├─{Hang Monitor}
        │          │         ├─{IPDL Background}
        │          │         ├─{IdentityCrypto}
        │          │         ├─{ImageBridgeChil}
        │          │         ├─{ImageIO}
        │          │         ├─{ImgDecoder #1}
        │          │         ├─{ImgDecoder #2}
        │          │         ├─{ImgDecoder #3}
        │          │         ├─8*{JS Helper}]
        │          │         ├─{JS Watchdog}
        │          │         ├─{Link Monitor}
        │          │         ├─{MediaPD~oder #4}
        │          │         ├─{MediaPD~oder #5}
        │          │         ├─2*{MediaPl~back #4}]
        │          │         ├─{MediaPl~back #5}
        │          │         ├─{MediaPl~back #6}
        │          │         ├─{MediaPl~back #7}
        │          │         ├─{MediaPl~back #8}
        │          │         ├─{MediaTimer #2}
        │          │         ├─{Proxy R~olution}
        │          │         ├─{Socket Thread}
        │          │         ├─{SoftwareVsyncTh}
        │          │         ├─{Timer}
        │          │         ├─{URL Classifier}
        │          │         ├─{localStorage DB}
        │          │         ├─{mozStorage #1}
        │          │         ├─{mozStorage #2}
        │          │         ├─{mozStorage #3}
        │          │         ├─{mozStorage #4}
        │          │         ├─{mozStorage #5}
        │          │         ├─{mozStorage #6}
        │          │         └─2*{threaded-ml}]
        │          ├─gkrellm
        │          ├─kded5─┬─{KCupsConnection}
        │          │       ├─{QDBusConnection}
        │          │       ├─{QThread}
        │          │       ├─{QXcbEventReader}
        │          │       ├─{Qt bearer threa}
        │          │       ├─{gdbus}
        │          │       └─{gmain}
        │          ├─klauncher─┬─{QDBusConnection}
        │          │           └─{QXcbEventReader}
        │          ├─konsole─┬─bash───pstree
        │          │         ├─{QDBusConnection}
        │          │         ├─{QXcbEventReader}
        │          │         ├─{llvmpipe-0}
        │          │         ├─{llvmpipe-1}
        │          │         ├─{llvmpipe-2}
        │          │         └─{llvmpipe-3}
        │          ├─ksmserver─┬─kdeconnectd─┬─{QDBusConnection}
        │          │           │             ├─{QXcbEventReader}
        │          │           │             └─{Qt bearer threa}
        │          │           ├─krunner─┬─{QDBusConnection}
        │          │           │         ├─{QQmlThread}
        │          │           │         ├─{QXcbEventReader}
        │          │           │         ├─{llvmpipe-0}
        │          │           │         ├─{llvmpipe-1}
        │          │           │         ├─{llvmpipe-2}
        │          │           │         └─{llvmpipe-3}
        │          │           ├─kwin_x11─┬─{QDBusConnection}
        │          │           │          ├─{QQmlThread}
        │          │           │          ├─{QXcbEventReader}
        │          │           │          ├─{kwin_x11}
        │          │           │          ├─{llvmpipe-0}
        │          │           │          ├─{llvmpipe-1}
        │          │           │          ├─{llvmpipe-2}
        │          │           │          └─{llvmpipe-3}
        │          │           ├─plasmashell─┬─{KCupsConnection}
        │          │           │             ├─{QDBusConnection}
        │          │           │             ├─2*{QQmlThread}]
        │          │           │             ├─{QQuickPixmapRea}
        │          │           │             ├─{QXcbEventReader}
        │          │           │             ├─{llvmpipe-0}
        │          │           │             ├─{llvmpipe-1}
        │          │           │             ├─{llvmpipe-2}
        │          │           │             ├─{llvmpipe-3}
        │          │           │             └─{plasmashell}
        │          │           ├─polkit-kde-auth─┬─{QDBusConnection}
        │          │           │                 ├─{QXcbEventReader}
        │          │           │                 ├─{gdbus}
        │          │           │                 └─{gmain}
        │          │           ├─xembedsniproxy─┬─{QDBusConnection}
        │          │           │                └─{QXcbEventReader}
        │          │           ├─{QDBusConnection}
        │          │           └─{QXcbEventReader}
        │          ├─org_kde_powerde─┬─{QDBusConnection}
        │          │                 ├─{QXcbEventReader}
        │          │                 ├─{gdbus}
        │          │                 └─{gmain}
        │          └─2*[trash.so]
        ├─kglobalaccel5─┬─{QDBusConnection}
        │               └─{QXcbEventReader}
        ├─kscreen_backend─┬─{QDBusConnection}
        │                 └─{QXcbEventReader}
        ├─kuiserver
        ├─lighttpd───2*[php───php]
        ├─master─┬─pickup
        │        └─qmgr
        ├─mcelog
        ├─nscd───10*{nscd}]
        ├─obexd
        ├─polkitd─┬─{JS GC Helper}
        │         ├─{JS Sour~ Thread}
        │         ├─{gdbus}
        │         ├─{gmain}
        │         └─{polkitd}
        ├─pulseaudio───{alsa-sink-CX207}
        ├─rtkit-daemon───2*{rtkit-daemon}]
        ├─sddm─┬─X─┬─{llvmpipe-0}
        │      │   ├─{llvmpipe-1}
        │      │   ├─{llvmpipe-2}
        │      │   └─{llvmpipe-3}
        │      ├─sddm-helper───startkde─┬─gpg-agent
        │      │                        ├─kwrapper5
        │      │                        └─ssh-agent
        │      └─{QDBusConnection}
        ├─smartd
        ├─sshd
        ├─start_kdeinit
        ├─systemd───(sd-pam)
        ├─systemd-journal
        ├─systemd-logind
        ├─systemd-udevd
        ├─tempmonX
        ├─udisksd─┬─{cleanup}
        │         ├─{gdbus}
        │         ├─{gmain}
        │         └─{probing-thread}
        ├─upowerd─┬─{gdbus}
        │         └─{gmain}
        ├─wpa_supplicant
        └─xinetd


2nd part(of 3) of requested pstree info


# pstree -p
systemd(1)─┬─ModemManager(980)─┬─{gdbus}(1051)
           │                   └─{gmain}(1044)
           ├─NetworkManager(993)─┬─{gdbus}(1081)
           │                     └─{gmain}(1072)
           ├─agetty(1020)
           ├─at-spi-bus-laun(2260)─┬─{dconf worker}(2263)
           │                       ├─{gdbus}(2268)
           │                       └─{gmain}(2264)
           ├─auditd(936)───{auditd}(937)
           ├─avahi-daemon(976)
           ├─bluetoothd(967)
           ├─cron(1429)
           ├─cupsd(1118)─┬─dbus(1212)
           │             └─dbus(1214)
           ├─dbus-daemon(957)
           ├─dbus-daemon(1749)
           ├─dbus-launch(1748)
           ├─dconf-service(1998)─┬─{gdbus}(2000)
           │                     └─{gmain}(1999)
           ├─gpm(1008)
           ├─haveged(567)
           ├─irqbalance(965)
           ├─kaccess(1980)─┬─{QDBusConnection}(1981)
           │               └─{QXcbEventReader}(1982)
           ├─kactivitymanage(2053)─┬─{QDBusConnection}(2057)
           │                       └─{QXcbEventReader}(2059)
           ├─kactivitymanage(2055)─┬─{QDBusConnection}(2056)
           │                       ├─{QThread}(2078)
           │                       ├─{QThread}(2152)
           │                       ├─{QThread}(2153)
           │                       ├─{QThread}(2612)
           │                       └─{QXcbEventReader}(2061)
           ├─kactivitymanage(2063)─┬─{QDBusConnection}(2064)
           │                       └─{QXcbEventReader}(2074)
           ├─kdeinit5(1917)─┬─firefox(2160)─┬─kmozillahelper(2273)─┬─{QDBusConnection}(2286)
           │                │               │                      └─{QXcbEventReader}(2285)
           │                │               ├─{BgHangManager}(2227)
           │                │               ├─{Cache I/O}(2361)
           │                │               ├─{Cache2 I/O}(2253)
           │                │               ├─{Compositor}(2267)
           │                │               ├─{DNS Resolver #2}(2372)
           │                │               ├─{DNS Resolver #3}(2371)
           │                │               ├─{DNS Resolver #5}(2557)
           │                │               ├─{DOM Worker}(2325)
           │                │               ├─{DOM Worker}(2339)
           │                │               ├─{DataStorage}(2257)
           │                │               ├─{DataStorage}(2258)
           │                │               ├─{DataStorage}(2319)
           │                │               ├─{GMPThread}(2262)
           │                │               ├─{Gecko_IOThread}(2194)
           │                │               ├─{HTML5 Parser}(2317)
           │                │               ├─{Hang Monitor}(2226)
           │                │               ├─{IPDL Background}(2318)
           │                │               ├─{IdentityCrypto}(2414)
           │                │               ├─{ImageBridgeChil}(2352)
           │                │               ├─{ImageIO}(2272)
           │                │               ├─{ImgDecoder #1}(2270)
           │                │               ├─{ImgDecoder #2}(2271)
           │                │               ├─{ImgDecoder #3}(2269)
           │                │               ├─{JS Helper}(2212)
           │                │               ├─{JS Helper}(2213)
           │                │               ├─{JS Helper}(2215)
           │                │               ├─{JS Helper}(2216)
           │                │               ├─{JS Helper}(2217)
           │                │               ├─{JS Helper}(2218)
           │                │               ├─{JS Helper}(2219)
           │                │               ├─{JS Helper}(2220)
           │                │               ├─{JS Watchdog}(2210)
           │                │               ├─{Link Monitor}(2208)
           │                │               ├─{MediaPl~back #4}(2401)
           │                │               ├─{MediaPl~back #4}(2402)
           │                │               ├─{Proxy R~olution}(2290)
           │                │               ├─{Socket Thread}(2209)
           │                │               ├─{SoftwareVsyncTh}(2266)
           │                │               ├─{Timer}(2207)
           │                │               ├─{URL Classifier}(2320)
           │                │               ├─{localStorage DB}(2328)
           │                │               ├─{mozStorage #1}(2330)
           │                │               ├─{mozStorage #2}(2359)
           │                │               ├─{mozStorage #3}(2365)
           │                │               ├─{mozStorage #4}(2368)
           │                │               ├─{mozStorage #5}(2369)
           │                │               ├─{mozStorage #6}(2386)
           │                │               ├─{threaded-ml}(2396)
           │                │               └─{threaded-ml}(2404)
           │                ├─gkrellm(2060)
           │                ├─kded5(1921)─┬─{KCupsConnection}(1930)
           │                │             ├─{QDBusConnection}(1926)
           │                │             ├─{QThread}(1931)
           │                │             ├─{QXcbEventReader}(1924)
           │                │             ├─{Qt bearer threa}(2221)
           │                │             ├─{gdbus}(1928)
           │                │             └─{gmain}(1927)
           │                ├─klauncher(1918)─┬─{QDBusConnection}(1920)
           │                │                 └─{QXcbEventReader}(1919)
           │                ├─konsole(2093)─┬─bash(2145)───pstree(2681)
           │                │               ├─{QDBusConnection}(2101)
           │                │               ├─{QXcbEventReader}(2095)
           │                │               ├─{llvmpipe-0}(2122)
           │                │               ├─{llvmpipe-1}(2123)
           │                │               ├─{llvmpipe-2}(2124)
           │                │               └─{llvmpipe-3}(2125)
      
        

last part of pstree info


    │                ├─ksmserver(1990)─┬─kdeconnectd(2003)─┬─{QDBusConnection}(2037)
           │                │                 │                   ├─{QXcbEventReader}(2016)
           │                │                 │                   └─{Qt bearer threa}(2038)
           │                │                 ├─krunner(2004)─┬─{QDBusConnection}(2058)
           │                │                 │               ├─{QQmlThread}(2079)
           │                │                 │               ├─{QXcbEventReader}(2015)
           │                │                 │               ├─{llvmpipe-0}(2065)
           │                │                 │               ├─{llvmpipe-1}(2066)
           │                │                 │               ├─{llvmpipe-2}(2067)
           │                │                 │               └─{llvmpipe-3}(2068)
           │                │                 ├─kwin_x11(2001)─┬─{QDBusConnection}(2002)
           │                │                 │                ├─{QQmlThread}(2088)
           │                │                 │                ├─{QXcbEventReader}(2011)
           │                │                 │                ├─{kwin_x11}(2180)
           │                │                 │                ├─{llvmpipe-0}(2096)
           │                │                 │                ├─{llvmpipe-1}(2097)
           │                │                 │                ├─{llvmpipe-2}(2098)
           │                │                 │                └─{llvmpipe-3}(2099)
           │                │                 ├─plasmashell(2005)─┬─kate(2669)─┬─{QDBusConnection}(2671)
           │                │                 │                   │            ├─{QXcbEventReader}(2672)
           │                │                 │                   │            ├─{llvmpipe-0}(2673)
           │                │                 │                   │            ├─{llvmpipe-1}(2674)
           │                │                 │                   │            ├─{llvmpipe-2}(2675)
           │                │                 │                   │            └─{llvmpipe-3}(2676)
           │                │                 │                   ├─thunderbird-bin(2562)─┬─kmozillahelper(2610)─┬─{QD+
           │                │                 │                   │                       │                      └─{QX+
           │                │                 │                   │                       ├─{Cache2 I/O}(2598)
           │                │                 │                   │                       ├─{Compositor}(2605)
           │                │                 │                   │                       ├─{DNS Resolver #1}(2630)
           │                │                 │                   │                       ├─{DOM Worker}(2624)
           │                │                 │                   │                       ├─{DataStorage}(2600)
           │                │                 │                   │                       ├─{DataStorage}(2601)
           │                │                 │                   │                       ├─{DataStorage}(2636)
           │                │                 │                   │                       ├─{GMPThread}(2602)
           │                │                 │                   │                       ├─{Gecko_IOThread}(2571)
           │                │                 │                   │                       ├─{HTML5 Parser}(2614)
           │                │                 │                   │                       ├─{Hang Monitor}(2587)
           │                │                 │                   │                       ├─{IPDL Background}(2615)
           │                │                 │                   │                       ├─{ImageBridgeChil}(2628)
           │                │                 │                   │                       ├─{ImageIO}(2609)
           │                │                 │                   │                       ├─{ImgDecoder #1}(2606)
           │                │                 │                   │                       ├─{ImgDecoder #2}(2607)
           │                │                 │                   │                       ├─{ImgDecoder #3}(2608)
           │                │                 │                   │                       ├─{JS Helper}(2575)
           │                │                 │                   │                       ├─{JS Helper}(2576)
           │                │                 │                   │                       ├─{JS Helper}(2577)
           │                │                 │                   │                       ├─{JS Helper}(2578)
           │                │                 │                   │                       ├─{JS Helper}(2579)
           │                │                 │                   │                       ├─{JS Helper}(2580)
           │                │                 │                   │                       ├─{JS Helper}(2581)
           │                │                 │                   │                       ├─{JS Helper}(2582)
           │                │                 │                   │                       ├─{JS Watchdog}(2574)
           │                │                 │                   │                       ├─{Link Monitor}(2572)
           │                │                 │                   │                       ├─{Proxy R~olution}(2629)
           │                │                 │                   │                       ├─{Socket Thread}(2573)
           │                │                 │                   │                       ├─{SoftwareVsyncTh}(2604)
           │                │                 │                   │                       ├─{Timer}(2599)
           │                │                 │                   │                       ├─{URL Classifier}(2626)
           │                │                 │                   │                       ├─{mozStorage #1}(2618)
           │                │                 │                   │                       ├─{mozStorage #2}(2641)
           │                │                 │                   │                       ├─{mozStorage #3}(2642)
           │                │                 │                   │                       ├─{mozStorage #4}(2644)
           │                │                 │                   │                       ├─{threaded-ml}(2639)
           │                │                 │                   │                       ├─{thunderbird-bin}(2631)
           │                │                 │                   │                       └─{thunderbird-bin}(2662)
           │                │                 │                   ├─{KCupsConnection}(2376)
           │                │                 │                   ├─{QDBusConnection}(2009)
           │                │                 │                   ├─{QQmlThread}(2050)
           │                │                 │                   ├─{QQmlThread}(2195)
           │                │                 │                   ├─{QQuickPixmapRea}(2288)
           │                │                 │                   ├─{QXcbEventReader}(2013)
           │                │                 │                   ├─{llvmpipe-0}(2246)
           │                │                 │                   ├─{llvmpipe-1}(2247)
           │                │                 │                   ├─{llvmpipe-2}(2248)
           │                │                 │                   ├─{llvmpipe-3}(2249)
           │                │                 │                   └─{plasmashell}(2225)
           │                │                 ├─polkit-kde-auth(2006)─┬─{QDBusConnection}(2020)
           │                │                 │                       ├─{QXcbEventReader}(2012)
           │                │                 │                       ├─{gdbus}(2022)
           │                │                 │                       └─{gmain}(2021)
           │                │                 ├─xembedsniproxy(2007)─┬─{QDBusConnection}(2025)
           │                │                 │                      └─{QXcbEventReader}(2014)
           │                │                 ├─{QDBusConnection}(1993)
           │                │                 └─{QXcbEventReader}(1991)
           │                ├─org_kde_powerde(2044)─┬─{QDBusConnection}(2045)
           │                │                       ├─{QXcbEventReader}(2048)
           │                │                       ├─{gdbus}(2070)
           │                │                       └─{gmain}(2069)
           │                ├─trash.so(2299)
           │                └─trash.so(2383)
           ├─kglobalaccel5(1973)─┬─{QDBusConnection}(1977)
           │                     └─{QXcbEventReader}(1976)
           ├─kscreen_backend(1984)─┬─{QDBusConnection}(1987)
           │                       └─{QXcbEventReader}(1985)
           ├─kuiserver(2344)
           ├─lighttpd(1496)─┬─php(1497)───php(1498)
           │                └─php(1501)───php(1502)
           ├─master(1638)─┬─pickup(1639)
           │              └─qmgr(1640)
           ├─mcelog(1010)
           ├─nscd(981)─┬─{nscd}(997)
           │           ├─{nscd}(998)
           │           ├─{nscd}(999)
           │           ├─{nscd}(1000)
           │           ├─{nscd}(1001)
           │           ├─{nscd}(1002)
           │           ├─{nscd}(1003)
           │           ├─{nscd}(1004)
           │           ├─{nscd}(1005)
           │           └─{nscd}(1006)
           ├─obexd(2284)
           ├─polkitd(1052)─┬─{JS GC Helper}(1068)
           │               ├─{JS Sour~ Thread}(1069)
           │               ├─{gdbus}(1058)
           │               ├─{gmain}(1056)
           │               └─{polkitd}(1070)
           ├─pulseaudio(2026)───{alsa-sink-CX207}(2033)
           ├─rtkit-daemon(2028)─┬─{rtkit-daemon}(2031)
           │                    └─{rtkit-daemon}(2032)
           ├─sddm(1224)─┬─X(1292)─┬─{llvmpipe-0}(1467)
           │            │         ├─{llvmpipe-1}(1468)
           │            │         ├─{llvmpipe-2}(1469)
           │            │         └─{llvmpipe-3}(1470)
           │            ├─sddm-helper(1689)───startkde(1698)─┬─gpg-agent(1751)
           │            │                                    ├─kwrapper5(1989)
           │            │                                    └─ssh-agent(1750)
           │            └─{QDBusConnection}(1284)
           ├─smartd(963)
           ├─sshd(1150)
           ├─start_kdeinit(1916)
           ├─systemd(1691)───(sd-pam)(1695)
           ├─systemd-journal(473)
           ├─systemd-logind(1012)
           ├─systemd-udevd(520)
           ├─tempmonX(1414)
           ├─udisksd(1932)─┬─{cleanup}(1939)
           │               ├─{gdbus}(1937)
           │               ├─{gmain}(1935)
           │               └─{probing-thread}(1938)
           ├─upowerd(1940)─┬─{gdbus}(1944)
           │               └─{gmain}(1943)
           ├─wpa_supplicant(1527)
           └─xinetd(1124)

pstree -p -H `pidof Xorg` | grep track <= invalid - no Xorg is running
pstree -p -H `pidof X` | grep track <= returns nothing