On Thu, Jul 19, 2007 at 03:38:43PM +0200, Andi Kleen wrote:
> timotheus <timotheus@xxxxxxxxxxx> writes:
>
> > Hi. Is there a way to tune XFS filesystem parameters to better address
> > the usage pattern of 10000s of tiny files in directories such as:
> > maildir directory
> > mh mail directory
> > ccache directory
> >
> > My understanding is that XFS will always be much slower than reiserfs
> > with respect to deleting 10000s files; but that XFS might be possible to
> > tune toward more rapid read access of 10000s of tiny files.
>
> -d agcount=1 at mkfs time might help (unless you have a lot of CPUs)
Yeah, might help, but it's not good for being able to repair the
filesystem - repair will be unable to find a secondary superblock
to compare the primary against and abort.....
-d agcount is only good for science experiments, not production
systems ;)
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
|