linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: Steve Brown <sbrown25@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: ext4 benchmark questions
Date: Thu, 22 Apr 2010 16:52:10 -0500	[thread overview]
Message-ID: <4BD0C50A.5050508@redhat.com> (raw)
In-Reply-To: <x2m1f4ef0971004221438n76bbc32bu6835dfe17dd702d8@mail.gmail.com>

Steve Brown wrote:
...

> I'll start with the craziest one: noatime.  Everything I have read
> says that the noatime option should increase both read and write
> performance.  My results are finding that write speeds are comparable
> with or without this option, but read speeds are significantly faster
> *without* the noatime option.  For example, a 16GB file reads about
> 210MB/s with noatime but reads closer to 250MB/s without the noatime
> option.

the kernel uses "relatime" now by default, which gives you most of the
benefit already.

> Next is the write barrier.  I'm an in a fully battery-backed
> environment, so I'm not worried about disabling it.  From my testing,
> setting barrier=0 will improve write performance on large files
> (>10GB), but hurts performance on smaller files (<10GB).  Read
> performance is effected similarly.  Is this to be expected with files
> of this size?

not expected by me; barriers == drive write cache flushes, which I
would never expect to speed things up...

> Next is the data option.  I am seeing a significant increase in read
> performance when using data=ordered vs data=writeback.  Reading is as
> much as 20% faster when using data=ordered.  The difference in write
> performance is almost none with this option.

data=writeback is not safe for data integrity; unless you can handle
scrambled files post-crash/powerloss, don't use it.

> Finally is the commit option.  I did my testing mounting with commit=5
> and commit=90.  While my read performance increased with commit=90, my
> write performance improved by as much as 30% or more with commit=5.

not sure offhand what to make of decreased write performance with a longer
commit time...

-Eric

  reply	other threads:[~2010-04-22 21:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-22 21:38 ext4 benchmark questions Steve Brown
2010-04-22 21:52 ` Eric Sandeen [this message]
2010-04-22 22:11   ` Steve Brown
2010-04-22 22:20     ` Eric Sandeen
2010-04-23 14:42       ` Ric Wheeler
2010-04-23 15:38         ` Steve Brown
2010-04-23 15:45           ` Ric Wheeler
2010-04-23 15:49             ` Steve Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BD0C50A.5050508@redhat.com \
    --to=sandeen@redhat.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sbrown25@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).