Mar 30 2009

From ext3 to ext4: An Interview with Theodore Ts’o

jason

Jeff Layton from Linux Magazine just published “From ext3 to ext4: An Interview with Theodore Ts’o.” The interview goes over the design decisions of ext4, the progression from ext3 to ext4, discuss things like SSD optimization, and and Ted Ts’o even gives some performance tips in the last question of the interview. They do not touch on the recent ext4 delayed allocation bug or the recent kerfuffle on the kernel developers mailing list between Linus and Ted (one possibility for this may be that the interview was conducted before these events transpired). The interview isn’t too long, so go on over and give it a read.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Mar 13 2009

Ted Ts’o on the Recent Ext4 Delayed Allocation Issues

jason

There has been a lot of discussion about the recent potential ext4 data loss issues. The data loss issue is caused by ext4 using delayed allocation to improve performance which results in some data loss if the system loses power before the latest set of data in the buffer is written to disk. The system will then replace the existing file with a zero-length file (there are a set of patches for kernel 2.6.30 to fix the killing of existing files, but if the file is a newly created file it will still be zero-length) . This is a common method for improving filesystem performance and filesystems such as Reiser4, XFS, HFS+, ZFS and btrfs use this method. Ted Ts’o wrote a blog post titled “Delayed allocation and the zero-length file problem” in which he discusses these issues more in depth and talks about the pros and cons of all of the different solutions that are available to the ext4 team. I think this quote sums the issue and best solution going forward nicely:

What’s the best path forward?   For now, what I would recommend to Ubuntu gamers whose systems crash all the time and who want to use ext4, to use the nodelalloc mount option.   I haven’t quantified what the performance penalty will be for this mode of operation, but the performance will be better than ext3, and at least this way they won’t have to worry about files getting lost as a result of delayed allocation.  Long term, application writers who are worried about files getting lost on an unclena shutdown really should use fsync.    Modern filesystems are all going to be using delayed allocation, because of its inherent performance benefits, and whether you think the future belongs to ZFS, or btrfs, or XFS, or ext4 — all of these filesystems used delayed allocation.

I especially enjoy seeing how Mr. Ts’o is engaging his readers in the comments and holding a real discussion about the issue and solutions to the issue with them.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Feb 23 2009

Anatomy of ext4

jason

IBM developerWorks has a good article on the anatomy of the ext4 filesystem. The ext filesystem was recently included in the stable 2.6.28 Linux kernel release, so now is a good time to learn more about one of the Linux filesystems of the future. (The Fedora project announced that ext4 would be the default filesystem in their Fedora 11 final release).

Further reading for ext4:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]