Bug 192480 - response time regression in kde 4.2.3
Summary: response time regression in kde 4.2.3
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.11.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-12 22:05 UTC by Tamás Németh
Modified: 2009-05-21 18:12 UTC (History)
0 users

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


Attachments
courier-maildir-cleanup.sh (985 bytes, text/plain)
2009-05-21 17:51 UTC, Tamás Németh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tamás Németh 2009-05-12 22:05:25 UTC
Version:            (using KDE 4.2.3)
OS:                Linux
Installed from:    SuSE RPMs

I have a disconnectied imap account in kmail, which contains ~20000 messages. Since since upgrading to kde 4.2.3, kmail is much less responive after startup and during message sync. It's almost totally unusable for about a minute when synchronizing.
Comment 1 Tamás Németh 2009-05-12 22:07:44 UTC
INteresting, it seems to me that it's only this slow when the imap server is heavily loaded. Now (late at night) when the imap server is almost idle, the synchronizations is much faster.
Comment 2 Tamás Németh 2009-05-13 09:23:39 UTC
Now, in the morning, when many users are simultaneously connected to the IMAP server, kmail becomes so unresponsive, that I'm almost unable to scroll the incoming messages, and even typing a new messages suffers almost seconds of delays.
Comment 3 Jaime Torres 2009-05-14 12:47:58 UTC
Duplicate of bug 172519?
Comment 4 Tamás Németh 2009-05-21 17:48:22 UTC
I don't know. It also took a very long time for KDE 4.2.2's kmail to synchronize with the IMAP server, but that version was responsive during synchronizing.

However, today I deleted the contents of the ~/.kde4/share/apps/kmail/dimap folder, and I ran a script on the Courier IMAP server (Maildir based), which:

-Deleted duplicate messages
-Extracted the date information from every message's Date: header field and:
  -Renamed the file containing the message. The new names begin with the seconds from 1970-01-01 00:00:00 until Date
  -Changed the file's MTIME for the same date
-By moving the messages to newly created cur directories, it:
  -Adjusted the files' CTIME order to the MTIME order
  -The files are even created in the dorectory with this same order
  -Sizes of the directory files are decreased if possible


I don't know if emptying the local dimap or cleaning up the server's maildirs helped, but this process made kmail much faster and responsive.
Comment 5 Tamás Németh 2009-05-21 17:51:04 UTC
Created attachment 33899 [details]
courier-maildir-cleanup.sh

The script I've used to clean up Courier IMAP's Maildir directories.
Comment 6 Thomas McGuire 2009-05-21 18:12:42 UTC
This could be the same as bug 191753, which is fixed now.
Please reopen if the problem still persists in KDE 4.2.4.