#844677 icedove: regular 100% CPU usage, occurs randomly

#844677#5
Date:
2016-11-18 01:05:38 UTC
From:
To:
Dear Maintainer,

Icedove is regularly, and randomly, pegging an entire CPU core at 100%.
This sometimes occurs immediately on startup, sometimes randomly in the
middle of a session, and sometimes it will go back to sensible CPU usage
after a couple of minutes, sometimes it will keep going indefinitely.

I've placed some perf samples and a flamegraph at
http://violet.andrew.donnellan.id.au/~ajd/icedove/ which seem to
indicate that most of the time is being spent in the message database.

FWIW, I do have a very large mailbox - somewhere around 280,000 messages
spread across roughly 20 folders, with one folder having about 200,000
of those messages. The only extensions I have installed are Iceowl and
calendar-google-provider. Unfortunately, I don't really have much more
information to suggest a cause but I'm happy to do more diagnostic work
if you've got any suggestions of what to look for.


Regards,

- Andrew

#844677#10
Date:
2016-11-18 06:11:06 UTC
From:
To:
Hello Andrew,

that sound a little bit like broken databases. Please try the following
out.

https://wiki.debian.org/Icedove#Problems_with_Indexing_of_mails.2Fnews

I wouldn't delete the old database, just rename it.

This unfortunately doesn't help much. I would suggest to start icedove
from the command line and look at the output there.

https://wiki.debian.org/Icedove#Debugging_Icedove_Activity

That are a lot of messages and I can remember that Icedove/Thunderbird
isn't working well with this huge base of messages. The only solution I
know is to split this up into more subfolders. Maybe the new option to
use maildir is a better aproach. But this is only available for new
accounts.

Regards
Carsten

#844677#15
Date:
2017-01-08 11:38:18 UTC
From:
To:
Hi all,

I'm also seeing this, even when running icedove in safe mode within gdb.
I can not figure what could possibly trigger the 100%, but I regularly
hear my fan kicking in and see my battery being drained.

The only message printed to the console, aside from gdb threads
messages, is:

2017-01-08 11:42:13     autosyncActivities      ERROR   OnDownloadError:
Inbox of <myimapaccount>

My mailboxes are smaller, with around one thousand messages in my inbox,
and a maximum of about 22,000 messages in some folders.

Let me know if there is any more information I can provide.

Cheers, piem