IMAP select is so slow!? -- do I need to change database

Su Li sli at rim.net
Fri Sep 6 14:12:15 EDT 2002


Hi,

I wonder why cyrus imap can only do 3-4 select in one second.

I have installed cyrus-imapd-2.1.8, db-4.0.14, cyrus-sasl-2.1.7. The machine
is a dual CPU red head Linux 7.2 with 2 G memory. I have 15,000 user's on my
machine and each user have 100 emails.  

My configurations are:

imap:
./configure --with-auth=unix --without-krb4 --without-ucdsnmp
--with-bdb-incdir=/usr/local/BerkeleyDB.4.0/include
--with-bdb-libdir=/usr/local/BerkeleyDB.4.0/lib --with-dblib=berkeley
--with-dbpath=/usr/local/BerkeleyDB.4.0 --with-lock=fcntl
--with-mboxlist-db=skiplist --without-notify --disable-sieve
--enable-fulldirhash --with-idle=no

SASL
env CPPFLAGS="-I/usr/local/BerkeleyDB.4.0/include" \
LDFLAGS="-L/usr/local/BerkeleyDB.4.0/lib  -R/usr/local/BerkeleyDB.4.0/lib"
./configure --disable-krb4 --disable-gssapi --with-dblib=Berkeley 
 
Berkley DB
../dist/configure --disable-libtool-lock --without-PACKAGE

I got some suggestion from Rob Siemborski and Henrique Holschuh. Thanks. I
don't get "oening too many files" error now. I moved my mailbox.db to a
seperate disk. It did improved a little -- about 0.5-0.7 mail per second
faster. I already got RAID subsystem on my Linux. 

I am thinking, is there any thing I can do on my imap configuration so that
I can speed up my "select"? 

I am also thing moving mailbox.db to a LDAP or another database. But I not
sure how much faster I can get on my "select"?

Please give me some more suggestions.

Thanks,


Su 

Research In Motion
(519)888-7465 ext 3041







More information about the Info-cyrus mailing list