17

Assuming there's no need to worry about compatibility with older systems, I expect it's always better to use the latest stabile linux file system, which currently seems to be ext4.

However it seems ext4 isn't much of a change. Wikipedia ext4 article does list 11 main features for ext4, but as far as I understand most of these don't appear to have any major practical difference to ext3. The article also discusses a potential data loss caused by delayed allocation, but to my understanding this would happen only in esoteric system crash cases and thus not make any practical difference either.

Is this just a small gradual upgrade without any major differences, or should I be running to convert my ext3 systems into ext4?

5 Answers 5

10

EXT4 above all says it will boot your OS faster. Ubuntu 9.04 should be booting up to 30% faster. If this is the only practicall use I would be stunned, since my Ubuntu boxes boot so fast I cannot even go get me a cup of coffee...

But you can use larger harddrives, have larger files, more security is built in to safeguard data from crash and last but not least, it is being optimized for speed...

When starting to develop EXT4 in 2006 it was meant as an improved EXT3. However, changes where to big to just call it an upgrade. Thus the new name. It was added to the kernel in 2008...

5

I'd advice you to wait a while before you switch to ext4, especially if you're on Ubuntu. There are nice performance and fragmentation related improvements in ext4, but it's not worth any system instability.

Read the blog post by Ted Ts'o, the ext4 maintainer, on the potential data loss due to delayed allocation: Delayed allocation and the zero-length file problem. Also have a look at the three ext4 related issues present in Ubuntu 9.04 (Jaunty) and laid out in the 9.04 release notes.

Ext4 is the default filesystem on Fedora 11, and they have a nice FAQ on Ext4 in Fedora 11 that answers your question quite well. If on Ubuntu, I'd wait till Karmic (which will also have Ext4 as the default fs) before switching.

4

Short answer: no rush.

Longer answer:

I don't think it's always as simple as "use the latest release of a file system." Alos, as pointed out by @nagul, I don't think ext4 is more stable than ext3 at this point.

Even speed difference comparisons are not straightforward. Different file system types tend to perform better in different situations. There's a good linux-mag article that compares several types of file system performance.

One of the major questions you have to ask yourself is does this fs need journaling? I typically setup my machines to use ext2 for /boot and other other partition I mount read only, and /tmp (for speed).

4
  • Much faster fsck (ext3 can be terrible slow on larger filesystems)
  • Extents (make sure to reformat!) => less metadata overhead
  • ext4 can be used without journal e.g. for scratch directories => faster.
  • journal checksumming => higher safety in case of a crash
1

If you don't care for new features it's alright to stay with the more stable version. But faster fsck alone could be the deciding factor.

1
  • 1
    Hear hear. ext3 fscks on larger hard drives can take a very long time, even with no filesystem errors. You probably won't care if you only have a few gigabytes dedicated to Linux, but when you are pushing past the TB range, fsck can be really really slow. Sep 30, 2009 at 20:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .