[Bug 1182982] akonadi_imap_resource consumes 100% CPU
http://bugzilla.opensuse.org/show_bug.cgi?id=1182982 http://bugzilla.opensuse.org/show_bug.cgi?id=1182982#c8 --- Comment #8 from Richard Weinberger <richard@nod.at> --- (In reply to Richard Weinberger from comment #7)
(In reply to Fabian Vogt from comment #6)
(In reply to Fabian Vogt from comment #5)
(In reply to Richard Weinberger from comment #4)
But the process consumes 100% CPU all the time. Also when noting is logged (which is most the time the case).
Additionally I run "perf top" on the imap resource process at the point where it consumed 100% CPU: 96.95% libQt5Core.so.5.12.7 [.] QMetaObjectPrivate::disconnectHelper
Now that's actually interesting. It shows that the process isn't busy processing mail data, but with handling disconnections. This reminds me very much of https://bugreports.qt.io/browse/QTBUG-72649.
Looking at the akonadi code, it's prone to run into the pretty much worst case of this: https://github.com/KDE/akonadi/blob/3bbbdfb368e36b3866a9b58e282120a65e1074a9... src/core/connection.cpp#L247
If this is the case, it also explains why so far we weren't able to reproduce this issue: It becomes worse the longer the process is running and the more requests it receives.
1.39% libQt5Core.so.5.12.7 [.] QMetaObject::activate
Please try libKF5AkonadiCore5 from https://build.opensuse.org/package/show/home:Vogtinator:boo1182982/akonadi- server.openSUSE_Leap_15.2_Update once it's built. It contains a workaround for this specific case.
Looks *much* better. Akonadi consumes almost no CPU, also not when syncing my mailbox. So far everything seems to run smoothly again. :-) Tomorrow when kmail is heavy used due to dayjob, we'll definitive see whether your workaround did it.
The workaround seems to help. Thanks everyone! -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com