Hi all,
I have a little problem with Dovecot 2.1.17 and MailDir accounts.
I was using a shared file system (MooseFS), and all was pretty stable.
Now I'm switching to CephFS, and Dovecot LMTP have problem to deliver mails.
Very often, on large accounts, LMTP processes are running for a few hours before delivering the message.
When I strace it, I can see that they are reading (open and stat operations) ALL the messages of the account.
I was thinking to an index problem, but I think that after hundreds of delivered mails, indexes are rebuilded and problem should be solved. But not.
The same way, If user connects to IMAP, a lot of IMAP processes get stuck on "getquotaroot" command (multiple processes for a single account).
The previous FS didn't support mmap, so I disabled it. The new one supports it, so I enabled it, but it does not solve the problem.
Do you have an idea of why Dovecot (LMTP or IMAP) spend a lot of time on large accounts ?
Thank you a lot. Florent
On 13 Aug 2014, at 10:24, Florent Bautista bautista.florent@gmail.com wrote:
I have a little problem with Dovecot 2.1.17 and MailDir accounts.
I was using a shared file system (MooseFS), and all was pretty stable.
Now I'm switching to CephFS, and Dovecot LMTP have problem to deliver mails.
Very often, on large accounts, LMTP processes are running for a few hours before delivering the message.
When I strace it, I can see that they are reading (open and stat operations) ALL the messages of the account.
You didn't provide doveconf -n output, but I'm guessing the problem is Maildir++ quota. Switch to dict-file quota and the problems should go away. http://wiki2.dovecot.org/Quota/Dict
Thank you a lot Timo, I think it solved my problem. I set up an SQL dict.
But according to the documentation, Dovecot is decreasing number of bytes and number of messages from row, but in my case, it sums up (I have the total number of bytes and the total number of messages in table). Is it OK ?
Can you (briefly) explain why Maildir++ quota is not working well in this case ?
Thank you again.
On Wed, Aug 20, 2014 at 2:22 PM, Timo Sirainen tss@iki.fi wrote:
On 13 Aug 2014, at 10:24, Florent Bautista bautista.florent@gmail.com wrote:
I have a little problem with Dovecot 2.1.17 and MailDir accounts.
I was using a shared file system (MooseFS), and all was pretty stable.
Now I'm switching to CephFS, and Dovecot LMTP have problem to deliver mails.
Very often, on large accounts, LMTP processes are running for a few hours before delivering the message.
When I strace it, I can see that they are reading (open and stat operations) ALL the messages of the account.
You didn't provide doveconf -n output, but I'm guessing the problem is Maildir++ quota. Switch to dict-file quota and the problems should go away. http://wiki2.dovecot.org/Quota/Dict
participants (2)
-
Florent Bautista
-
Timo Sirainen