You are not logged in.
Pages: 1
Anyone know when this will hit testing/core? I have already converted all my partitions to ext4 and I am now just awaiting for the ability to run the online defrag tool to make use of the extents and all the other goodness that ext4 will provide. Thanks in advance.
Offline
I'm not sure it actually exists yet. If you've converted, things will slowly start using extents as files are created and modified- you don't have to do anything. Use lsattr to see if something is using extents- you'll see an 'e' in the big list of attributes.
Offline
It exists. See this thread "http://bbs.archlinux.org/viewtopic.php?id=61602&p=4" (post 78). I am just not bold enough to mess with the kernel. Also, not really a big deal as I just ran this defrag script located here "http://ck.kolivas.org/apps/defrag/defrag-0.06/defrag" that was mentioned in another arch linux thread (cant find it at the moment). This seems to work for a migrated ext3 to ext4 to enable extents on the already existing files.
Offline
It exists. See this thread "http://bbs.archlinux.org/viewtopic.php?id=61602&p=4" (post 78). I am just not bold enough to mess with the kernel. Also, not really a big deal as I just ran this defrag script located here "http://ck.kolivas.org/apps/defrag/defrag-0.06/defrag" that was mentioned in another arch linux thread (cant find it at the moment). This seems to work for a migrated ext3 to ext4 to enable extents on the already existing files.
The script seems like a pretty good solution anyway. Just swapping files around should do the trick. Hopefully anyway, I'm going to do it in the next few hours.
Offline
BKJ wrote:It exists. See this thread "http://bbs.archlinux.org/viewtopic.php?id=61602&p=4" (post 78). I am just not bold enough to mess with the kernel. Also, not really a big deal as I just ran this defrag script located here "http://ck.kolivas.org/apps/defrag/defrag-0.06/defrag" that was mentioned in another arch linux thread (cant find it at the moment). This seems to work for a migrated ext3 to ext4 to enable extents on the already existing files.
The script seems like a pretty good solution anyway. Just swapping files around should do the trick. Hopefully anyway, I'm going to do it in the next few hours.
Sounds about as useful as a gentoo makeworld. Have fun wasting time.
Offline
skottish wrote:BKJ wrote:It exists. See this thread "http://bbs.archlinux.org/viewtopic.php?id=61602&p=4" (post 78). I am just not bold enough to mess with the kernel. Also, not really a big deal as I just ran this defrag script located here "http://ck.kolivas.org/apps/defrag/defrag-0.06/defrag" that was mentioned in another arch linux thread (cant find it at the moment). This seems to work for a migrated ext3 to ext4 to enable extents on the already existing files.
The script seems like a pretty good solution anyway. Just swapping files around should do the trick. Hopefully anyway, I'm going to do it in the next few hours.
Sounds about as useful as a gentoo makeworld. Have fun wasting time.
God forbid we enjoy tinkering with our systems, and have some fun getting a small speed boost. Some people would use the _exact same_ argument you just offered, against using Arch at all - or even any Linux or BSD. It's just how far you're willing to go, which is different for each person. Everyone's capable of looking up benchmarks, or asking for them. Posting for the sole reason to make a snide comment is rather... yeah. Negative, at best. Regardless of whether extents gives a boost of 1% or 100%.
On topic, here is the only benchmark I could find of ext4 with and without extents, it's on the second page, the second graph: http://www.linux-magazine.com/w3/issue/79/Ext4.pdf
Oh, here's another: http://www.csamuel.org/2008/12/29/first … -with-ext4
Last edited by Ranguvar (2009-01-18 02:51:50)
Offline
That e4defrag thing doesn't work with flex_bg option yet and that's default when creating a new ext4 FS. Just FYI.
Offline
That e4defrag thing doesn't work with flex_bg option yet and that's default when creating a new ext4 FS. Just FYI.
Lucke, why did you have to go and ruin my day by mentioning this. Now I've just got to have the flex_bg option. Then, after I've managed to enable it*, I'll try to figure out what it is!
*I just let my computer spend most of the past 12 hours defragging my newly converted ext4 partitions, all so that I could enable extents. And, just as I was feeling good about things, you have to go and mention the flex_bg option! I must have it!
Offline
If you have flex_bg, you can't use e4defrag. Ergo, you should be happy not to have it!
Offline
If you have flex_bg, you can't use e4defrag. Ergo, you should be happy not to have it!
If you're absolutely sure .... O.K., I'm happy again. Thanks.
Offline
Can you explain this flex_bg option in more detail, please? After mucho Googling, all I've found is that it prevents fragmentation somehow.
I, too, am jealous of those with more options than I--especially the ones I don't understand!
M*cr*s*ft: Who needs quality when you have marketing?
Offline
flex_bg
Allow bitmaps and inode tables for a block group to be placed anywhere on the storage media (use with -G option to group meta-data in order
to create a large virtual block group).
That's all I know about this option.
And here's the excerpt from the defrag patch.
+ /*
+ * Will go away.
+ * Now ext4 online defrag does not support flex_bg feature.
+ */
+ if (EXT4_HAS_INCOMPAT_FEATURE(org_inode->i_sb,
+ EXT4_FEATURE_INCOMPAT_FLEX_BG)) {
+ printk(KERN_ERR "ext4 defrag: online defrag does not support "
+ "flex_bg feature.\n");
+ return -EOPNOTSUPP;
+ }
Note that if you want to use e4defrag, you have to build your own patched kernel - so currently you need both a patched kernel and an ext4 FS without flex_bg (it seems impossible to clear that flag, so if you use default mkfs.ext4 options, you're stuck with it; if you convert from ext3, you don't have that flag).
Offline
Sounds about as useful as a gentoo makeworld. Have fun wasting time.
Yeah, but now instead of seeing nothing but "---------------" using lsattr, I get some of these "-------------e-". And you think that that's not worth a bunch of hours of waiting? WHATEVER!
--EDIT--
This is a little better description of flex_bg. From: http://lists.zerezo.com/linux-kernel/msg13412149.html
ext4: FLEX_BG Kernel support v2.
This feature relaxes check restrictions on where each block groups meta data is
located within the storage media. This allows for the allocation of bitmaps or
inode tables outside the block group boundaries in cases where bad blocks forces
us to look for new blocks which the owning block group can not satisfy. This
will also allow for new meta-data allocation schemes to improve performance and
scalability.
Offline
toofishes wrote:Sounds about as useful as a gentoo makeworld. Have fun wasting time.
Yeah, but now instead of seeing nothing but "---------------" using lsattr, I get some of these "-------------e-". And you think that that's not worth a bunch of hours of waiting? WHATEVER!
I know what you mean. I feel really sorry for all those people who get --------------- instead of -------------e- when they type lsattr. They just don't know what they're missing.
Offline
I don't call it wasting my time.... As of now I have the "-------------e-" as well. I just used the defrag script. Time well spent for me.
Offline
So, should I create new ext4 partitions with or without flex_bg if I want to be able to use e4defrag to defrag them in the future? Is this going to be supported by e4defrag soon?
Offline
Found this in a January 25th email from the creator of e4defrag:
"The new online defrag handles the flex_bg feature correctly, so you will be able to run e4defrag on the Fedora 10 soon.
Regards, Akira Fujita"
I think 0.95 is the latest? Will search more later.
Offline
CONVERT ? Is there a tool to directly convert an EXT3 file system to EXT4 ?
And is it recommended for my / partition and /home partition ?
My Linux Blog - http://TheSmallerBang.wordpress.com/
Offline
CONVERT ? Is there a tool to directly convert an EXT3 file system to EXT4 ?
And is it recommended for my / partition and /home partition ?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
CONVERT ? Is there a tool to directly convert an EXT3 file system to EXT4 ?
And is it recommended for my / partition and /home partition ?
Offline
Note that if you want to use e4defrag, you have to build your own patched kernel - so currently you need both a patched kernel and an ext4 FS without flex_bg (it seems impossible to clear that flag, so if you use default mkfs.ext4 options, you're stuck with it; if you convert from ext3, you don't have that flag).
Sorry to add to an older thread, but can someone answer a question for an ext4 newb? I'm planning to backup, nuke, and create an ext4 formatted /home right now (using 2.6.29). I was going to use gparted to make the ext4. Thoughts about whether or not it will have this flex_bg flag this way?
Last edited by graysky (2009-04-08 18:28:03)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
flex_bg is a default ext4 option; it should. mkfs.ext4 does it, at least. You can check with tune2fs -l /dev/foo after you make the partition.
Offline
Pages: 1