Load spikes when new email arrives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




A pictures says a thousand words...  Here is the pattern we see lately:

Inline image 2Inline image 1

Green indicates active messages in the postfix mailqueue, inbound.
The load is negligible until new mail arrives.

There are not many users on the system at that hour but there could
be about 400 mostly idle IMAP connections from webmail (another server)
and smartphones, etc.  There are 4800 mailboxes, stored on
a partition dedicated to cyrus.

We use lmtp with postfix.  In cyrus.conf:

lmtpunix    cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1

In main.cf:

mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp

All of the scanning like clamav, amavis, etc.
happens at the MX before it hits this cyrus server.

The system is a single cyrus box, 8 GB RAM, dual Xeon 3.2 Ghz
(4 cores total) and 4 SAS drives with Perc 5 controller providing RAID 5.

free command and a cacti graph of memory use shows we have lots
of free RAM.

This system has run since 2009 without issues.  It is Redhat Enterprise Linux 5.9
(education version, no support).

The problem appears quickly, but when I've seen it, the iowait time
goes as high as 50%, but briefly.

I've checked some articles about tuning for cyrus and switched to deadline
scheduler and lower nr_requests value of 4.  It may have helped a little but
nothing very significant.

We run these from cyrus.conf:

EVENTS {
  squatter cmd="squatter -s -r user" at=0410
  checkpoint    cmd="ctl_cyrusdb -c" period=30
  delprune    cmd="cyr_expire -E 3" at=0400
  tlsprune    cmd="tls_prune" at=0400
}

We're using the postfix/cyrus packages directly from Redhat.
postfix 2.3.3
cyrus-imapd 2.3.7

I'm wondering if there is anything more I can check/tweak.

Is there maintenance we should consider like rebuilding
all mailboxes?


----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux