Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Chris Mason <clmason@fusionio.com>
To: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: raid6: rmw writes all the time?
Date: Thu, 23 May 2013 16:33:37 -0400	[thread overview]
Message-ID: <20130523203337.4907.25234@localhost.localdomain> (raw)
In-Reply-To: <519E71E0.2060301@itwm.fraunhofer.de>

Quoting Bernd Schubert (2013-05-23 15:45:36)
> On 05/23/2013 09:37 PM, Chris Mason wrote:
> > Quoting Bernd Schubert (2013-05-23 15:33:24)
> >> Btw, any chance to generally use chunksize/chunklen instead of stripe,
> >> such as the md layer does it? IMHO it is less confusing to use
> >> n-datadisks * chunksize = stripesize.
> > 
> > Definitely, it will become much more configurable.
> 
> Actually I meant in the code. I'm going to write a patch during the weekend.

The btrfs raid code refers to stripes because a chunk is a very large
(~1GB) slice of a set of drives that we allocate into raid levels. 

We have full stripes and device stripes, I'm afraid there are so many
different terms in other projects that it is hard to pick something clear.

> 
> > 
> >>
> >>>
> >>> Using buffered writes makes it much more likely the VM will break up the
> >>> IOs as they go down.  The btrfs writepages code does try to do full
> >>> stripe IO, and it also caches stripes as the IO goes down.  But for
> >>> buffered IO it is surprisingly hard to get a 100% hit rate on full
> >>> stripe IO at larger stripe sizes.
> >>
> >> I have not found that part yet, somehow it looks like as if writepages
> >> would submit single pages to another layer. I'm going to look into it
> >> again during the weekend. I can reserve the hardware that long, but I
> >> think we first need to fix striped writes in general.
> > 
> > The VM calls writepages and btrfs tries to suck down all the pages that
> > belong to the same extent.  And we try to allocate the extents on
> > boundaries.  There is definitely some bleeding into rmw when I do it
> > here, but overall it does well.
> > 
> > But I was using 8 drives.  I'll try with 12.
> 
> Hmm, I already tried with 10 drives (8+2), doesn't make a difference for
> RMW.

My benchmarks were on flash, so the rmw I was seeing may not have had as
big an impact.

-chris


  reply	other threads:[~2013-05-23 20:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23 12:55 raid6: rmw writes all the time? Bernd Schubert
2013-05-23 13:11 ` Chris Mason
2013-05-23 13:22   ` Bernd Schubert
2013-05-23 13:34     ` Chris Mason
2013-05-23 19:33       ` Bernd Schubert
2013-05-23 19:37         ` Chris Mason
2013-05-23 19:45           ` Bernd Schubert
2013-05-23 20:33             ` Chris Mason [this message]
2013-05-24  8:35               ` Bernd Schubert
2013-05-24 12:40                 ` Chris Mason
2013-05-23 13:41     ` Bob Marley
2013-05-23 16:30       ` Bernd Schubert

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=20130523203337.4907.25234@localhost.localdomain \
    --to=clmason@fusionio.com \
    --cc=bernd.schubert@itwm.fraunhofer.de \
    --cc=linux-btrfs@vger.kernel.org \
    /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