|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/share/doc/dovecot-1.0.7/wiki/ |
Upload File : |
Mail storage in local disk
==========================
Filesystems
-----------
* See <MailboxFormat.Maildir.txt> for Maildir-specific filesystem
optimizations
* Dovecot doesn't rely on atime updates, so you can mount the filesystem with
noatime
Index files
-----------
Keeping index files in a different disk than the mail spool gives you better
performance. The indexes have a lot of write activity so it is recommended to
use RAID-10 instead of RAID-5 for them.
Fsyncing
--------
By default Dovecot calls fsync() and fdatasync() whenever it's useful to
prevent potential data loss. The main reason for this is so that Dovecot won't
lie that the message was saved to the disk, if in fact a power failure a second
later would lose the message. With IMAP clients this is perhaps a less serious
problem, because the lost message was most likely either a mail in Draft
mailbox or a message in "Sent Messages" mailbox. In any case a message that the
user had already seen. However if<Dovecot LDA> [LDA.txt] loses a message, the
user never even knew that the message existed, unless the sender decides to
resend it.
Since power failures and kernel panics are quite rare, many people are tempted
to disable fsyncing because it may increase the performance quite a lot.
Dovecot allows this since v1.0.rc27 by setting 'fsync_disable=yes'. However you
should consider leaving it to "no" for LDA. You can do this with:
---%<-------------------------------------------------------------------------
# Enable for IMAP/POP3
fsync_disable = yes
protocol lda {
fsync_disable = no
}
---%<-------------------------------------------------------------------------
Dovecot Settings
----------------
* 'dotlock_use_excl=yes' is safe to use with local filesystems, and it's
faster.
* 'mmap_disable=yes' appears to give better performance due to various
reasons, but it also increases the memory usage.'mmap_disable=no' is
supposed to be faster though, so in future Dovecot versions this will
probably be fixed.
(This file was created from the wiki on 2007-06-15 04:42)