defragmentation in FreeBSD 4.11

Bob Johnson bob89 at eng.ufl.edu
Thu Jul 28 19:46:58 GMT 2005


On Thursday 28 July 2005 03:07 pm, Lowell Gilbert wrote:
> Bob Johnson <bob89 at eng.ufl.edu> writes:
> > From: Victor Semionov <victor at vmpbg.com>
[...]
> > > Why is it unnecessary to defragment UFS?
> >
> > In normal use, files never become fragmented enough to affect
> > performance.  In a (loose) sense, files are intentionally fragmented in a
> > controlled way so that fragmentation doesn't cause problems.  If you run
> > fsck on a partition, you will typically see fragmentation levels of less
> > than one percent.
>
> Careful, there; "fragmentation" on a UFS is measuring a completely
> different thing than the same term applied to a Microsoft filesystem.
> For UFS, it refers to non-contiguous free blocks (fragments,
> actually), as opposed to the Microsoft terminology, where it refers to
> non-contiguous blocks within the same file.
>
> Everything you are saying is correct, but it will confuse people who
> don't realize the difference.

Yeah, I was trying to keep a long response from getting even longer.  And I 
didn't really know what fsck is measuring when it reports fragmentation, so I 
got lazy and glossed over it instead of digging up the information.

Thanks for keeping me honest,

- Bob


More information about the freebsd-questions mailing list