On 30 Jun 00, at 8:36, Mrinal Kalakrishnan wrote:
> > How to i defrag Linux partition.
> > while fsck it is showing 2.2% noncontiguous.
The way ext2 allocates files, fragmentation is kept low. Manual
checks onmy machine show 3-5% non -contiguous, and this after 5-6
months. Don't believe there'll be any perceptible speed increase.
This is something i picked up in a list once:
<snip>
That's only partially the truth. It is true that fragmentation can
not be avoided (especially in the extreme cases you describe), but
the way ext2 handles fragmentation is better than for other file
systems (well, at least some of them, i don't know about all the
fs...). The ext2 fs is designed to keep a list of all empty blocks
on the hd. When some blocks are needed to write a file, ext2 look
at his list and find *contiguous* free blocks to handle the write
(if those blocks exist, at least). The fat fs by opposition writes
the file in the first free blocks it encounters. So fragmentation
can be held at a lower rate with ext2.
Of course, as i'm not a specialist in fs, this story must only be
a small part of the truth. There is an interesting article on the
net by Roberto Di Cosmo who deals (among other things) about fs and
fragmentation. You can find the english version at :
http://www.pps.jussieu.fr/~dicosmo/Piege/PiegeEN.html
<snip>
-Rgds
========================================================================
__ _ Sthitaprajna | (at)mailandnews(dot)com
/ / (_)__ __ ____ __
/ /__/ / _ \/ // /\ \/ / . . . t h e c h o i c e o f a
/____/_/_//_/\_,_/ /_/\_\ G N U g e n e r a t i o n . . .
-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting. The site is
at http://botsie.tripod.com/beforeposting/