linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* write barriers on raid0 and raid10
       [not found] <S1751539Ab0FHSI6/20100608180858Z+3813@vger.kernel.org>
@ 2010-06-08 18:23 ` Iordan Iordanov
  2010-06-16 15:37   ` Bill Davidsen
  2010-06-16 21:21   ` Neil Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Iordan Iordanov @ 2010-06-08 18:23 UTC (permalink / raw)
  To: linux-raid

Hi,

We are designing a rather involved file server with an ext3 formatted 
stripe (raid0) sitting on top of raid10 devices. Each raid10 device sits 
on top of 3 iscsi targets, and has layout n3 (so it is effectively a 3 
way mirror). We chose raid10 over raid1 due to an apparent read 
performance benefit of raid10.

We are trying to decide whether to upgrade to a kernel newer than 
2.6.34, where write barriers are ostensibly supported by all possible 
raid types, because we are worried about ext3 corruption with no write 
barrier support.

However, we are also worried about whether write barriers really "make 
sense" in a multi-disk environment and are wondering whether they will 
actually make a difference in our setup. For argument's sake, let's 
assume that our drives honor write cache flushes.

Can somebody shed some light on how write barriers are implemented in 
raid0 and raid10? Also, any critical comments on the validity of our 
setup and/or assumptions is also welcome.

Many thanks!
Iordan Iordanov

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: write barriers on raid0 and raid10
  2010-06-08 18:23 ` write barriers on raid0 and raid10 Iordan Iordanov
@ 2010-06-16 15:37   ` Bill Davidsen
  2010-06-16 21:21   ` Neil Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Bill Davidsen @ 2010-06-16 15:37 UTC (permalink / raw)
  To: Iordan Iordanov; +Cc: linux-raid

Iordan Iordanov wrote:
> Hi,
>
> We are designing a rather involved file server with an ext3 formatted 
> stripe (raid0) sitting on top of raid10 devices. Each raid10 device 
> sits on top of 3 iscsi targets, and has layout n3 (so it is 
> effectively a 3 way mirror). We chose raid10 over raid1 due to an 
> apparent read performance benefit of raid10.
>
> We are trying to decide whether to upgrade to a kernel newer than 
> 2.6.34, where write barriers are ostensibly supported by all possible 
> raid types, because we are worried about ext3 corruption with no write 
> barrier support.
>
> However, we are also worried about whether write barriers really "make 
> sense" in a multi-disk environment and are wondering whether they will 
> actually make a difference in our setup. For argument's sake, let's 
> assume that our drives honor write cache flushes.
>
> Can somebody shed some light on how write barriers are implemented in 
> raid0 and raid10? Also, any critical comments on the validity of our 
> setup and/or assumptions is also welcome.
>
I'm sorry not to see an answer here, I'm interested as well.

-- 
Bill Davidsen <davidsen@tmr.com>
  "We can't solve today's problems by using the same thinking we
   used in creating them." - Einstein


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: write barriers on raid0 and raid10
  2010-06-08 18:23 ` write barriers on raid0 and raid10 Iordan Iordanov
  2010-06-16 15:37   ` Bill Davidsen
@ 2010-06-16 21:21   ` Neil Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Brown @ 2010-06-16 21:21 UTC (permalink / raw)
  To: Iordan Iordanov; +Cc: linux-raid

On Tue, 08 Jun 2010 14:23:04 -0400
Iordan Iordanov <iordan@cdf.toronto.edu> wrote:

> Hi,
> 
> We are designing a rather involved file server with an ext3 formatted 
> stripe (raid0) sitting on top of raid10 devices. Each raid10 device sits 
> on top of 3 iscsi targets, and has layout n3 (so it is effectively a 3 
> way mirror). We chose raid10 over raid1 due to an apparent read 
> performance benefit of raid10.
> 
> We are trying to decide whether to upgrade to a kernel newer than 
> 2.6.34, where write barriers are ostensibly supported by all possible 
> raid types, because we are worried about ext3 corruption with no write 
> barrier support.
> 
> However, we are also worried about whether write barriers really "make 
> sense" in a multi-disk environment and are wondering whether they will 
> actually make a difference in our setup. For argument's sake, let's 
> assume that our drives honor write cache flushes.
> 
> Can somebody shed some light on how write barriers are implemented in 
> raid0 and raid10? Also, any critical comments on the validity of our 
> setup and/or assumptions is also welcome.

Write barriers are handled as:
   - drain all outstanding requests and block new requests
   - send a zero-length barrier to each component device
   - send the data in the barrier request (if it wasn't zero length)
   - send anther zero-length barrier if there was data
   - allow new requests through.

So you may well notice a slow-down i you enable barriers, but theoretically
your data might be a bit safer.   But that is what barriers have always meant
for ext3, which is why they aren't enabled by default.

NeilBrown

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-16 21:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <S1751539Ab0FHSI6/20100608180858Z+3813@vger.kernel.org>
2010-06-08 18:23 ` write barriers on raid0 and raid10 Iordan Iordanov
2010-06-16 15:37   ` Bill Davidsen
2010-06-16 21:21   ` Neil Brown

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).