This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to make sure akonadi doesn't start automatically...

Tags: None
(comma "," separated)
jinx
Registered Member
Posts
8
Karma
0
OS
Hello, how could I make sure akonadi doesn't start automatically when user loges in.
I mean I tried changing kres-migratorrc and kmail-migrator, but still nothing.

Does anyone know how to stop akonadi from starting up?
jinx
Registered Member
Posts
8
Karma
0
OS
Sorry, I forgot to add the it's KDE 4.5.1 on Slackware.
Pawlerson
Registered Member
Posts
13
Karma
0
OS
Hi

I'm also interested. As far I have only found 'akonadictl stop' command will kill it. When Akonadi is active there are many processes running and thus memory usage is high. I don't have kontakt, kmail etc. installed, so I don't understand why Akonadi is running?
jinx
Registered Member
Posts
8
Karma
0
OS
I don't also get that idea too, I tried some tricks which worked on KDE 4.4.5 for example, but in this new version 4.5.1 they don't work anymore.
jinx
Registered Member
Posts
8
Karma
0
OS
Found the fix:


Code: Select all
mkdir -p ~/.config/akonadi/

or
Code: Select all
mkdir -p /etc/skel/.config/akonadi/


and

Code: Select all
nano ~/.config/akonadi/akonadiserverrc

or
Code: Select all
nano /etc/skel/.config/akonadi/akonadiserverrc


and add the following lines:

Code: Select all
[%General]
Driver=QMYSQL

[QMYSQL]
StartServer=false
ServerPath=/usr/libexec/mysqld
Name=
Host=
User=
Password=
Options=

[Debug]
Tracer=null


ServerPath, Name, User, Host, etc are setup like this for me, but anyone can set them according to his/her system.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That will break Akonadi, and prevent all PIM applications from functioning.
Akonadi will only start if it's services are requested by an application.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jinx
Registered Member
Posts
8
Karma
0
OS
Well not really, it just starts and anyway, I need it this coz I'm not using it.
Pawlerson
Registered Member
Posts
13
Karma
0
OS
bcooksley wrote:That will break Akonadi, and prevent all PIM applications from functioning.
Akonadi will only start if it's services are requested by an application.


So there must be something broken. I'm not using PIM at all and Akonadi is running all the time from some reason. It starts automatically with KDE on my box. There are dozens of akonadi processes running and all of this uses 150MB of RAM!. I have observed KDE applications started to use much more memory then before - Ktorrent uses about two to three times more memory then in 4.x series, Amarok also uses much more memory. I suppose there are some huge memory leaks somewhere, maybe in Qt or in KDE libraries. In example VLC uses 12MB while clean Ktorrent is using 44MB (it was using approximately 18MB before and was a really slim application).

@Jinx

Thank you very much! This solution works as supposed. :)
jinx
Registered Member
Posts
8
Karma
0
OS
@Pawlerson: you're welcome, I got the same issue, huge memory usage for nothing. I don't use akonadi and it should only start when you requested, not all the time, especially if you don't use any PIM apps or even disable indexing support.

Also akonadi by default was done and it's super stupid, the huge amount of resource need it by it, makes the overall work in KDE problematic and saw already in several Live distribution which use KDE that it does a lot of kernel panic and crashes. Saw this crashes/kernel panics on PCLinuxOS, Arch Linux, Chakra.

Anyway, in my opinion akonadi should be remove or from akonadi usage of mysql should be fully remove.
But as I'm not a developer, my opinion only comes from my own experience as a normal user and tester.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would recommend checking these memory usage figures using an accurate tool such as Exmap.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Pawlerson
Registered Member
Posts
13
Karma
0
OS
bcooksley wrote:I would recommend checking these memory usage figures using an accurate tool such as Exmap.


Yes, this is the point. I reminded Linux is using some kind of caching since few releases and this could lead to inacurate System Monitor measurements regarding memory usage. I installed Ubuntu with Gnome recently to check how things look out there and... after while Gnome was reporting more then 800MB memory usage (even without mono which I ripped out immediately)! It's much more then Arch and KDE. However, I guess memory usage reported by KDE and Gnome system monitors isn't accurate at all and maybe this is because some cache being used, but I'm just guessing.

@Jinx

Anyway, in my opinion akonadi should be remove or from akonadi usage of mysql should be fully remove.
But as I'm not a developer, my opinion only comes from my own experience as a normal user and tester.


I'd like to have an option to turn it on and off or like you said. ;D
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Exmap only measures the memory used by applications, as far as I am aware. KInfoCenter included a "memory usage" display at some point which seperated out the usage by cache and applications quite clearly.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
rolandha
Registered Member
Posts
1
Karma
0
i also have a massive memory leak with akonadi. kununtu 64bit on maverick 10.10.
directly after startup akonadi and all subprocesses leak massivly (serveral 100 mb per second). after 15 seconds the whole machine freezes cause the virtual memory is completly full.
the only change i have is to kill processes right after start up as long as the system is still responsive.
the fix with the mysql did not work for me. anybody has an idea? this is super annoying!
thanks!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That is extremely unusual. Can you reproduce this under a new user?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
khoma
Registered Member
Posts
1
Karma
0
OS
Hello

I have the same unusual problem. Installed KDE today, and after first reboot, KDE loads, runs fine for 20 seconds or so, and then a bunch of processes with akonadi in the name all go crazy and within moments the system becomes almost completely unresponsive. I end up having to do a hard reset. Happens every time I try to start KDE 4.5. I haven't tried with a different user, though I did try to delete the .kde/ folder in my home directory, figuring that might help, but no such luck.

Running ubuntu 10.10

Edit: I'll be happy to provide additional information if I know what to look for and where.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar