Re: Ext2 defragmentation

Andi Kleen (ak@muc.de)
Mon, 15 Nov 1999 16:44:05 +0100


On Mon, Nov 15, 1999 at 03:00:20PM +0100, Pavel Machek wrote:
> 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.

It just sounds silly to optimize the disk layout for such specific cases.
Maybe if you're only running du -s and find / all day, but somehow I doubt
that.

-Andi

-- 
This is like TV. I don't like TV.

- 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/