Bug 472833 - Akonadi tasks take up 25% CPU sitting idle
Summary: Akonadi tasks take up 25% CPU sitting idle
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-31 10:01 UTC by tnemeth
Modified: 2023-08-13 08:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
CPU load before killing akonadi (22.92 KB, image/png)
2023-07-31 10:01 UTC, tnemeth
Details
List of akonadi processes before killing them (3.19 KB, text/plain)
2023-07-31 10:05 UTC, tnemeth
Details
System monitor displaying akonadi (156.48 KB, image/png)
2023-07-31 10:06 UTC, tnemeth
Details
How I kill akonadi (150.15 KB, image/png)
2023-07-31 10:07 UTC, tnemeth
Details
CPU load a few seconds after killing akonadi (27.14 KB, image/png)
2023-07-31 10:08 UTC, tnemeth
Details
Normal CPU load after killing akonadi. (24.66 KB, image/png)
2023-07-31 10:08 UTC, tnemeth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tnemeth 2023-07-31 10:01:54 UTC
Created attachment 160642 [details]
CPU load before killing akonadi

SUMMARY
When running idle I've noticed that recently, after a few upgrades in QT/plasma packages, my CPU fan was blowing faster than before. The CPU monitor showed me that there was a permanent CPU load of 25% which wasn't there before. After investigating, I found the culprit : akonadi and all its tasks where busying my system, even after several hours, while all the processing of startup, mails reception, had already been done. File indexing is deactivated on my system.


STEPS TO REPRODUCE
1. Log in a session that has kmail configured with a few accounts and wait a few minutes
2. Look at the CPU monitor


OBSERVED RESULT

The CPU load is way too high...

EXPECTED RESULT

The CPU load should be around 1 or 2 %...

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.4.0-1-amd64 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-7567U CPU @ 3.50GHz
Memory: 31.2 Gio of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics 650
Manufacturer: Intel Corporation
Product Name: NUC7i7BNH
System Version: J31153-308

ADDITIONAL INFORMATION
I've taken a few screenshots and `ps aux` outputs...
Comment 1 tnemeth 2023-07-31 10:05:13 UTC
Created attachment 160643 [details]
List of akonadi processes before killing them
Comment 2 tnemeth 2023-07-31 10:06:53 UTC
Created attachment 160644 [details]
System monitor displaying akonadi

It's in french... "Rappels d'agenda" means "Agenda Reminder" (something like that).
Comment 3 tnemeth 2023-07-31 10:07:51 UTC
Created attachment 160645 [details]
How I kill akonadi

I just click on "Close an application" (in red).
Comment 4 tnemeth 2023-07-31 10:08:24 UTC
Created attachment 160646 [details]
CPU load a few seconds after killing akonadi
Comment 5 tnemeth 2023-07-31 10:08:50 UTC
Created attachment 160647 [details]
Normal CPU load after killing akonadi.
Comment 6 tnemeth 2023-07-31 10:10:53 UTC
Obviously, when I start KMail after, it asks to restart akonadi... And there it is again, taking up to 25% CPU...
Comment 7 tnemeth 2023-07-31 11:42:50 UTC
Hum.

In fine, it wasn't akonadi but KMail. Killing kmail stops the CPU hog while akonadi keeps working.
Comment 8 tnemeth 2023-08-13 08:12:17 UTC
A new upgrade in testing resolved the issue...