LWN: Comments on "ext3 block reservation" https://lwn.net/Articles/81357/ This is a special feed containing comments posted to the individual LWN article titled "ext3 block reservation". en-us Tue, 09 Sep 2025 02:51:21 +0000 Tue, 09 Sep 2025 02:51:21 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net ext3 defragmentation https://lwn.net/Articles/82056/ https://lwn.net/Articles/82056/ tialaramex ext3 filesystems that are cleanly unmounted are also valid ext2 filesystems and can therefore be defrag'd by any working ext2 defrag application. I last used such a thing in 1998 and it seemed to work fine at that time. I believe there have since been one or perhaps at most two incompatible changes to the ext2 structures that might (not sure) affect defrag programs. You should check that any defrag application you consider is aware of ext2/3's compatibility flags, which would prevent it from modifying a filesystem with features that it doesn't understand. Sun, 25 Apr 2004 11:15:02 +0000 ext3 defragmentation https://lwn.net/Articles/81952/ https://lwn.net/Articles/81952/ southey In my (poor) opinion defragmentation is a myth. At least on Windows it doesn't change a thing except the time waiting for it to finish. There is more benefit is having files used together in the same sequence - at least this is one of the tricks MS uses to get Windows to 'boot' faster. Linux's ability to put that 'unused' memory to 'good use' also probably helps minimize fragmentation delays with file access. Harddrive technology probably also makes this a less of an issue. Fri, 23 Apr 2004 18:35:03 +0000 ext3 defragmentation https://lwn.net/Articles/81842/ https://lwn.net/Articles/81842/ prat I've actually looked at this before, and found a few solutions, but quickly concluded that the programs in question (which had to be run offline) seemed a little too unmaintained and unreliable to test out on my partition. The best answer I've gotten from anyone so far is that yes, there is a program that can do this, and that program is tar. =) Of course, you'd need someplace to back everything up to. Then you can just untar everything onto a clean partition, possibly with these new patches in place in the kernel you use during the restore, but since tar is probably doing this linearly anyway, I doubt it would make much difference.<p>Long story short, most people I've talked to have never had any problems with fragmented ext[23] filesystems. Sorry. Fri, 23 Apr 2004 01:43:46 +0000 ext3 defragmentation https://lwn.net/Articles/81711/ https://lwn.net/Articles/81711/ Duncan There's not enough info in that limited quote to tell for sure, but if an <br>ext2 defragger is run on an ext3 filesystem either mounted, or unmounted <br>but with unsynced data in the journal, it WILL likely corrupt data, <br>because the ext3 side of things won't be aware of the data-blocks moving <br>out from where it expects them to be, and could easily attempt to write <br>data to the OLD location. <br> <br>Some years ago, back in early '98, b4 I switched from MSWormOS and while I <br>was participating in the public betas for IE4, it had a similar conflict <br>between the IE cache code and the 95 defragger. IE3 had used a mechanism <br>where by the cache index file location was kept in memory for direct <br>writing, bypassing the file-system lookup after it was loaded and writing <br>directly to disk, for performance reasons. That worked with IE3, because <br>it was only temporarily loaded and was shut down during defrags. MS <br>changed the rules with IE4 and its desktop extensions, however, and it <br>remained loaded as long as Windows Explorer was loaded, because it WAS now <br>Windows Explorer as WELL as IE. Normally, such constantly loaded &quot;system&quot; <br>files remained untouched and unmoved by the defragger. Unfortunately in <br>the IE4 second beta, they forgot to set the IE cache index file as <br>&quot;system&quot; and the defragger would move it out from under the still live <br>IE/WE process, which would then write all over whatever replaced the file, <br>when it tried to rewrite it to disk. The simple enough fix was to set the <br>system flag on the file, but IE would reset it every time it was started, <br>so one had to keep on top of things. <br> <br>Fortunately, here, I'd set up my temp dir as a seperate partition, and had <br>the IE cache set to use my temp partition. Thus, the only data I had <br>exposed was temporary anyway, and the bug wasn't a big problem for me. <br>However, some of the other beta newsgroup regulars and others that posted <br>only when they had problems, lost valuable data to that bug. Keeping temp <br>files in their own partition saved my butt, but I've never forgotten that, <br>as it left a BIG impression on me, not only on the risks of beta, but ALSO <br>on the wisdom of limiting potential damage with multiple partitions. Of <br>course, it also impressed me with the wisdom of making SURE nothing is <br>going to be writing to that defragged partition without being aware of the <br>new location of the data. <br> <br>It's entirely possible the test was done with a properly unmounted and <br>journal-empty ext3 partition for the defrag, but if it wasn't, it's no <br>surprise there were data integrity issues. <br> <br>Duncan <br> Thu, 22 Apr 2004 16:42:29 +0000 ext3 defragmentation https://lwn.net/Articles/81634/ https://lwn.net/Articles/81634/ jbh There has been some progress to avoid fragmentation. But it doesn't help much for older filesystems that are already heavily fragmented. Does anyone know of an ext3 defragmenter? Online or offline.<p>I've seen one for ext2 but I don't trust it, especially after seeing this:<br> &quot;Tried it on a spare ext3 partition that I backed up first. Did a diff after, the defrag corrupted data.&quot;<br>http://lists.debian.org/debian-user/2003/debian-user-200308/msg03259.html Thu, 22 Apr 2004 11:23:48 +0000