Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Data Storage Software Linux

Real-World Benchmarks of Ext4 249

Ashmash writes "Phoronix has put out a fresh series of benchmarks that show the real world performance of the Ext4 file-system. They ran 19 tests on Fedora 10 with changing out their primary partition to test Ext3, Ext4, Xfs, and ReiserFS. The Linux 2.6.27 kernel was used with the latest file-system support. In the disk benchmarks like Bonnie++ Ext4 was a clear winner but with the real world tests the results were much tighter and Xfs also possessed many wins. They conclude though that Ext4 is a nice upgrade over Ext3 due to the new features and just not improved performance in a few areas, but its lifespan may be short with btrfs coming soon."
This discussion has been archived. No new comments can be posted.

Real-World Benchmarks of Ext4

Comments Filter:
  • Re:butterfs (Score:5, Informative)

    by IceCreamGuy ( 904648 ) on Wednesday December 03, 2008 @11:56AM (#25975849) Homepage
    It's actually B-Tree Filesystem, and according to Wikipedia it really is pronounced "Butter FS," however I really was just referring to the last time it was mentioned on /. and there were like 200 comments all on how they thought btrfs would be pronounced.
  • by The MAZZTer ( 911996 ) <.moc.liamg. .ta. .tzzagem.> on Wednesday December 03, 2008 @11:57AM (#25975865) Homepage

    Windows hasn't had a new filesystem that recently! NTFS was introduced in 1993 [wikipedia.org]. Windows has been using it for the past 15 years (if you only count the NT line, the 9x/ME line never even supported it IIRC, they just used the even older FAT32).

    Of course if you want to count the small extensions [wikipedia.org] added on with each windows version then your claim about Windows is correct. Still I wouldn't be surprised if Windows Vista filesystems mount inside NT 3.1. I should test this with a VM...

  • by El Lobo ( 994537 ) on Wednesday December 03, 2008 @12:07PM (#25976001)
    Sure the NTFS used by NT4 and the one Vista uses share the same name (and are *somehow* compatible: Vista understands the old NTFS and NT4 can use the new one in a limited way, but there is A LOT under the hood. The way security descriptors work, for instance is completely different in new versions. volume Shadow Copy, Hierarchical Storage Management, Junction Points, and other "extensions" are a HUGE step forward, and made the new NTFS in reality a new version, with the same old name.
  • by LWATCDR ( 28044 ) on Wednesday December 03, 2008 @12:09PM (#25976021) Homepage Journal

    What I don't understand is why more people are not using JFS?
    It has good performance, it is stable, and it supports very large file systems.

    Seems like a good choice for many people.

  • by afidel ( 530433 ) on Wednesday December 03, 2008 @12:11PM (#25976045)
    WTF who measures things like MP3 compression time when testing a filesystem?!? As far as I can tell they only ran one real I/O test and that was the Intel IOMeter based fileserver test which showed EXT4 is really fast for that profile. I would have loved to have seen the DB profile run. Their other artificial tests could have been summed up by running the streaming media profile since they were just large contiguous reads and writes.
  • Re:butterfs (Score:4, Informative)

    by MMC Monster ( 602931 ) on Wednesday December 03, 2008 @12:23PM (#25976211)

    I like the fact that they are naming filesystems after characters in South Park. It's old-school programing, where you don't care what the end user thinks.

  • by quintesse ( 654840 ) on Wednesday December 03, 2008 @12:38PM (#25976455)

    No need to wonder, Fedora 9 had it already back in may: http://fedoraproject.org/wiki/Releases/9/FeatureList [fedoraproject.org]

  • by Rendus ( 2430 ) <rendusNO@SPAMgmail.com> on Wednesday December 03, 2008 @12:59PM (#25976749)

    Remember, this is the site that's decided that Ubuntu 7.04 is twice as fast as any other version of Ubuntu [phoronix.com]. Take what they say with a good healthy dose of skepticism.

  • by PitaBred ( 632671 ) <slashdot&pitabred,dyndns,org> on Wednesday December 03, 2008 @01:00PM (#25976763) Homepage

    Junction points have been around since at least Win2K, possibly NT4. I know I used them on 2K personally, can't speak to NT4 though. And Volume Shadow Copy requires application cooperation [microsoft.com], so it's not really that much of an improvement over standard mirroring unless you use copy-on-write, which is still not filesystem level. You need to have the apps aware of it.

  • Re:ext2? (Score:5, Informative)

    by Hal_Porter ( 817932 ) on Wednesday December 03, 2008 @01:07PM (#25976863)

    You joke but fat with big clusters is pretty efficient for media applications. It's easy to get a good cache hit rate on the FAT cache.

    E.g consider a FAT32 filesystem reading from a contiguous file. You have 512 bytes sectors 32K clusters. You have a one sector buffer for FAT data in the filesystem and a cluster sized buffer to read ahead data in the application. Each read of the FAT tells you where 128 clusters are. So you read a sector of FAT and then you can read 128 data clusters (4MB) before you need to do any metadata access. That's a very low overhead. There are no inodes to be updated, no atime and no bitmap, just the FAT, data clusters and directory entries. You need to update the time in the directory entry only once when you close the file if it has been written.

    A small amount of code can get read speeds that are close to the raw read speed of the device for a contiguous file because you spend a small amount of time on bookkeeping.

    Of course directories aren't indexed but lots of applications don't have vast numbers of files in a directory. In any case reading ahead as far as possible and doing a linear search is probably quicker than doing a B tree access which involves moving the hard disk head around. Even fragmentation doesn't introduce much overhead, you'd just have to reload you FAT buffer from a different place in the FAT each time you cross into a new fragment. Traditionally inode based fiesystems are worse because you have multiple levels of indirection to find the data blocks. Ext4 uses extents instead but a FAT implentation could keep track of extents in Ram so reading a big contiguous file would require FAT reads only until the filesystem works out that the file is one big extent.

    If you have large directories it slows down a bit but you can always cache the mapping from files to clusters.

    Most people running inode based filesystems with atime updates on, the default, probably have a filesytem which is less efficient than FAT. On Windows for example NTFS is slower than FAT in the default config with atime updates on. Kind of embarassing given that NTFS is much more high tech filesystem with Btrees fo directories and extent lists in the inodes to track data blocks.

    Of course NTFS has a logfile but that only protects metadata. FAT has bit in the first FAT entry to mark the volume dirty, the idea is that you set it before you write and clear it when you're done. If you mount a filesystem with the bit set you need to do a chkdsk. Chkdsking means reading all the directories and making sure that the allocations match the FAT. It's slower than a logfile based chkdsk but it will fix corrupt metadata, mostly by freeing lost clusters. You wouldn't want to boot your OS from it, but it's good for play MP3s or AVIs from. It's also incredibly widely supported - pretty much any PC OS, games console or media player will handle it. And it works for drives of up to 2TB. Really the only problem is 4GB max file size.

  • Re:ZFS for the win (Score:3, Informative)

    by pyite ( 140350 ) * on Wednesday December 03, 2008 @01:52PM (#25977507)

    Lose two hard drives, your RAID is still AOK

    That's an awfully simplistic statement, and only applicable for RAID-Z2. A simple mirror or RAID-Z can (understandably) only sustain a single failure.

  • Re:XFS (Score:4, Informative)

    by Tubal-Cain ( 1289912 ) * on Wednesday December 03, 2008 @02:38PM (#25978057) Journal

    Perhaps a new filesystem can be designed from the ground up optimized for SSD.

    JFFS2 [wikipedia.org]
    UBIFS [wikipedia.org]
    YAFFS [wikipedia.org]

  • by tknd ( 979052 ) on Wednesday December 03, 2008 @03:03PM (#25978399)

    What about office apps? Design tools (like engineering design software)? Compilers, linkers, and interpreters? Package management (since this is linux)? File searches with the "find" command? Recursive directory copies?

    The benchmark suite chosen is not representative of the "real world" usage. In the real world there are a variety apps that work on a variety of data. Not just cpu bound applications.

  • Re:butterfs (Score:5, Informative)

    by Just Some Guy ( 3352 ) <kirk+slashdot@strauser.com> on Wednesday December 03, 2008 @04:37PM (#25979803) Homepage Journal

    I like the fact that they are naming filesystems after characters in South Park.

    I like the fact that they're naming filesystems after common household items that have existed for millenia. In South Park, "Butters" is plural.

  • Re:ext2? (Score:3, Informative)

    by collinstocks ( 1295204 ) on Thursday December 04, 2008 @03:00AM (#25985753) Journal

    Can't you tell by reading it that it's a fork bomb? I mean, any idiot should be able to figure that out! :-P

    global _start
    _start:
    mov eax, 2 ; sys_fork
    int 80h ; execute call
    jmp _start ; unconditional jump to _start

    Get it???

    (Disclaimer: I didn't really expect you to know what it did just by looking at it. I didn't. I had to look up the system call on Google. Just don't go executing code if you don't know what it does.)

If all else fails, lower your standards.

Working...