Bug 665309

Summary: cyrus imapd performance low after upgrade from fedora 12
Product: [Fedora] Fedora Reporter: Damijan <damijan>
Component: cyrus-imapdAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 13CC: mhlavink, rh-bugzilla, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cyrus-imapd-2.3.16-7.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-14 20:25:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Damijan 2010-12-23 08:07:05 UTC
Description of problem:

Cyrus-imapd performace for large folders (5000+ mails) degraded after upgrade from fedora 12 to f13/f14


Version-Release number of selected component (if applicable):


How reproducible:

Install fresh f13 or f14 or upgrade from f12.
Populate mailbox folder (e.g. INBOX) with large number of messages (5000+)
Connect from webmail client (tested with squirrelmail). Large delays noticed.
Same configuration works fine with f12.

CLI top command shows 99%wait during loading messages to squirelmail.
Adding more memory doesn't help.

No mail proxy used.

imapd auth  with saslauthd with both PAM and  LDAP mech.

Same for x686 and 64_x86

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Enrico Scholz 2011-01-19 11:30:24 UTC
that's probably due to http://pkgs.fedoraproject.org/gitweb/?p=cyrus-imapd.git;a=commitdiff;h=24cb0a917604adfb485475ac46ac49b1dce9f44b

-  if [ $(find $i -maxdepth 0 -printf %%F) = "ext2" ]; then
-    chattr -R +S $i 2>/dev/null
-  fi
+  chattr -R +S $i 2>/dev/null ||:

Comment 2 Michal Hlavinka 2011-01-19 13:46:18 UTC
> -  if [ $(find $i -maxdepth 0 -printf %%F) = "ext2" ]; then
> -    chattr -R +S $i 2>/dev/null
> -  fi
> +  chattr -R +S $i 2>/dev/null ||:

yes, that's probably the cause. Btw, do you see this issue too?

Enrico, Damijan: what filesystem do you use for /var ?

Damijan: You can verify this by using:


chattr -R -S /var/lib/imap/{user,quota} /var/spool/imap

Comment 3 Enrico Scholz 2011-01-20 14:20:02 UTC
yes; I saw this issue too (on an ext3 fs).

Comment 4 Michal Hlavinka 2011-01-21 09:54:45 UTC
When looking into documentation, cyrus-imapd recommends sync io only for ext2, so I've corrected spec file. Because this will only "not set" it, but not remove, you will probably have to manually unset it using:

chattr -R -S /var/lib/imap/{user,quota} /var/spool/imap

Comment 5 Damijan 2011-01-21 10:01:39 UTC
Tried. Works.
Thanks!!

Comment 6 Fedora Update System 2011-01-21 10:25:21 UTC
cyrus-imapd-2.3.16-7.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/cyrus-imapd-2.3.16-7.fc14

Comment 7 Fedora Update System 2011-01-21 10:25:29 UTC
cyrus-imapd-2.3.16-4.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/cyrus-imapd-2.3.16-4.fc13

Comment 8 Fedora Update System 2011-01-21 22:58:44 UTC
cyrus-imapd-2.3.16-7.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cyrus-imapd'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/cyrus-imapd-2.3.16-7.fc14

Comment 9 Fedora Update System 2011-02-14 20:25:46 UTC
cyrus-imapd-2.3.16-4.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2011-02-14 20:27:01 UTC
cyrus-imapd-2.3.16-7.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.