Avoid Fragmentation of ext3
val.henson at gmail.com
Sun Mar 9 22:50:28 UTC 2008
On Thu, Feb 28, 2008 at 6:22 AM, Andre Nitschke
<andre.nitschke at versanet.de> wrote:
> i just want to know, how ext3 avoids fragmentation. Well, i think it works like
> this (but i dont know...):
> When the OS says to the filesystem, save the file, the file system looks, where
> are free sectors laying together to use. when there is enough place the
> filesystem try's to write the file without fragments. is there not enough
> place, the fs wrote the file in the way, to create less fragemnts. some file
> systems keep space after the file, for when the file grows. i dont know, works
> ext3 in this way?
> maybe somebody can explain it shortly.
Yes, that's the basic theory. Various file systems execute it more or
less successfully. I'd say ext3 is about average and XFS is quite
good at it.
There was a paper comparing file system fragmentation at OLS a few
years ago. "The Effects of File System Fragmentation" by Ard
Biesheuvel, et. al.:
More information about the Ext3-users