[Dovecot] Performance issue about maildir path.
Hi, all.
Normally, i use 'domain.ltd/username/Maildir' as users' maildir path, if i change them to hash style, e.g. 'A0/B0/domain.ltd/C0/D0/username/Maildir', will it speed up the index operation for MDA? If we have 10000 users, which maildir path style will improve performance?
Thanks very much. :)
-- Best regards.
Zhang Huangbin
- Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail/
Words by Zhang Huangbin [Mon, Dec 15, 2008 at 11:00:45AM +0800]:
Hi, all.
Normally, i use 'domain.ltd/username/Maildir' as users' maildir path, if i change them to hash style, e.g. 'A0/B0/domain.ltd/C0/D0/username/Maildir', will it speed up the index operation for MDA? If we have 10000 users, which maildir path style will improve performance?
Depends on which filesystem you put the maildirs on. For instance with ext* you'll get a performance boost. Anyway it's always a good arquitecture decision to hash it.
-- Jose Celestino | http://japc.uncovering.org/files/japc-pgpkey.asc
"One man’s theology is another man’s belly laugh." -- Robert A. Heinlein
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, Dec 15, 2008 at 03:11:43AM +0000, Jose Celestino wrote:
Words by Zhang Huangbin [Mon, Dec 15, 2008 at 11:00:45AM +0800]:
Hi, all.
Normally, i use 'domain.ltd/username/Maildir' as users' maildir path, if i change them to hash style, e.g. 'A0/B0/domain.ltd/C0/D0/username/Maildir',
[...]
Depends on which filesystem you put the maildirs on. For instance with ext* you'll get a performance boost. Anyway it's always a good arquitecture decision to hash it.
FWIW, Ext3 comes with hashed b-tree index for directories. It's typically on by default.
Regards
- -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFJResDBcgs9XrR2kYRAqQZAJ0TmRWr7rNUrbDdcXF9eKKjkbXGUgCfbedS tson7e3+jRysuUlHO27IZ/M= =xNXb -----END PGP SIGNATURE-----
participants (3)
-
Jose Celestino
-
tomas@tuxteam.de
-
Zhang Huangbin