On Tue, April 21, 2009 11:05 am, Johannes Segitz wrote: > On Tue, Apr 21, 2009 at 2:52 AM, John Robinson > <john.robinson@xxxxxxxxxxxxxxxx> wrote: >> There's no redundancy but it's still the RAID-5 4-disc layout with 3 >> data >> and 1 parity, the parity on a different disc in each stripe. In your >> case >> with a missing disc, for 3 stripes in 4 you have 2 data and 1 parity. Of >> course the parity is having to be calculated when you're writing, and >> whatever would be written to your missing disc is being discarded. > > you're right, i didn't think of that. But calculating an xor isn't really > a big deal (especially with the aes on top of it) so i still can't see why > it's so slow Large sequential writes to a degraded RAID5 will be the same speed as to a non-degraded RAID5. Smaller random write can still be slower as the amount of pre-reading can increase. Reads from a degraded raid5 will be slower not because of the XOR, but because of needing to read all that extra data to feed in to the XOR. Have you done any testing without the crypto layer to see what effect that has? Can I suggest: for d in /dev/sd[gjk]1 /dev/md6 /dev/mapper/data bigfile do dd if=$d of=/dev/null bs=1M count=100 done and report the times. NeilBrown -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html