[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fragmentation (was: XFS NFS server Oops)
Rupa Schomaker wrote:
>
> Federico Sevilla III <jijo@leathercollection.ph> writes:
>
> > I got fragmentation factors from a high of 50.92% (this is a filesystem
> > where I store huge tar.gz backups and not much else) to a low of 0.43% for
> > my / filesystem.
>
> I've got a filesystem with 28 .iso images, the frags -f command shows:
>
> # xfs_db -r /dev/shaktivg/xxx
> xfs_db: frag -f
> actual 355, ideal 29, fragmentation factor 91.83%
>
I assume that's saying that ideally, those 28 files should take
up just 28 contiguous chunks of disk, but in fact they're taking
355. If those ISOs are all 600 megs then your average contiguous
chunk size is 47 megs, which is darn good.
Quantifying fragmentation is hard. I think the only valid
way really of measuring it is to go for the bottom line:
grab the stopwatch and time how long it takes to read the files.
Then copy them to a newly-initialised and empty filesystem, see
how long it takes to read the files under these ideal circumstances.
Then compare the two times.