[Dovecot] Dovecot timeout over NFS
Hi,
I'm using postfix with Dovecot 1.0.5 and getting the following errors when a user moves a massive folders contents to trash (65000 or so messages): Apr 21 15:31:01 mink dovecot: IMAP(dev2@aluminati.net): Timeout while waiting for lock for transaction log file /virtual/store1/mail/d/dev2_aluminati.net/Maildir/.Deleted Items/dovecot.index.log
Is there anything I can do to compensate for situations like this?
Thanks Guy
-- Don't just do something...sit there!
On Mon, 2008-04-21 at 15:56 +0100, Guy wrote:
Hi,
I'm using postfix with Dovecot 1.0.5 and getting the following errors when a user moves a massive folders contents to trash (65000 or so messages): Apr 21 15:31:01 mink dovecot: IMAP(dev2@aluminati.net): Timeout while waiting for lock for transaction log file /virtual/store1/mail/d/dev2_aluminati.net/Maildir/.Deleted Items/dovecot.index.log
Is there anything I can do to compensate for situations like this?
Have you set maildir_copy_with_hardlinks=yes?
On 24/04/2008, Timo Sirainen <tss@iki.fi> wrote:
Have you set maildir_copy_with_hardlinks=yes?
Yes, that's already set. I've also added: default_mail_env = maildir:%h/Maildir/:INDEX=MEMORY after reading the suggestion somewhere.
The server is only running one domain so far so it's not critical to clients just yet. But I need to be sure it can handle fairly heavy usage before I transfer other clients on to it.
Thanks for having a look.
-- Don't just do something...sit there!
On Thu, 2008-04-24 at 14:21 +0100, Guy wrote:
On 24/04/2008, Timo Sirainen <tss@iki.fi> wrote:
Have you set maildir_copy_with_hardlinks=yes?
Yes, that's already set. I've also added: default_mail_env = maildir:%h/Maildir/:INDEX=MEMORY after reading the suggestion somewhere.
In-memory indexes are pretty bad for performance. v1.1 with indexes on NFS and mail_nfs_* settings set to "yes" should give a lot better performance and reliability than v1.0.
Anyway the problem is that Dovecot does:
- Lock dovecot-uidlist file
- link() 65000 files to destination mailbox
- Unlock dovecot-uidlist
If step 2 takes minutes, there isn't really much that can be done to fix this.. Doing the linking without uidlist being locked could cause all kinds of trouble.
participants (2)
-
Guy
-
Timo Sirainen