xfs
[Top] [All Lists]

Re: tuning XFS for tiny files

To: Eric Sandeen <sandeen@xxxxxxxxxxx>, timotheus <timotheus@xxxxxxxxxxx>
Subject: Re: tuning XFS for tiny files
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Fri, 20 Jul 2007 09:05:08 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <469E7D70.9030606@xxxxxxxxxxx>
Organization: Aconex
References: <m23azlbpl1.fsf@xxxxxxxxxxx> <469E7D70.9030606@xxxxxxxxxxx>
Reply-to: nscott@xxxxxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx
On Wed, 2007-07-18 at 15:52 -0500, Eric Sandeen wrote:
> 
> > 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.
> > 
> > Regards,
> > -timotheus
> 
> Do you have a way to benchmark your load?
> 
> logv2 at mkfs time, and throwing in larger logbufs & logbsize as mount
> options might help.

For these kinds of workloads, you may have some joy using a mkfs run
with smaller blocksize (down to 512 bytes) and also larger directory
blocksize (up to 64k).  (e.g. mkfs.xfs -bsize=512 -nsize=16k ...)

cheers.

--
Nathan


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