Re: Performance of ext4

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Holger Kiehl <Holger.Kiehl@...>
Cc: <linux-ext4@...>, linux-kernel <linux-kernel@...>
Date: Wednesday, June 11, 2008 - 9:54 am

On Wed, Jun 11, 2008 at 08:02:32AM +0000, Holger Kiehl wrote:

Hi Holger,

You didn't say exactly which version of the kernel/ext4 you were
testing, but a recent change which we made to ext4, but which hasn't
been made to ext3 yet is that barrier support has been enabled to
improve filesystem safety; unfortunately this does imply with it a
slight performance slowdown, which would be more pronounced on
benchmarks with small filesystems.  So when you mount the filesystem
for ext3 and ext4 for benchmarking purposes, you should consistently
use a mount options of barrier=1 or barrier=0.  With ext4, you can use
the mount option "barrier=1,journal_async_commit" which should
ameliorate part of the performance decrease.  The reason why it is not
yet the default is it requires support from e2fsprogs that has not
been released except in development git branches; but as long as you
don't require running e2fsck on uncleanly shutdown systems (probably
not necessary if you are just benchmarking), you can use
journal_async_commit in good health.

Another change which might help out the bonnie benchmark, but which
again requires the latest version of e2fsprogs is to create the
filesystem with flex_bg filesystem feature.  In fact, for
convenience's sake, if you are using the latest development version of
e2fsprogs, you can just use the command "mke2fs -t ext4dev /dev/hdXX"
and it will set up the filesystem with the correct filesystem features
for ext4.  (The "ext4dev" sets the test_fs feature, and is basically
there so it's clear we are still trying to finish up ext4 support.)


As Aneesh has mentioned, there were some bugs in version of ext4's
delalloc caused by insufficient testing of the ext4 patch queue some
changes to our locking strategy went in.  That's been fixed in the
latest patch queue, and we're in the process of cleaning up delalloc
before merging it into the mainline kernel.  (When you tested ext4 two
years ago, none of this was yet in mainline, so it's not a matter of
things delalloc "disappearing", but rather that we've been slow
getting to the point where it was ready for merging.

	       	     	      	  - Ted
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Performance of ext4, Holger Kiehl, (Wed Jun 11, 4:02 am)
Re: Performance of ext4, Theodore Tso, (Wed Jun 11, 9:54 am)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 11, 4:21 pm)
Re: Performance of ext4, Theodore Tso, (Wed Jun 11, 9:35 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Wed Jun 11, 6:59 am)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 11, 3:58 pm)
Re: Performance of ext4 , Nick Dokos, (Wed Jun 11, 4:17 pm)
Re: Performance of ext4 , Holger Kiehl, (Thu Jun 12, 5:02 am)
Re: Performance of ext4 , , (Thu Jun 12, 6:58 am)
Re: Performance of ext4 , Holger Kiehl, (Thu Jun 12, 8:00 am)
Re: Performance of ext4, Theodore Tso, (Thu Jun 12, 9:19 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jun 12, 10:07 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Thu Jun 12, 2:06 pm)
Re: Performance of ext4, Holger Kiehl, (Thu Jun 12, 3:50 pm)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 13, 4:05 am)
Re: Performance of ext4, Jan Kara, (Mon Jun 16, 1:54 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 16, 2:13 pm)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 17, 7:42 am)
Re: Performance of ext4, Theodore Tso, (Thu Jun 19, 11:56 am)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 20, 4:09 am)
Re: Performance of ext4, Holger Kiehl, (Sat Jun 21, 11:02 am)
Re: Performance of ext4, Eric Sandeen, (Thu Jun 19, 12:41 pm)
Re: Performance of ext4, Theodore Tso, (Thu Jun 19, 1:42 pm)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 20, 4:32 am)
Re: Performance of ext4, Theodore Tso, (Fri Jun 20, 4:59 am)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 20, 5:21 am)
Re: Performance of ext4, Andreas Dilger, (Mon Jun 23, 4:55 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 1:45 pm)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 24, 8:57 am)
Re: Performance of ext4, Mingming, (Mon Jun 23, 8:31 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 11:07 pm)
Re: Performance of ext4, Mingming, (Tue Jun 24, 1:58 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 11:33 pm)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 24, 5:12 pm)
Re: Performance of ext4, Mingming, (Tue Jun 24, 6:58 pm)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 25, 5:09 am)
Re: Performance of ext4, Mingming, (Wed Jun 25, 8:46 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Fri Jun 27, 5:14 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Fri Jun 27, 5:49 am)
Re: Performance of ext4, Jan Kara, (Fri Jun 27, 6:00 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Fri Jun 27, 1:35 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 11:28 pm)
Re: Performance of ext4, Mingming, (Thu Jun 19, 3:51 pm)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 18, 1:58 am)
Re: Performance of ext4, Theodore Tso, (Thu Jun 19, 7:09 am)
Re: Performance of ext4, Holger Kiehl, (Mon Jul 7, 9:13 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jul 10, 4:11 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jun 19, 11:04 am)
Re: Performance of ext4, Andreas Dilger, (Thu Jun 19, 2:58 am)