EXT3 vs EXT4 vs XFS vs BTRFS linux filesystems benchmark

Written by Gionatan Danti on . Posted in Linux & Unix

User Rating:  / 132

In the latests years, there was considerable ferment in the Linux community regarding which filesystem is best suited to accomplish its goal – to organize your files. In endless discussion, we can read about the alleged superiority of one filesystem over another one, however often these statements lack some objective data points to prove that.

As a typical Linux user can choice from a plethora of very different filesystems, I would like to give you some number to compare them. In this article, we will focus on the performances of these filesystems:

  • ext3, which was the “standard” Linux filesystem since almost a decade;

  • ext4, the high-anticipated ext3 successor;

  • xfs, an high-performance filesystem originally developed by Silicon Graphics, Inc. for the IRIX operating system;

  • btrfs, a new, next-gen filesystem developed with scalability in mind.

The above filesystems have quite different features, with the ext3 having the more limited feature set. However, this article is not about features: if you need such comparison, you can refer to the very complete Wikipedia article [1]

This article is about performance: we are going to see which filesystem performed the best and by which margin. Keep in mind that different usage patterns can favor different filesystems, so I don't pretend to elect the always-better, stronger FS on the world. I simply want to give you some numbers collected in a quite various usage pattern, so that I can help you in the choice of the right filesystem for some common jobs.

Please also consider that FS performances can vary dramatically between kernel releases. For example, EXT4 and BTRFS both had some speed improvements and some serious regression between the latest kernel releases. You can read some very interesting tests about these improvements/regressions on the Phoronix's website and other web sources.

So, let's go on...


#1 Max 2012-08-26 15:49
Thank you for this very interesting article. I'll go with ext3, mostly because of your verdict for it being a good and balanced filesystem.
#2 Gionatan Danti 2012-08-26 16:11
Hi Max,
I'm happy that you found my article interesting.

However please note that, as you can read in the updates, EXT3 was incorrectly benchmarked with write barrier off, while all other filesystems used barrier on.

This means that EXT3 data were somewhat flawed. For up-to-date data, please read my latest article here: http://www.ilsistemista.net/index.php/linux-a-unix/33-btrfs-vs-ext3-vs-ext4-vs-xfs-performance-on-fedora-17.html

#3 Kuba 2012-10-09 15:01
Hi Gionatan,

Could you please let me know what sysbench parameter you have used to perform these tests?

#4 http:// 2014-03-08 09:57
I believe what you published was very reasonable. But,
what about this? suppose you typed a catchier post
title? I mean, I don't want to tell you how to run your website, however suppose you added something to possibly get people's attention?
I mean EXT3 vs EXT4 vs XFS vs BTRFS linux filesystems benchmark is a little vanilla.

You ought to glance at Yahoo's home page and see how they write
article headlines to get people to open the links.

You might add a video or a pic or two to get readers excited about everything've got to say.
Just my opinion, it could bring your website a little bit more interesting.

You have no rights to post comments