This forum has been archived. All content is frozen. Please use KDE Discuss instead.
The Discussions and Opinions forum is a place for open discussion regarding everything related to KDE, within the boundaries of KDE Code of Conduct. If you have a question or need a solution for a KDE problem, please post in the apppropriate forum instead.

Extremely slow KDEPIM startup

Tags: None
(comma "," separated)
User avatar
Madman
Registered Member
Posts
593
Karma
1
OS

Extremely slow KDEPIM startup

Fri Jan 01, 2010 9:50 pm
So one of the things I've noticed, using KDE for quite a while, is that, while Konqueror, Kopete, Dragon, Dolphin, System Settings and several other applications open *when I click on them*, Kontact seems to start only after a very, VERY long time after clicking to start it. KAddressBook and KOrganizer don't take nearly as long when launched separately, but KMail seems to be the main culprit when it comes to very slow start-ups, and I feel it's about time I asked why. Additionally, is the new (rewritten?) KMail going to be faster at starting up, and by extension Kontact with the new KMail embedded?


Madman, proud to be a member of KDE forums since 2008-Oct.
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: Extremely slow KDEPIM startup

Sat Jan 02, 2010 12:46 pm
My observation is that it has only been so for the last few weeks. Something has changed things, for the worse on my system at least, in recent weeks. It was said somewhere else that stopping the Akonadi despatcher-agent helped this, but it doesn't seem to make any difference here - unless, of course, it requires a reboot to enable reading some configuration. Certainly logging out didn't do it.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
KMail is even under best circumstances a bit slower on startup due to having to deal with a lot more data, split over a lot more files (thus getting hit by harddisk delays a lot more than other programs).

A huge difference usually means that it thinks it can't rely on its index files (cached information, etc) but has to rebuild them from scratch, i.e. by reading all emails again, at least partially.

The reason for this to happen on every startup is not known yet. It seems to depend on a combination of factors because it does not happen for a lot of people but always happens for those who experience it.

In case you normally let the session logout quit KMail, try quitting it explicitly before logging out and see if this makes any difference.
You can even try to quit (once it has finished reindexing) and the restart within one session.

Since the question was brought up whether this would improve in th future: I am certain it will. Reason is that next version of KMail (hopefully finished in time for KDE SC 4.5) will be based on Akonadi, which does not use this kind of index files, thus will neither have to rebuild them nor read them on startup.

Cheers.
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar
Madman
Registered Member
Posts
593
Karma
1
OS

Re: Extremely slow KDEPIM startup

Sat Jan 02, 2010 3:03 pm
Thanks for the rather informative answer - it's something I've always been curious about, but I've put up with it anyway: thunderbird isn't much better, nor is it as comprehensive as Kontact...


Madman, proud to be a member of KDE forums since 2008-Oct.
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: Extremely slow KDEPIM startup

Thu Jan 07, 2010 2:40 pm
Since I have this problem combined with long freezes when sending messages, I've been doing a lot of monitoring, to try to find the cause(s). In fact I think the same thing causes both situations. Nepomuk takes more than half of my CPU capacity for a minute or more when starting up kde-pim, and almost as long when sending a message through kontact. Using KMail stand-alone seems to cut the time of the freeze to around half a minute. You might like to try having ksysguard open and watching nepomuk activity yourself.

I've discussed all this with the developers, and they plan to talk about the issues at this weekend's sprint.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]