xfs
[Top] [All Lists]

Re: XFS for lots of small files

To: Martin Steigerwald <Martin@xxxxxxxxxxxx>
Subject: Re: XFS for lots of small files
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Sat, 24 May 2008 22:25:14 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <200805062055.36755.Martin@xxxxxxxxxxxx>
References: <4820832B.3070903@xxxxxxxxxxxxxxx> (sfid-20080506_185726_779300_46423265) <200805062055.36755.Martin@xxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
Martin Steigerwald wrote:

> And there is quite some fragmentation on it:
> 
> xfs_db> frag
> actual 653519, ideal 587066, fragmentation factor 10.17%


No, there's not.

You have 653519 extents out of an "ideal" 587066.

That is 653519/587066 = 1.113 extents per file.

It is not "quite some" fragmentation, it is near perfect (although this
is subjective, and also depends on the size of your files... if they are
all 8k then 1.113 extents per file might be a bit high; if they average
1G then 1.113 extents on average is pretty darned good.)

-Eric


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