Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Kded5 high CPU (Stretch)

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Kded5 high CPU (Stretch)

#1 Post by Hallvor »

Hello!
I am having a strange issue with Kded5 grabbing 100% CPU from time to time. After some experimentation, I think I have found the culprit: Typing Control + F in Dolphin to search for a file.

The CPU spike will start within minutes or hours of performing a search, even if the search window in Dolphin is closed.

Could someone else with KDE (Stretch) test this before I file a bug report?
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Kded5 high CPU (Stretch)

#2 Post by bw123 »

Hallvor wrote:
Could someone else with KDE (Stretch) test this before I file a bug report?
I haven't had issues like this since about half way thru jessie (nepomuk) so I hope it's not back. I don't use dolphin too often but it's pretty good and reliable, just not my style.

When you say it spikes, do you mean it stays at 100% for good? I have a machine with 25 days kde uptime on stretch and it's really doing fine.

They added some cli baloo commands, but I can't find a lot of help, maybe try playing with balooctl.

ah... yeah try with baloosearch from terminal and see if it does the same thing?

No manpages, don't know where the docs are, don't know how it all fits together and don;t know how to find out. I think they went thru most of this a couple years ago so the mailing lists are hard to use also.
resigned by AI ChatGPT

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Kded5 high CPU (Stretch)

#3 Post by Hallvor »

Thanks for the reply!

Yes, Dolphin is (almost always) good and reliable. I had nearly a month of uptime without any issues, but did not use Control + F to find files until yesterday. (I had to find that one file among several thousand others.)

I was quick to close the wondow with the search bar, but to no avail. The CPU spiked to 100% and stayed there. I had to log out and back in again to make the computer behave in a normal manner. This is not the first time. It is more like every single time I use the search function in Dolphin.

Would you mind testing it in Dolphin?

I have no idea what baloo is, but I'll find out.

Edit: I tested baloo with "baloosearch test" from the CLI. I got no errors (or results), and the CPU seems fine.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Kded5 high CPU (Stretch)

#4 Post by bw123 »

Hallvor wrote: Would you mind testing it in Dolphin?
I did so before I posted the first time it has been a couple of hours.

I removed a lot of stuff, including all the ibus, keyboard switchers, languages, etc. and disabled a few of the search plugins in krunner. I don't use a network on that machine either, so I pruned away all the samba and other non-essentials, android phone, upgrade apps I could find. I don't use mail or that pim stuff either so akonadi isn't running.

Maybe it's looking for something on a device it can't find? Does dolphin only search for files, or does it only search for filetypes? I know the thing can use metadata, or file tagging/rating. I don't use that either though.
resigned by AI ChatGPT

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Kded5 high CPU (Stretch)

#5 Post by Hallvor »

I have used the search function several times over the past couple of days, but everything works as normal. It is therefore not possible for me to replicate this issue for now.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
dotlj
Posts: 646
Joined: 2009-12-25 17:21

Re: Kded5 high CPU (Stretch)

#6 Post by dotlj »

Dolphin can be a memory hog and cpu hog, especially when copying directories over a network using FISH://
I haven't found searching causing any problems. scp works much faster and with less resources than Dolphin, so I do most network file transfers with it.

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Kded5 high CPU (Stretch)

#7 Post by Hallvor »

It happened again. Also this time right after deleting local files I had searched for in Dolphin.

Image

Any ideas?

Edit: Added logs. It happened around 10 o'clock.

Code: Select all

feb. 18 09:17:01 debian-hp CRON[4496]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
feb. 18 09:17:01 debian-hp CRON[4495]: pam_unix(cron:session): session closed for user root
feb. 18 09:32:34 debian-hp wpa_supplicant[810]: wlan0: WPA: Group rekeying completed with 38:d5:47:74:4e:9c [GTK=CCMP]
feb. 18 09:58:14 debian-hp su[5020]: Successful su for root by hallvor
feb. 18 09:58:14 debian-hp su[5020]: + /dev/pts/3 hallvor:root
feb. 18 09:58:14 debian-hp su[5020]: pam_unix(su:session): session opened for user root by hallvor(uid=1000)
feb. 18 09:58:14 debian-hp su[5020]: pam_systemd(su:session): Cannot create session: Already running in a session
feb. 18 09:58:42 debian-hp PackageKit[1481]: get-updates transaction /4006_adcaacae from uid 1000 finished with success after 369ms
feb. 18 10:00:09 debian-hp su[5020]: pam_unix(su:session): session closed for user root
feb. 18 10:01:45 debian-hp systemd[1]: Started Run anacron jobs.
feb. 18 10:01:45 debian-hp anacron[5201]: Anacron 2.3 started on 2018-02-18
feb. 18 10:01:45 debian-hp anacron[5201]: Normal exit (0 jobs run)
feb. 18 10:01:45 debian-hp systemd[1]: anacron.timer: Adding 3min 30.780224s random time.
feb. 18 10:02:21 debian-hp dbus-daemon[967]: Rejected: destination has a full message queue, 0 matched rules; type="signal", sender=":1.4251" (uid=1000 pid=5184 comm="/usr/bin/dolphin ") inter
feb. 18 10:04:12 debian-hp su[5254]: Successful su for root by hallvor
feb. 18 10:04:12 debian-hp su[5254]: + /dev/pts/3 hallvor:root
feb. 18 10:04:12 debian-hp su[5254]: pam_unix(su:session): session opened for user root by hallvor(uid=1000)
feb. 18 10:04:12 debian-hp su[5254]: pam_systemd(su:session): Cannot create session: Already running in a session
feb. 18 10:05:19 debian-hp PackageKit[1481]: get-updates transaction /4007_dbabbbba from uid 1000 finished with success after 408ms
feb. 18 10:06:01 debian-hp su[5254]: pam_unix(su:session): session closed for user root
feb. 18 10:13:24 debian-hp su[5775]: Successful su for root by hallvor
feb. 18 10:13:24 debian-hp su[5775]: + /dev/pts/0 hallvor:root
feb. 18 10:13:24 debian-hp su[5775]: pam_unix(su:session): session opened for user root by hallvor(uid=1000)
feb. 18 10:13:24 debian-hp su[5775]: pam_systemd(su:session): Cannot create session: Already running in a session
feb. 18 10:13:46 debian-hp su[5775]: pam_unix(su:session): session closed for user root
feb. 18 10:13:46 debian-hp PackageKit[1481]: get-updates transaction /4008_ebbddbad from uid 1000 finished with success after 420ms
feb. 18 10:17:01 debian-hp CRON[6194]: pam_unix(cron:session): session opened for user root by (uid=0)
feb. 18 10:17:01 debian-hp CRON[6195]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
feb. 18 10:17:01 debian-hp CRON[6194]: pam_unix(cron:session): session closed for user root
feb. 18 10:28:46 debian-hp su[6683]: Successful su for root by hallvor
feb. 18 10:28:46 debian-hp su[6683]: + /dev/pts/0 hallvor:root
feb. 18 10:28:46 debian-hp su[6683]: pam_unix(su:session): session opened for user root by hallvor(uid=1000)
feb. 18 10:28:46 debian-hp su[6683]: pam_systemd(su:session): Cannot create session: Already running in a session
feb. 18 10:31:07 debian-hp su[6683]: pam_unix(su:session): session closed for user root
feb. 18 10:31:15 debian-hp su[6757]: Successful su for root by hallvor
feb. 18 10:31:15 debian-hp su[6757]: + /dev/pts/0 hallvor:root
feb. 18 10:31:15 debian-hp su[6757]: pam_unix(su:session): session opened for user root by hallvor(uid=1000)
feb. 18 10:31:15 debian-hp su[6757]: pam_systemd(su:session): Cannot create session: Already running in a session
feb. 18 10:32:33 debian-hp wpa_supplicant[810]: wlan0: WPA: Group rekeying completed with 38:d5:47:74:4e:9c [GTK=CCMP]
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Kded5 high CPU (Stretch)

#8 Post by debiman »

Hallvor wrote:It happened again. Also this time right after deleting local files I had searched for in Dolphin.

Image

Any ideas?
on this scrot, gwenview seems just as busy as kded5.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Kded5 high CPU (Stretch)

#9 Post by bw123 »


dbus-daemon[967]: Rejected: destination has a full message queue
Never seen one of these before, but it doesn't sound good. Did you look it up? Also what is "PackageKit[1481]: get-updates" doing every few minutes? That sounds a little over zealous.
resigned by AI ChatGPT

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Kded5 high CPU (Stretch)

#10 Post by Hallvor »

bw123 wrote:

dbus-daemon[967]: Rejected: destination has a full message queue
Never seen one of these before, but it doesn't sound good. Did you look it up? Also what is "PackageKit[1481]: get-updates" doing every few minutes? That sounds a little over zealous.
I did search online, and it wasn't of much help. Many old and obscure bugs and few solutions. I did find something useful, though. This one is quite old, but explains how it can happen: https://kdepepo.wordpress.com/2011/05/1 ... ded4-bugs/

I'll try disabling the search module and see how it goes.

I am guessing "PackageKit[1481]: get-updates" is looking for updates. :lol: Don't know why it does that so often, though. Anyway, it is the least of my worries right now.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

Post Reply