[lug] imap performance
bgiles at coyotesong.com
Fri Feb 7 16:19:32 MST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hugh Brown wrote:
| Alternatively, is there an optimal size for mailbox files? Is
| size that doesn't cause massive slow downs, but doesn't require
| lots of little mailbox files.
"Lots of little files" is only an issue if you have a file system
that does a sequential scan of the directory, or a large block size.
The latter is easy to fix, and should be standard on any mail or
news spool partition. You'll probably have to reformat the
partition to specify a smaller block size, but you can usually
recover a *lot* of unused disk space if you drop to a 1k block
instead of a standard 4k block. The latter is reasonable on a
mixed-use partition where you have lots of images, libraries,
etc., but text messages are heavily skewed towards smaller files.
The former is slightly more complex... but I think all of the
journaling filesystems use a B-tree (or something similar) for
their directories. It doesn't make a lot of difference for a few
hundred entries, but if you're sequentially scanning a directory
with thousands of entries it can have a huge impact.
I'm currently testing Courier (maildir) on JFS, but can't yet say
much beyond "it works."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the LUG