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: Fri, 24 May 2013 08:40:06 -0400	[thread overview]
Message-ID: <20130524124006.4907.79517@localhost.localdomain> (raw)
In-Reply-To: <519F2659.3050006@itwm.fraunhofer.de>

Quoting Bernd Schubert (2013-05-24 04:35:37)
> Hello Chris,
> 
> On 05/23/2013 10:33 PM, Chris Mason wrote:
> > But I was using 8 drives.  I'll try with 12.
> >>
> > My benchmarks were on flash, so the rmw I was seeing may not have had as
> > big an impact.
> 
> 
> I just further played with it and simply introduced a requeue in 
> raid56_rmw_stripe() if the rbio is 'younger' than 50 jiffies. I can 
> still see reads, but by a factor 10 lower than before. And this is 
> sufficient to bring performance almost to that of direc-io.
> This is certainly no upstream code, I hope I find some time over the 
> weekend to come up with something better.

Interesting.  This probably shows that we need to do a better job of
maintaining a plug across the writepages calls, or that we need to be
much more aggressive in writepages to add more pages once we've started.

> 
> Btw, I also noticed the cache logic copies pages from those rmw-threads. 
> Well, this a numa system and memory bandwith is terribly bad from the 
> remote cpu. These worker threads probably should numa aware and only 
> handle rbios from their own cpu.

Yes, all of the helpers (especially crc and parity) should be made numa aware.

-chris


  reply	other threads:[~2013-05-24 12:40 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
2013-05-24  8:35               ` Bernd Schubert
2013-05-24 12:40                 ` Chris Mason [this message]
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=20130524124006.4907.79517@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