Messages in this thread | | | Date | Mon, 15 Nov 1999 17:13:42 +0100 | From | Pavel Machek <> | Subject | Re: Ext2 defragmentation |
| |
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.
You can speed du by factor of 100 or so, while not slowing down other operations. That does not seem so silly. 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/
| |