Becker, Ronny
2011-May-05 08:04 UTC
[Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders
Hello, I am using Dovecot 1.2.9 on a 32bit on Ubuntu 10.04.2 LTS. We got one user who uses folders in an "exessive" way. He has got 704 subscribed folders. That means about nearly 3000 folders on the filesystem. Since ~ a week the user couldn't work because of timeouts when connecting to Dovecot (IMAP). Thunderbird doesn't show any folders - timeout - the webmail System (Groupoffice) only presents the INBOX. I did some debugging and found that a lsub "" "*" that is used by Thunderbird takes > 5 minutes. Thunderbird disconnects after ~1 Minute showing the timeout. I entered the command directly via port communication. So this is no clientside problem. But there is no error message or something else in any logs. I did some debugging with strace, too. It's about 22MB only for running the lsub command !? The Mailbox size is about ~2.2GB, so this should be no problem. The maximum subfolder level is about 13 - could this be a problem? You can find the structure (simply shown) attached. Thanks for any help!! Best regards Ronny Becker -- Mit freundlichen Gr??en, Ronny Becker Institut f?r Medizinische Diagnostik GmbH Ingelheim / Datenverarbeitung Konrad Adenauer Strasse 17 55218 Ingelheim Telefon: 06132 781 249 Fax: 06132 781 9 249 ronny.becker at bioscientia.de www.bioscientia.de Gesellschaft mit beschr?nkter Haftung mit Sitz in 55218 Ingelheim am Rhein, eingetragen im Handelsregister des Amtsgerichts Mainz unter HRB 21166. Gesch?ftsf?hrer: PD. Dr. med. Markus Nauck und Dipl.-Vw. Johannes Brill. Vorsitzender des Aufsichtsrates: Prof. Dr. med. Bernd Heicke. Diese E-Mail kann vertrauliche oder auf andere Weise gesch?tzte Informationen enthalten. Sollten Sie diese E-Mail irrt?mlich erhalten haben, l?schen Sie diese bitte von Ihrem System und setzen Sie uns unverz?glich von dem Vorfall in Kenntnis. USt-ID-Nr. DE 811138229 ___ Limited liability company with registered office in 55218 Ingelheim am Rhein, registered with the commercial register of the local court of Mainz under HRB 21166. Managing directors: PD Dr. med. Markus Nauck and Dipl.-Vw. Johannes Brill. Chairman of the supervisory board: Prof. Dr. med. Bernd Heicke. This e-mail may contain confidential or otherwise privileged information. If you are not the intended recipient, please inform us immediately and delete the e-mail from your system. VAT-ID-Nr. DE 811138229 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: subfolder_structure.txt URL: <http://dovecot.org/pipermail/dovecot/attachments/20110505/c83d9330/attachment-0002.txt>
Timo Sirainen
2011-May-05 08:19 UTC
[Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders
On 5.5.2011, at 10.04, Becker, Ronny wrote:> I did some debugging and found that a lsub "" "*" that is used by Thunderbird takes > 5 minutes.Something's very wrong. I just tested with 1000 folders in a subscriptions file and it lists it in less than a second.> I did some debugging with strace, too. It's about 22MB only for running the lsub command !?Run it with strace -tt and send me the output compressed? Also dovecot -n output could be useful.
Scott Silva
2011-May-05 20:24 UTC
[Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders
on 5/5/2011 1:04 AM Becker, Ronny spake the following:> Hello, > I am using Dovecot 1.2.9 on a 32bit on Ubuntu 10.04.2 LTS. > > We got one user who uses folders in an "exessive" way. He has got 704 > subscribed folders. That means about nearly 3000 folders on the filesystem. > Since ~ a week the user couldn't work because of timeouts when connecting to > Dovecot (IMAP). Thunderbird doesn't show any folders - timeout - the webmail > System (Groupoffice) only presents the INBOX. > > I did some debugging and found that a lsub "" "*" that is used by Thunderbird > takes > 5 minutes. Thunderbird disconnects after ~1 Minute showing the > timeout. I entered the command directly via port communication. So this is no > clientside problem. But there is no error message or something else in any logs. > > I did some debugging with strace, too. It's about 22MB only for running the > lsub command !? The Mailbox size is about ~2.2GB, so this should be no > problem. The maximum subfolder level is about 13 - could this be a problem? > You can find the structure (simply shown) attached. > > > Thanks for any help!! > > > Best regards > Ronny Becker > >What is the underlying filesystem, and if its ext3, is dir_index set on?