Bug 291424 - akonadi_nepomuk_email_feeder unresponsible kmail2 caused by continously writes to agent_config_akonadi_nepomuk_email_feeder_changes.dat?
Summary: akonadi_nepomuk_email_feeder unresponsible kmail2 caused by continously write...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.7
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-13 09:18 UTC by Roger Larsson
Modified: 2017-01-07 22:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen capture showing continous writes and slow read (11.49 KB, image/png)
2012-01-15 20:07 UTC, Roger Larsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Larsson 2012-01-13 09:18:08 UTC
Version:           4.7
OS:                Linux

My kmail2 is very unresponsive - klicking on an email to show causes long waits. Up to minutes. Only related reason I can notice is that akonadi_nepomuk_email_feeder continously writes to agent_config_akonadi_nepomuk_email_feeder_changes.dat
(about 50 MB/s)
When trying to open mails it also reads but at a very slow rate about 5 kB/s

Viewing mbox files is faster than maildir (maildir is unusable slow - minutes or ever...)

Yes, I do have LOTS of folders with LOTS of mails...
Kmail1 was able to handle it!

Strace below
----------
stat("/home/roger/.config/akonadi", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/roger/.config/akonadi/agent_config_akonadi_nepomuk_email_feeder_changes.dat", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 10
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
fstat(10, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
write(10, "\0\0\0\0\0\3$\243\0\0\0\27akonadi_mbox_resourc"..., 16366) = 16366
write(10, "akonadi_mbox_resource_0\0\0\0\2\0\0\0\1\0"..., 16382) = 16382
write(10, "\0\0\0\0\0\0\0002\377\377\377\377\377\377\377\377\0\0\0\34\0m\0e\0s\0s\0a\0g"..., 16362) = 16362
write(10, "\0001\0000\0007\0009\0000\0005\0003\0001\0007\0008\0.\0002\0004\0008\0001\0."..., 16368) = 16368
write(10, "akonadi_maildir_resource_2\0\0\0\2\0\0"..., 16384) = 16384
write(10, "\0\0\0\0\0\0\0\32akonadi_maildir_resource"..., 16378) = 16378
write(10, "\0\0\0\0\0\0\0\370\377\377\377\377\377\377\377\377\0\0\0\34\0m\0e\0s\0s\0a\0g"..., 16370) = 16370
write(10, "akonadi_maildir_resource_2\0\0\0\0\0\0"..., 16384) = 16384
- - -
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 16375) = 16375
write(10, "kmailcvt-1942841066\0\0\0\2\0\0\0\1\0\0\0\0\0"..., 15996) = 15996
close(10)                               = 0

Interesting - this was from an old trace AFTER running kmailcvt
Redid the trace

recvmsg(7, {msg_name(0)=NULL, msg_iov(1)=[{"l\4\1\1\255\0\0\0g\227\f\0\246\0\0\0\1\1o\0(\0\0\0/subscri"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 357
recvmsg(7, 0x7fff333a5990, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
read(6, 0x685a84, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}], 5, 0) = 0 (Timeout)
read(6, 0x685a84, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
stat("/home/roger/.config/akonadi", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/roger/.config/akonadi/agent_config_akonadi_nepomuk_email_feeder_changes.dat", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 10
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
fstat(10, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
write(10, "\0\0\0\0\0\5\3\355\0\0\0\27akonadi_mbox_resourc"..., 16366) = 16366
write(10, "akonadi_mbox_resource_0\0\0\0\2\0\0\0\1\0"..., 16382) = 16382
write(10, "\0\0\0\0\0\0\0002\377\377\377\377\377\377\377\377\0\0\0\34\0m\0e\0s\0s\0a\0g"..., 16362) = 16362
write(10, "\0001\0000\0007\0009\0000\0005\0003\0001\0007\0008\0.\0002\0004\0008\0001\0."..., 16368) = 16368
write(10, "akonadi_maildir_resource_2\0\0\0\2\0\0"..., 16384) = 16384
write(10, "\0\0\0\0\0\0\0\32akonadi_maildir_resource"..., 16378) = 16378
write(10, "\0\0\0\0\0\0\0\370\377\377\377\377\377\377\377\377\0\0\0\34\0m\0e\0s\0s\0a\0g"..., 16370) = 16370
write(10, "akonadi_maildir_resource_2\0\0\0\0\0\0"..., 16384) = 16384
write(10, "\0\0\0\1\0\0\0\0\0\0\0168\0\0\0002\0001\0000\0008\0003\0008\0008\0005\0003"..., 16362) = 16362
write(10, "akonadi_maildir_resource_2\0\0\0\2\0\0"..., 16362) = 16362
- - -
write(10, "akonadi_maildir_resource_2\0\0\0\0\0\0"..., 16364) = 16364
write(10, "\0m\0e\0s\0s\0a\0g\0e\0/\0r\0f\0c\0008\0002\0002\0\0\0\1"..., 16372) = 16372
write(10, "akonadi_maildir_resource_2\0\0\0\2\0\0"..., 16378) = 16378
write(10, "\0001\0003\0002\0006\0004\0004\0005\0003\0001\0000\0.\0R\0005\0005\0000\0."..., 16376) = 16376
write(10, "\0m\0e\0s\0s\0a\0g\0e\0/\0r\0f\0c\0008\0002\0002\0\0\0\1"..., 16384) = 16384
write(10, "\0\0\0\2\0\0\0\2\0\0\0\0\0\1\303\232\0\0\0.\0001\0003\0002\0006\0004\0004"..., 16344) = 16344
write(10, "\0001\0003\0002\0006\0004\0004\0005\0005\0009\0009\0.\0R\0002\0005\0009\0."..., 16366) = 16366
write(10, "akonadi_maildir_resource_2\0\0\0\0\0\0"..., 16368) = 16368
write(10, "\0m\0e\0s\0s\0a\0g\0e\0/\0r\0f\0c\0008\0002\0002\0\0\0\1"..., 6872) = 6872
close(10)                               = 0
read(6, 0x685a84, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}], 5, -1) = 1 ([{fd=7, revents=POLLIN}])
read(6, 0x685a84, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)

lsof showing connections

akonadi_n 30821 30883      roger    0r     FIFO                0,8       0t0  1090375 pipe
akonadi_n 30821 30883      roger    1w      REG               8,19  10105111 27787752 /home/roger/.xsession-errors
akonadi_n 30821 30883      roger    2w      REG               8,19  10105111 27787752 /home/roger/.xsession-errors
akonadi_n 30821 30883      roger    3u     0000                0,9         0     2782 anon_inode
akonadi_n 30821 30883      roger    4r     FIFO                0,8       0t0  1088353 pipe
akonadi_n 30821 30883      roger    5w     FIFO                0,8       0t0  1088353 pipe
akonadi_n 30821 30883      roger    6u     unix 0xffff8801f1becbc0       0t0  1088354 socket
akonadi_n 30821 30883      roger    7u     unix 0xffff8801b23e0780       0t0  1090492 socket
akonadi_n 30821 30883      roger    8u     unix 0xffff880230033140       0t0  1093098 socket
akonadi_n 30821 30883      roger    9u     unix 0xffff88010a3e0840       0t0  1094781 socket
akonadi_n 30821 30883      roger   10w      REG               8,19   4584992 28504106 /home/roger/.config/akonadi/agent_config_akonadi_nepomuk_email_feeder_changes.dat
akonadi_n 30821 30883      roger   11u     0000                0,9         0     2782 anon_inode
akonadi_n 30821 30883      roger   12r     FIFO                0,8       0t0  1091490 pipe
akonadi_n 30821 30883      roger   13w     FIFO                0,8       0t0  1091490 pipe
akonadi_n 30821 30883      roger   14r     FIFO                0,8       0t0  1091491 pipe
akonadi_n 30821 30883      roger   15w     FIFO                0,8       0t0  1091491 pipe


package information

kdepim4-4.7.2-3.5.2.x86_64


Reproducible: Always

Steps to Reproduce:
Possibly import huge amount of mails to kmail2

Actual Results:  
Unusuable mail system...

Expected Results:  
Being able to read mails!
Comment 1 Roger Larsson 2012-01-15 20:07:09 UTC
Created attachment 67866 [details]
Screen capture showing continous writes and slow read

This behaviou have ended, after more than 48 hours, kmail2 is now responsible.
Was there some indexing / database update going on silently?
Comment 2 dasaan.san 2013-11-03 20:29:02 UTC
This sounds like a possible dupe of bug 290393
Comment 3 Roger Larsson 2013-11-03 23:48:32 UTC
Ohh, had forgot about this one (was me, new report my wife)

Crash and slow operation in bug 326612
Comment 4 Denis Kurz 2016-09-24 20:45:41 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 5 Denis Kurz 2017-01-07 22:13:06 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.