linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stan Hoeppner <stan@hardwarefreak.com>
To: Peter Grandi <pg@lxra2.to.sabi.co.UK>
Cc: Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: XFS on top RAID10 with odd drives count and 2 near copies
Date: Fri, 17 Feb 2012 16:12:34 -0600	[thread overview]
Message-ID: <4F3ED0D2.2000002@hardwarefreak.com> (raw)
In-Reply-To: <20286.42115.949782.471398@tree.ty.sabi.co.UK>

On 2/17/2012 1:03 PM, Peter Grandi wrote:

> As I have repeated many many many times to you in past XFS
> discussions, and please take note, stripe alignment matters ONLY
> AND SOLELY IF READ-MODIFY-WRITE is involved, and RADI10 never
> requires read-modify-write.

A wise Jedi once contradicted himself when he advised me to "never speak
in absolute terms".  A wiser Jedi would have said "don't speak in
absolute terms".

[...]
> Disclaimer: using stripe alignment even when it is not required
> may help a bit with scheduling, it being slightly akin to a
> larger block size, but not quite, but that is a secondary
> effect.

And the inevitable future contradiction is the reason.  The wisest of
Jedi once told me "do not leave performance on the table".  Whether you
consider this "scheduling" effect, or others, of write alignment on non
RMW devices to be secondary, it does have positive performance
implications, and should thus not be left on the table.

More importantly, and I could be mistaken, but IIRC, even absent an
underlying RMW block device, XFS journal writes benefit from alignment
due to a resulting lower ratio of write barriers issued to blocks
written, due to the larger stripe width write out.  And as we all know
(or should), write barriers can murder performance, especially for
metadata heavy workloads, as each barrier operation typically flushes
all the drives' caches.  Most mdraid users probably don't run BBWC RAID
cards in JBOD mode to avoid barriers, though I know of a few who do.  So
XFS write alignment on mdraid should be an issue for most everyone using
XFS, regardless of whether their array is parity RMW or not.

Both unaligned RMW and write barriers are performance killers.  Which
one has more blood on its hands I can't say.  I've never done such
testing nor come across a related paper.

-- 
Stan

  reply	other threads:[~2012-02-17 22:12 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 15:17 XFS on top RAID10 with odd drives count and 2 near copies CoolCold
2012-02-11  4:05 ` Stan Hoeppner
2012-02-11 14:32   ` David Brown
2012-02-12 20:16   ` CoolCold
2012-02-13  8:50     ` David Brown
2012-02-13  9:46       ` CoolCold
2012-02-13 11:19         ` David Brown
2012-02-13 13:46       ` Stan Hoeppner
2012-02-13  8:54     ` David Brown
2012-02-13  9:49       ` CoolCold
2012-02-13 12:09     ` Stan Hoeppner
2012-02-13 12:42       ` David Brown
2012-02-13 14:46         ` Stan Hoeppner
2012-02-13 21:40       ` CoolCold
2012-02-13 23:02         ` keld
2012-02-14  3:49           ` Stan Hoeppner
2012-02-14  8:58             ` David Brown
2012-02-14 11:38             ` keld
2012-02-14 23:27               ` Stan Hoeppner
2012-02-15  8:30                 ` Robin Hill
2012-02-15 13:30                   ` Stan Hoeppner
2012-02-15 14:03                     ` Robin Hill
2012-02-15 15:40                     ` David Brown
2012-02-17 13:16                       ` Stan Hoeppner
2012-02-17 14:57                         ` David Brown
2012-02-17 19:30                           ` Peter Grandi
2012-02-18 13:59                             ` David Brown
2012-02-19 14:46                           ` Peter Grandi
2012-02-17 19:03                         ` Peter Grandi
2012-02-17 22:12                           ` Stan Hoeppner [this message]
2012-02-18 17:09                           ` Peter Grandi
2012-02-15  9:24                 ` keld
2012-02-15 12:10                 ` David Brown
2012-02-15 13:08                   ` keld
2012-02-17 18:44                 ` Peter Grandi
2012-02-18 17:39                   ` Peter Grandi
2012-02-14  7:31           ` CoolCold
2012-02-14  9:05             ` David Brown
2012-02-14 11:10               ` Stan Hoeppner
2012-02-14  2:49         ` Stan Hoeppner

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=4F3ED0D2.2000002@hardwarefreak.com \
    --to=stan@hardwarefreak.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=pg@lxra2.to.sabi.co.UK \
    /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).