Re: 2.4 and cryptofs on raid1 - what will be cached and how many times

From: Neil Brown (neilb@cse.unsw.edu.au)
Date: Mon Mar 03 2003 - 16:50:46 EST


On Monday March 3, hvv@hippo.ru wrote:
> On Sun, Mar 02, 2003 at 02:56:34PM +0400, Vlad Harchev wrote:
> > Hello,
> >
> > Could you please answer the following question:
> >
> > Suppose we have a crypto filesystem on a raid1 array of 2 devices. What will
> > the kernel cache of fileystem data contain - encrypted data or not? Will is
> > be 2 copies of the same data in the cache or not?
>
> Sorry for confusion - of course I meant linux software raid here..

With raid1 has no effect on caching. Exactly the same data is cached
with raid1 as with as plain SCSI or IDE drive.

Raid5 is different. It has an extra cache of some of the data that
has been written-to or read-from the devices.

>
> > Is there any way to force kernel to cache the same file data only once, and
> > keep it unencrypted (in cache)?
> >

I suspect that depends of the details of the implementation of you
"crypto filesystem".

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:23 EST