Benchmarking Linux Filesystems In New 2.6 Kernel 56
An anonymous reader writes "KernelTrap has an interesting article about a recent benchmark conducted to compare five journaling filesystems available with the current 2.6.0-test2 Linux development kernel. The tests were conducted with a very simple shell script, mainly timing how long it takes to copy, tar, and remove directories. Looks like reiser4 is the fastest filesystem at the expense of consuming much more CPU, with ext3 trailing a ways behind."
fs issues (Score:5, Insightful)
Re:fs issues (Score:5, Informative)
For a long time I resisted moving away from ext2, as I didn't want the journalling overhead and didn't mind the occasional e2fsck. After I got a few power outages I changed my mind :-) but I haven't been disappointed with Reiserfs' speed.
Another thought... (Score:3, Interesting)
Stability will be fixed (Score:2)
Re:Stability will be fixed (Score:3, Interesting)
Stability should be at the top of the list when desigining a filesystem. If its a quetsion of stability or speed, stability should win.
unBuggyness vs. Robustness (Score:2)
Re:Stability will be fixed (Score:2)
Re:fs issues (Score:1)
<voice class="preacher"$gt;I ABJURE THEE, reiserfs! Get thee gone, and never darken my doorstep again! Away with you! The power of Christ compels you! The power of Christ compels you!</voice>
Re:fs issues (Score:1)
There were times when the power used to suddenly go off and when I rebooted there were parts of my files which had been swapped!! Really pissed me off and I switched to ext3 since then...
Nandz.
karma for Anonymous Coward (Score:5, Informative)
is better). The second number is CPU use percentage (lower is better).
reiser4 171.28s, 30%CPU (1.0000x time; 1.0x CPU)
reiserfs 302.53s, 16%CPU (1.7663x time; 0.53x CPU)
ext3 319.71s, 11%CPU (1.8666x time; 0.36x CPU)
xfs 429.79s, 13%CPU (2.5093x time; 0.43x CPU)
jfs 470.88s, 6%CPU (2.7492x time 0.20x CPU)
What's interesting:
* ext3's syncs tended to take the longest 10 seconds, except
* JFS took a whopping 38.18s on its final sync
* xfs used more CPU than ext3 but was slower than ext3
* reiser4 had highest throughput and most CPU usage
* jfs had lowest throughput and least CPU usage
* total performance of course depends on how IO or CPU bound your task is
Re:karma for Anonymous Coward (Score:4, Interesting)
reiser4 171.28s @ 30% CPU = 51.384s CPU
reiserfs 302.53s @ 16% CPU = 48.4048s CPU
ext3 319.71s @ 11% CPU = 35.1681s CPU
xfs 429.79s @ 13% CPU = 55.8727s CPU
jfs 470.88s @ 6% CPU = 28.2528s CPU
Re:karma for Anonymous Coward (Score:2)
Many systems, however, do not run many entirely CPU-bound processes. If the CPU would otherwise be idle, it doesn't matter (apart from power consumption in a laptop) whether the usage by the filesystem is 10% or 90%. Only if there are other things wanting to run does it make a difference.
An interesting benchmark woul
Speed is not of the essence (Score:5, Informative)
Also what filesystem would require the lest or no syncing at all? Befs?
In server environements with stripped 15K cheetah SCSI drives, you'd worry more about stability than speed.
Re:Speed is not of the essence (Score:1)
Re:Speed is not of the essence (Score:4, Funny)
With the new and improved Magnetic Forensics Tunnelling Electronic Microscope, used by the FBI
He had a backup
XFS takes so long to sync that by the time it would start to sync, he turned his computer off
Re:Speed is not of the essence (Score:4, Interesting)
Re:Speed is not of the essence (Score:2)
I think if I had stripped drives I'd be more worried about what sort of sicko strips a hard drive, and is he still hiding in the server room?
Re:Speed is not of the essence (Score:2, Interesting)
I'm not convinced. ext3 under 2.4 on SMP can be cripplingly slow entirely for software reasons--lock_kernel() being the biggest culprit.
Having said that, my new big fileserver is going to be ext3 on 2.6 (eventually!); the data volumes being on a 12-way RAID-5 set and the journals on a RAID-1 pair. It seems to perform adequately with dir_index and sparse_super.
The main thing that swings i
Incomplete comparison? (Score:5, Interesting)
From the article:
"reiser4 171.28s, 30%CPU (1.0000x time; 1.0x CPU)
reiserfs 302.53s, 16%CPU (1.7663x time; 0.53x CPU)
What's interesting:
* reiser4 had highest throughput and most CPU usage"
The comparison seems incomplete to me. Reiser4 took about half the time, with twice the CPU usage. The
Total Work Done by the CPU = Percent * Time.
Reiser4 did the work in half the time, but the total work was roughly equal. Actually, ReiserFS was more efficient considering total CPU cycles.
Re:Incomplete comparison? (Score:5, Insightful)
Comparing CPU cycles needed is NOT a fair benckmark, unless your task is CPU _AND_ IO Bound.(if it's not io bound, take whatever fs you have, it doesn't matter.)
The benchmark was right in giving results as TWO parameters : CPU used and time spent. Might be interesting to see how it depends of the drive type or the CPU arch, though)
grandparent insightful (Score:2)
Re:Incomplete comparison? (Score:4, Informative)
I can think of no corresponding pathological case in which CPU load would be a more appropriate predictor than CPU time.
Exactly. That's why CPU load doesn't matter. No, CPU cycles matters for CPU-bound tasks. I think that's pretty self-evident. Wrong. In a compute-bound task, CPU time adds directly to the total execution time of the task, so you should choose the FS with the lower total CPU time.Re:Incomplete comparison? (Score:2)
I don't completely agree. Sure, CPU load doesn't matter in a single-tasking system, but if I'm running a multi-tasking system I don't want it to noticably "hiccup" each and every time some background task has to do some disk I/O. The system should _not_ bog down just because Mozilla is cleaning out its cache -- it should still be responsive.
Obviously, priority levels can have a big effect on this sort of thing -- but in a multitasking environment where you a
Re:Incomplete comparison? (Score:1)
Kerneltrap on new server.. (Score:4, Informative)
Now its in a colo on new (fast) hardware (paid for by users' donations), and upgraded to drupal 4.2 (faster here too).
So slashdot away!
-molo
Blah... This was on lkml... (Score:5, Informative)
Wait until 2.6 is out folks. These numbers are still open for mass fluctuation.
Re:Blah... This was on lkml... (Score:2)
Oracle posted some stats (Score:5, Informative)
Re:Oracle posted some stats (Score:2, Informative)
Re:Oracle posted some stats (Score:1)
Those tests are very outdated.
CPU Usage?! (Score:4, Funny)
I switched from RedHat to Gentoo and KDE stopped crawling. God knows what will happen with ReiserFS4.
Nandz.
Re:CPU Usage?! (Score:1)
Besides, your P3 550 would have a slower disk.
Stupid question (Score:3, Insightful)
Because people use Linux at work too. (Score:2, Informative)
There is more to this world than home users and databases.
Re:Because people use Linux at work too. (Score:1)
If you give everyone what they want, you'll end up with a system that can do everyone, but nothing, at the same time.
Re:Stupid question (Score:2)
Could ReiserFS be used as the custom file system for a database? With it's extensibility and metadata, it's suitable for the basis of at least some databases.
As normal user (somebody who is not constantly copying Mozilla source tries around), why should this matter? I can't remember the last time I thought "boy, this file access was slow, I wish I had a faster file system".
Well... a journaling file system is useful for data integrity, which is useful to
Re:Stupid question (Score:1)
Try streaming a high quality video or two from your drive. An efficient file system will really make it go smoothly, leaving most of the CPU free for the decoder.
Re:Stupid question (Score:3, Informative)
Where you want the efficiency is when you have to deal with a large number of files. For example, I use UFS on FreeBSD. Before I used softupdates, untarring the ports tree severly bogged down the system, because there were tens of thousands of very small files. But after I
One word: Maildir (Score:3, Informative)
Re:Stupid question (Score:2)
Also there are people that deal with huge scanned images (as I have in the past) that are many hundreds of megabytes per image.
Speed is critical.
Improvement by Evolution (Score:2)
So, as long as Linus only allows stable filesystems in the stable kernels, I'm all for file system innovations making their way into the k
quick question (Score:3, Interesting)
Re:quick question (Score:2, Informative)
JFS's figures (Score:1, Informative)
Some XFS performance tweaks (Score:3, Informative)
Since I recently reinstalled my Debian system, I decided to put some effort into implementing my filesystems right. I decided on XFS for various reasons, mainly that it has always been rock solid for me (I've had some problems with ReiserFS causing heavy data corruption -- it's a long time ago and they've undoubtedly improved the system since, but still I prefer XFS since I've never even once had a problem with it, and know nobody who has), and that its good large-file performance is more useful to me than Reiser's kickass small-file performance. Also EAs and ACLs are neat. What sucks about XFS is poor small-file performance and abysmal delete performance.
Anyways, I made a few bonnie++ runs and messed around with some of the many mkfs and mount options of XFS. In the end, my tweaked XFS filesystems beat ext3 (mode=ordered) for delete performance, which was a substantial improvement over a standard XFS mount.
I made a writeup about the whole procedure [everything2.com] at Everything2. Go slashdot the poor bastards. Warning: The language is tailored to the fact that not all E2 users are geek hardcore.