linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Write cache
@ 2010-12-02 15:58 mark delfman
  2010-12-03  1:27 ` Neil Brown
  0 siblings, 1 reply; 3+ messages in thread
From: mark delfman @ 2010-12-02 15:58 UTC (permalink / raw)
  To: Linux RAID Mailing List

Hi

Is there any way to use an MD RAID in write through mode?  I
appreciate that there is a performance impact but this is important
from a security prospective....

The likelihood is that I would use RAID0 (I know this sounds like a
contradiction to the above, but the ‘drives’ are probably hardware
RAIDs).  But may use standard RAID6.

I cannot see any way to disable write cache in MD, but I am hopefully
I am simply missing something obvious.

I appreciate any feedback....

Thanks, Mark
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Write cache
  2010-12-02 15:58 Write cache mark delfman
@ 2010-12-03  1:27 ` Neil Brown
  2010-12-03 13:09   ` mark delfman
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Brown @ 2010-12-03  1:27 UTC (permalink / raw)
  To: mark delfman; +Cc: Linux RAID Mailing List

On Thu, 2 Dec 2010 15:58:51 +0000 mark delfman <markdelfman@googlemail.com>
wrote:

> Hi
> 
> Is there any way to use an MD RAID in write through mode?  I
> appreciate that there is a performance impact but this is important
> from a security prospective....

MD RAID does work in write-through mode.  I have occasionally thought about
adding a write-back mode which would make sense now that we have a sensible
flushing infrastructure in Linux.  But I haven't implemented it.

> 
> The likelihood is that I would use RAID0 (I know this sounds like a
> contradiction to the above, but the ‘drives’ are probably hardware
> RAIDs).  But may use standard RAID6.

RAID0 doesn't do any caching at all.

> 
> I cannot see any way to disable write cache in MD, but I am hopefully
> I am simply missing something obvious.

Why do you think these is a write-behind cache in MD ??

NeilBrown



> 
> I appreciate any feedback....
> 
> Thanks, Mark
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Write cache
  2010-12-03  1:27 ` Neil Brown
@ 2010-12-03 13:09   ` mark delfman
  0 siblings, 0 replies; 3+ messages in thread
From: mark delfman @ 2010-12-03 13:09 UTC (permalink / raw)
  To: Neil Brown; +Cc: Linux RAID Mailing List

Hi Neil,

Actually I made a silly presumption simply because MD is so fast
compared to most of the hardware raids I am testing – so I simple
presumed it was using write cache without really investigating it well
enough

Thank you for the feedback!



On Fri, Dec 3, 2010 at 1:27 AM, Neil Brown <neilb@suse.de> wrote:
> On Thu, 2 Dec 2010 15:58:51 +0000 mark delfman <markdelfman@googlemail.com>
> wrote:
>
>> Hi
>>
>> Is there any way to use an MD RAID in write through mode?  I
>> appreciate that there is a performance impact but this is important
>> from a security prospective....
>
> MD RAID does work in write-through mode.  I have occasionally thought about
> adding a write-back mode which would make sense now that we have a sensible
> flushing infrastructure in Linux.  But I haven't implemented it.
>
>>
>> The likelihood is that I would use RAID0 (I know this sounds like a
>> contradiction to the above, but the ‘drives’ are probably hardware
>> RAIDs).  But may use standard RAID6.
>
> RAID0 doesn't do any caching at all.
>
>>
>> I cannot see any way to disable write cache in MD, but I am hopefully
>> I am simply missing something obvious.
>
> Why do you think these is a write-behind cache in MD ??
>
> NeilBrown
>
>
>
>>
>> I appreciate any feedback....
>>
>> Thanks, Mark
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2010-12-03 13:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 15:58 Write cache mark delfman
2010-12-03  1:27 ` Neil Brown
2010-12-03 13:09   ` mark delfman

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