5 ms·
I don't know how or why ext4 took off the way it did. ext2/3fs' dominance was somewhat understandable, it was the dark ages of filesystem architecture (akin to
by ComputerGuru 12y ago
I don't know how or why ext4 took off the way it did. ext2/3fs' dominance was somewhat understandable, it was the dark ages of filesystem architecture (akin to the dark ages of cryptography), and no one used math or science to definitively say something was better than another.
But in the age of ZFS, filesystems like XFS and JFS have proven themselves worthy to remain in the ring as non-versioning, simple filesystems. Their resilience (now, despite any known issues in the past) is beyond reproach, combined with their speed and performance (comparing apples to apples, not journaled to non-journaled) is where it should be.
Why does any OS/distro use extfs by default for new installations? I can understand ancient machines that upgrade from ext3 to ext4 to avoid migrating data to a new filesysystem/mountpoint, but for new installations?
- walterbell 12y ago> Their resilience (now, despite any known issues in the past) is beyond reproach How is resilience characterized for filesystems which are not widely adopted and thus exposed to diverse usage scenarios?
- feld 12y agoPolitics, that's why. But XFS and JFS have had their share of corruption bugs too. I don't believe any were long-standing bugs, though. Wikipedia mentions that JFS has a misfeature where write can be delayed so long (indefinitely) that a power outage can cause major data loss. Didn't Suse ship with JFS as default out of the box for a very short period of time?
- cjbprime 12y agoIt seems likely that btrfs will become default for most distributions within a few years. Nothing compares to having decades of experience with an on-disk format, a fsck tool, etc. Ext3/4 has had the most users, therefore it will be the most trusted (bugs like this one notwithstanding). When you're choosing the distro default, you have to prefer reliability to performance/features. Hm, I guess I just gave an argument for why btrfs won't become the default for another 5-10 years. We'll see!
- calpaterson 12y agoThat has seemed likely for the last few years. btrfs' adoption has been much delayed
- e40 12y agoBecause it seems to be btrfs is counting their chickens before they hatch. Making predictions about very complex software before it is 100% feature complete is pure folly. Experienced programmers know that when a project is 80% complete, from a feature standpoint, that doesn't mean 20% of the work is left to do. In fact, it is usually that substantially more than 20% of the work is left to do. (I don't know if btrfs is at the 80% mark, but I've heard there are a lot of things left to implement.. it's just an illustration).
- simoncion 12y agoAs you understand it, what things have yet to be implemented?
- rockdoe 12y agoCompression support needs to be rewritten, RAID5/6 support is extremely new and likely still quite buggy, quota support was just rewritten, in general an unexpected powerdown will dump you in a recovery shell because replay-from-journal has thousands of error cases that aren't properly handled yet (this may take many more years to fix because it's too complicated) and what do you know, this isn't really acceptable for servers. There are long standing bugs related to ENOSPC and new ones still regularly pop up, often related to the (fixed) separation of metadata vs data allocation. In general, disk space usage handling is awkward and integrates horribly with existing tools (df/du), especially when snapshots are involved. Snapshot/subtree handling and deciding what gets automatically mounted in parent/child relations is pretty weird and the whole subsystem probably needs a rewrite. Online dedup. They probably also want to fix the whole extent design that causes random-access files to take up to N*(N-1)/2 disk space, where N is the original file size.
- joosters 12y agoBecause it just works (critical data corruption bugs aside! But every FS has had those...) For most uses, no-one will ever spot the difference between an underlying modern(-ish) filesystem. Ext3/4 also has a very decent set of maintenance / recovery tools and is well supported by most distributions. That is plenty good enough for almost everybody.
- rdtsc 12y agoWho is using JFS? And in general why pick that over XFS for instance?
- JoshTriplett 12y agoTwo notable reasons I know of. First, people like boring in filesystems, and ext4 was seen as a natural and less risky successor to ext3, which most people ran. And I think that's a reasonable perception. Second, ext4 went out of its way to solve some of the system-level issues that tended to cause problems, before it went into production. For instance, the ext4 developers introduced hacks to deal with software that handles write atomicity incorrectly, making it much less likely that you'd end up with a zero-length file if you cut power or crashed at the wrong time. XFS and JFS had similar issues that actually hit users, breaking invalid-but-widespread assumptions about filesystem semantics. ext4 at first considered having similar semantics, but instead worked around how many programs actually wrote files, which made it safer in practice. (Also, "in the age of ZFS"? ZFS is by no means the dominant filesystem, or even an obvious contender for that title; it has a few popular features, but it's hamstrung by its choice of license.)
- kbenson 12y agoAlso, you could upgrade ext3 to ext4 in-place. That was a powerful feature for a distro that had ext3 as the default, or for companies that had a lot of data on ext3 volumes.
- rockdoe 12y agoext4 is actually one of the fastest, if not the fastest filesystem for most common hardware and workloads and has few workloads where it does badly. Source: most benchmarks involving Linux filesystems