public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* tuning XFS for tiny files
@ 2007-07-18 17:15 timotheus
  2007-07-18 20:52 ` Eric Sandeen
  2007-07-19 13:38 ` Andi Kleen
  0 siblings, 2 replies; 6+ messages in thread
From: timotheus @ 2007-07-18 17:15 UTC (permalink / raw)
  To: linux-xfs

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]


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

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tuning XFS for tiny files
  2007-07-18 17:15 tuning XFS for tiny files timotheus
@ 2007-07-18 20:52 ` Eric Sandeen
  2007-07-19 23:05   ` Nathan Scott
  2007-07-19 13:38 ` Andi Kleen
  1 sibling, 1 reply; 6+ messages in thread
From: Eric Sandeen @ 2007-07-18 20:52 UTC (permalink / raw)
  To: timotheus; +Cc: linux-xfs

timotheus 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.

-Eric

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tuning XFS for tiny files
  2007-07-19 13:38 ` Andi Kleen
@ 2007-07-19 13:14   ` David Chinner
  2007-07-19 13:54     ` Andi Kleen
  0 siblings, 1 reply; 6+ messages in thread
From: David Chinner @ 2007-07-19 13:14 UTC (permalink / raw)
  To: Andi Kleen; +Cc: timotheus, linux-xfs

On Thu, Jul 19, 2007 at 03:38:43PM +0200, Andi Kleen wrote:
> timotheus <timotheus@tstotts.net> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tuning XFS for tiny files
  2007-07-18 17:15 tuning XFS for tiny files timotheus
  2007-07-18 20:52 ` Eric Sandeen
@ 2007-07-19 13:38 ` Andi Kleen
  2007-07-19 13:14   ` David Chinner
  1 sibling, 1 reply; 6+ messages in thread
From: Andi Kleen @ 2007-07-19 13:38 UTC (permalink / raw)
  To: timotheus; +Cc: linux-xfs

timotheus <timotheus@tstotts.net> 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) 

-Andi

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tuning XFS for tiny files
  2007-07-19 13:14   ` David Chinner
@ 2007-07-19 13:54     ` Andi Kleen
  0 siblings, 0 replies; 6+ messages in thread
From: Andi Kleen @ 2007-07-19 13:54 UTC (permalink / raw)
  To: David Chinner; +Cc: Andi Kleen, timotheus, linux-xfs

On Thu, Jul 19, 2007 at 11:14:01PM +1000, David Chinner wrote:
> On Thu, Jul 19, 2007 at 03:38:43PM +0200, Andi Kleen wrote:
> > timotheus <timotheus@tstotts.net> 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.....

Any reason why it aborts? It could just continue with a warning, couldn't it?

> -d agcount is only good for science experiments, not production
> systems ;)

XFS small file performance needs a lot of science.

-Andi

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tuning XFS for tiny files
  2007-07-18 20:52 ` Eric Sandeen
@ 2007-07-19 23:05   ` Nathan Scott
  0 siblings, 0 replies; 6+ messages in thread
From: Nathan Scott @ 2007-07-19 23:05 UTC (permalink / raw)
  To: Eric Sandeen, timotheus; +Cc: linux-xfs

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-19 23:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-18 17:15 tuning XFS for tiny files timotheus
2007-07-18 20:52 ` Eric Sandeen
2007-07-19 23:05   ` Nathan Scott
2007-07-19 13:38 ` Andi Kleen
2007-07-19 13:14   ` David Chinner
2007-07-19 13:54     ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox