On January 16, Rajesh Saxena wrote:
> Hi list...... I read all the time that XFS is built to support very
> large files and large
> directories efficiently but how well does it handle small files. I want
> to use in a
> mail server running cyrus imapd. People on the lvm list pointed out
> that reiserfs
> is more suited in that area but I would prefer to have consistent
> filesystem on
> all servers. Anyone using XFS on busy mail sites? Do you have any mail
> usage
> and server performance figures?
XFS works just fine for mail servers.
If you're concerned about wasted space due to the default 4KB
filesystem block size, you can make the filesystem block size smaller
(the mkfs -b size=<n> option). With dir2, you can have a 1KB
filesystem block size and still have a 4KB directory block size. That
will keep directory metadata reads at 4KB so they won't be slowed down
from what you see today.
For example:
mkfs_xfs -b size=1024 -n size=4096 /dev/hdz8
will give you a 1KB filesystem block size and a 4KB directory block size.
Glen Overby
|