xfs
[Top] [All Lists]

Re: XFS and small files

To: rs_404@xxxxxxxx
Subject: Re: XFS and small files
From: Glen Overby <overby@xxxxxxx>
Date: Fri, 16 Jan 2004 16:33:23 -0600 (CST)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: message from Rajesh Saxena sent 16 January 2004
References: <20040116193929.14027.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: linux-xfs@xxxxxxxxxxx
Sender: linux-xfs-bounce@xxxxxxxxxxx
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


<Prev in Thread] Current Thread [Next in Thread>