Bug 251042 - akoandi-nepomuk eats all CPU shortly after login ($HOME on NFS) for about 2 minutes
Summary: akoandi-nepomuk eats all CPU shortly after login ($HOME on NFS) for about 2 m...
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Nepomuk Feeder Agents (show other bugs)
Version: 4.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-13 07:53 UTC by T Kleindienst
Modified: 2010-09-14 07:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
CPU consumption after login akonadi-nepumuk eats CPU (98.21 KB, image/png)
2010-09-13 07:54 UTC, T Kleindienst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description T Kleindienst 2010-09-13 07:53:29 UTC
Version:           4.5 (using KDE 4.5.1) 
OS:                Linux

I have about 10000 emails in my inbox and about 8000 in the sent-mail folder. All email-folders consume about 5.1 Gb.
After login akonadi-nepomuk eats all the CPU and the system gets unresponsive for about 2 minutes. System is OpenSuse 11.3 with decent hardware Intel Core i5, 4x3.33Ghz, 4Gb Ram.
$Home is located on NFS, 100Mbit wired.

I understand that this process is needed to feed the akonadi-data into nepomuk.
What I don't understand is, that I still use 4.4 kontact, thus akonadi is not handling the emails. What actually does akonadi-nepomuk?

Can this process run with a lower priority? Or can the load be reduced by limiting the CPU consumption? I would not mind if it takes 5 or 10 minutes to run, but unobtrusive in the background.


Reproducible: Always

Steps to Reproduce:
Simply log in and watch CPU-consumption going up.
Comment 1 T Kleindienst 2010-09-13 07:54:33 UTC
Created attachment 51578 [details]
CPU consumption after login akonadi-nepumuk eats CPU
Comment 2 Tobias Koenig 2010-09-13 10:49:15 UTC
Hej,

ksysguard seems to cut the process names, could you check with 'top' inside a console window what the complete name of the process is?
It should be akonadi_nepomuk_xyz_feeder where xyz is either 'contact' or 'email'. In KDE 4.4 the contacts are already stored in Akonadi and therefor I guess the process you refer to is akonadi_nepomuk_contact_feeder. The first implementation in 4.4 was quiet dump and used a lot of resources. The feeder shipped with KDE-PIM 4.5 is much smarter.

Ciao,
Tobias
Comment 3 T Kleindienst 2010-09-14 07:34:42 UTC
thomas    5456 20.4  0.1 138344  5080 ?        Rl   07:24   0:06 /usr/bin/akonadi_control
thomas    5458 30.7  0.3 373992 13148 ?        Sl   07:24   0:10 akonadiserver
thomas    5460 35.4  1.0 291564 42304 ?        Sl   07:24   0:11 /usr/sbin/mysqld --defaults-file=/home/thomas/.local/share/akonadi//mysql.conf --datadir /home/thomas/.local/share/akonadi/db_data/ --socket=/home/thomas/.local/share/akonadi/db_misc/mysql.socket
thomas    5485  1.0  0.6 267920 24720 ?        S    07:24   0:00 /usr/bin/akonadi_contacts_resource --identifier akonadi_contacts_resource_0
thomas    5486  0.9  0.6 284036 25000 ?        S    07:24   0:00 /usr/bin/akonadi_ical_resource --identifier akonadi_ical_resource_0
thomas    5487  1.0  0.6 273612 24124 ?        S    07:24   0:00 /usr/bin/akonadi_maildir_resource --identifier akonadi_maildir_resource_0
thomas    5488  2.2  0.6 270440 25420 ?        S    07:24   0:00 /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent
thomas    5489 35.3  0.6 276560 24508 ?        Sl   07:24   0:10 /usr/bin/akonadi_nepomuk_contact_feeder --identifier akonadi_nepomuk_contact_feeder                                    
thomas    5490 10.8  1.6 310072 65012 ?        S    07:24   0:03 /usr/bin/akonadi_vcard_resource --identifier akonadi_vcard_resource_0

You're right... it seems it is akonadi_nepomuk_contact_feeder which is causing the problem (it's 2.6Mb vcf-file with approx 3000 contacts)
Will wait for KDEPIM 4.5...