ext2/3/4 online defrag
Hi all,
This is my first post to the list. I want to add online defrag support to ext2/3/4 just to scratch an itch.
I've searched the archives and googled around, and I've come to the following conclusions:
*An offline defrag tool is available but dangerous.
*Some patches exist that provide preliminary support for online defrag in the ext3 driver, but interest in improving/integrating these patches is low.
*An implementation of an ext* filesystem driver can work with any ext2/3/4 filesystem as long as it supports the necessary revision (GOOD_OLD_REV or DYNAMIC_REV) and feature flags set in the filesystem.
Please let me know if any of my assumptions are incorrect.
Thanks,
Eric Anopolsky
Quoted 6 lines · Eric
This is my first post to the list. I want to add online defrag support to ext2/3/4 just to scratch an itch.
I've searched the archives and googled around, and I've come to the following conclusions:
*An offline defrag tool is available but dangerous.
Yes, old and dangerous.
Quoted 3 lines
*Some patches exist that provide preliminary support for online defrag in the ext3 driver, but interest in improving/integrating these patches is low.
I don't think that is true. Takashi Sato is actively working on online defrag, and patches are posted regularly to the linux-ext4 mailing list.
I'd recommend that any work being done be spent in improving those patches instead of starting from scratch.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
Hi,
Quoted 9 lines
I've searched the archives and googled around, and I've come to the following conclusions:
*An offline defrag tool is available but dangerous.
*Some patches exist that provide preliminary support for online defrag in the ext3 driver, but interest in improving/integrating these patches is low.
*An implementation of an ext* filesystem driver can work with any ext2/3/4 filesystem as long as it supports the necessary revision (GOOD_OLD_REVorDYNAMIC_REV) and feature flags set in the filesystem.
I'm working on the development of online defrag for ext4. The defrag can work effectively for fragmented huge files. So I'm focussing on ext4 which can store many huge files and developing the defrag for extent files on ext4. Any comments are very welcome.
Takashi
Quoted 5 lines · Takashi Sato
Quoted 3 lines
*Some patches exist that provide preliminary support for online defrag in the ext3 driver, but interest in improving/integrating these patches is low.
I'm working on the development of online defrag for ext4.
This makes sense. I didn't notice that the HTTP list archive was sorting my search results by relevance instead of date, so it appeared that the last post about online defrag was made in January.
Quoted 1 line
Any comments are very welcome.
I think I have a lot of reading to do before I go making comments.
Thanks,
Eric
Hello,
Sorry for replying a bit late...
Quoted 6 lines
This is my first post to the list. I want to add online defrag support to ext2/3/4 just to scratch an itch.
I've searched the archives and googled around, and I've come to the following conclusions:
*An offline defrag tool is available but dangerous.
For original e2defrag - yes. But me (and several other people
independently as I've learnt recently) have written some tools which should result in something useful. If you're interested, you can join [email protected] - it's led by one guy who is doing defrag and stuff as his google summer of code project.
Quoted 3 lines
*Some patches exist that provide preliminary support for online defrag in the ext3 driver, but interest in improving/integrating these patches is low.
The code itself for ext3 is not a big deal. Main problem are kernel
interfaces and I hope to find some time soon to put together some reasonable proposal for reasonably generic calls...
Quoted 3 lines
*An implementation of an ext* filesystem driver can work with any ext2/3/4 filesystem as long as it supports the necessary revision (
GOOD_OLD_REVorDYNAMIC_REV) and feature flags set in the filesystem.
Not sure what you mean here...
Honza
Signature · 2 lines
Jan Kara <[email protected]> SuSE CR Labs
Quoted 5 lines · Jan Kara
But me (and several other people
independently as I've learnt recently) have written some tools which should result in something useful. If you're interested, you can join [email protected] - it's led by one guy who is doing defrag and stuff as his google summer of code project.
Is this different from the ext4/extent-based defrag patch that's been mentioned on this list?
Quoted 4 lines
Quoted 3 lines
*An implementation of an ext* filesystem driver can work with any ext2/3/4 filesystem as long as it supports the necessary revision (
GOOD_OLD_REVorDYNAMIC_REV) and feature flags set in the filesystem.Not sure what you mean here...
The "ext2 filesystem"/"ext3 filesystem"/"ext4 filesystem" terminology was confusing to me when I first started reading about them. In my mind, it implied that those three filesystems were more different than they actually are.
I think it would be more accurate to say that they are all essentially the same filesystem, and that any filesystem driver that can mount a given filesystem can mount any other ext2/3/4 filesystem of the same revision with the same feature flags set.
I was asking for confirmation of this assumption, but I've since found a lot of really good documentation that has cleared up a lot of things.
Thanks,
Eric
Quoted 9 lines · Jan Kara
Quoted 5 lines
But me (and several other people
independently as I've learnt recently) have written some tools which should result in something useful. If you're interested, you can join [email protected] - it's led by one guy who is doing defrag and stuff as his google summer of code project.Is this different from the ext4/extent-based defrag patch that's been mentioned on this list?
Yes, it is different. In particular, it's offline only tool so far...
Quoted 10 lines
Quoted 4 lines
Quoted 3 lines
*An implementation of an ext* filesystem driver can work with any ext2/3/4 filesystem as long as it supports the necessary revision (
GOOD_OLD_REVorDYNAMIC_REV) and feature flags set in the filesystem.Not sure what you mean here...
The "ext2 filesystem"/"ext3 filesystem"/"ext4 filesystem" terminology was confusing to me when I first started reading about them. In my mind, it implied that those three filesystems were more different than they actually are.
Quoted 7 lines
I think it would be more accurate to say that they are all essentially the same filesystem, and that any filesystem driver that can mount a given filesystem can mount any other ext2/3/4 filesystem of the same revision with the same feature flags set.
I was asking for confirmation of this assumption, but I've since found a lot of really good documentation that has cleared up a lot of things.
Yes, basically it's just a question of a feature set. But for example
current online defrag from Takashi requires extents, which are not available for ext2 or ext3.
Honza
Signature · 2 lines
Jan Kara <[email protected]> SuSE CR Labs