Akonadi processes using 100% CPU

Hi,
since a couple of weeks I am experiencing high cpu usage from a few akonadi processes.

I have:

  • akonadi_archivemail_agent
  • akonadi_notes_agent
  • akonadi_maildispatcher_agent
  • akonadi_migration_agent

using 100% cpu for a couple hours every time I boot my laptop.

After about two hours CPU usage is back to normal, as if whatever that is that clogged up akonadi had been digested.
But if I reboot, the load is back for another two hours.

Fortunately the priority must be low because it isn’t noticeable. I only noticed it because KMail was having difficulties retrieving mails from IMAP, and also telling me it couldn’t send mail because the service was not active. As soon as CPU usage is back to normal, outgoing emails are correctly sent.

By looking at past forum threads with similar problem I ran:

  • akonadiselftest
  • akonadictl fsck
  • akonadictl vacuum

and they seemingly did not report anything wrong.

So I went back to using Thunderbird for my email necessities and deleted my account from KMail. Then fired up akonadiconsole and deleted all of the remaining resources related to that mail account (calendaring and something else I don’t remember now).

But today I am still having my daily dose of high CPU usage due to akonadi :(.

This is on my work laptop. At home on my PC with Tumbleweed I do not have this problem, but I did never use KMail there.

Any hints?

Thank you in advance.
Cris

Hi,

Your problem looks familiar to me. Could you please try the solution mentioned here: 373443 – Mail Dispatcher Agent spins at 100% CPU after upgrade from 4:16.08.2+p16.04+git20161117.2322-0 to 4:16.08.3+p16.04+git20161207.0319-0

A short note from the post:

  1. Stop Akonadi service,
akonadictl stop
  1. Change the names of following files to back up them in directory $HOME/.config/akonadi,

cd $HOME/.config/akonadi
mv agent_config_akonadi_archivemail_agent_changes.dat agent_config_akonadi_archivemail_agent_changes.dat.bak
mv agent_config_akonadi_migration_agent_changes.dat agent_config_akonadi_migration_agent_changes.dat.bak
mv agent_config_akonadi_notes_agent_changes.dat agent_config_akonadi_notes_agent_changes.dat.bak
mv agent_config_akonadi_maildispatcher_agent_changes.dat agent_config_akonadi_maildispatcher_agent_changes.dat.bak
  1. Start Akonadi service,
akonadictl start

Regards,
CnZhx

Hi CnZhx,
the reported workaround fixed my problem completely!!!

Thank you!!!
Cris

Hi Cris,

Glad it helps. I was troubled by this issue several days ago. :slight_smile:

Cheers,
CnZhx