Bug 243823 - dbus excesive usage makes plasma and kscreenlocker unresponsive
Summary: dbus excesive usage makes plasma and kscreenlocker unresponsive
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords: akonadi-ports-regression
Depends on:
Blocks:
 
Reported: 2010-07-07 08:55 UTC by Jaime Torres
Modified: 2010-12-13 20:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
pstack output (1.97 KB, text/plain)
2010-07-29 06:16 UTC, Gilboa Davara
Details
valgring output (4.60 KB, text/plain)
2010-07-29 06:17 UTC, Gilboa Davara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2010-07-07 08:55:23 UTC
Version:           2.0 beta1 (using Devel) 
OS:                Linux

First of all, I do not know where this bug should be placed. dbus, akonadi or kmail2.

When syncing a folder (the gmail total folder) with around 50.000 mails stored, akonadi_imap seems to use dbus to comunicate with kmail2 or whatever.
In a normal session, dbus cpu usage is < 1%.
In this situation, dbus cpu usage is >20%.
At some time, plasma makes a dbus call and it is so far in the dbus queue that looks blocked. The same happens to kscreenlock when it wants to show the unlock dialog.
Changing akonadi_imap nice to 20 alleviates the problem a little bit, but it will happen again and again.

Reproducible: Always

Steps to Reproduce:
to have stored a lot of kmail bugs mails.


Expected Results:  
reduce the dbus usage or make dbus use several queues (or a special queue for akonadi)
Comment 1 Gilboa Davara 2010-07-29 06:16:49 UTC
Created attachment 49610 [details]
pstack output
Comment 2 Gilboa Davara 2010-07-29 06:17:35 UTC
Created attachment 49611 [details]
valgring output
Comment 3 Gilboa Davara 2010-07-29 06:18:35 UTC
(Please ignore the previous attachments, bugzilla jumped to the wrong bug. Sorry for the noise)
Comment 4 Volker Krause 2010-08-02 16:07:18 UTC
Could you provide a bit of dbus-monitor output so we can see what messages exactly are sent there? 

Do you happen to have akonadiconsole running or have the protocol debugger enabled (~/.config/akonadi/akonadiserverrc, [Debug]\nTracer=dbus)? Both can increase D-Bus usage massively.
Comment 5 Jaime Torres 2010-12-13 20:11:02 UTC
I see no more that amount of dbus usage, even with >50.000 mails.