Re: Ext2 defragmentation

Pavel Machek (pavel@suse.cz)
Mon, 15 Nov 1999 15:00:20 +0100


Hi!

> > > > How necessary is it to defragment ones ext2 partitions? It just hit me
> > > > that defragmentation is very important under the Wintendo filesystem.
> > >
> > > It's not as important. But... I had an idea for an ext2 defrag daemon,
> > > e2defragd, which would take advantage of _disk_ idle time to reorganize
> > > blocks, while the filesystem was mounted. This daemon would be a good
> > > candidate for disk optimizations like moving frequently-accessed files
> > > to the middle of the disk in addition to background defragging.
> >
> > There's one usefull thing that could be done with e2defrag: putting
> > directories at the beggining of the disk exactly in the order find /
> > would use. One line hack, but e2defrag just does not work for me.
> > Pavel
>
> Isn't it better to simply use locate / updatedb instead ?

No. There are other operations (such as du -s ., search from midnight)
which have find-like access pattern. And you have no chance of getting
out of date.
Pavel

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/