Re: Performance Testing MD-RAID10 with 1 failed drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Thu, Oct 20, 2022 at 12:13:19PM +0530, Umang Agarwalla wrote:
> But what I am trying to understand is, how to benchmark the
> performance hit in such a condition.

Perhaps you could use dm-dust to make an unreliable block device
from a real device?

    https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/dm-dust.html

1. Create dust device

2. Create an array that includes the dust device

3. Do some work on it while it's in "bypass" mode and benchmark this
   to account for overhead of dm-dust

4. Add some bad sectors, maybe whole device

5. Enable "fail read on bad block" mode

6. Do more work and watch device get kicked out of RAID

7. See if benchmark shows any performance change beyond what you'd
   expect for reduced number of devices

If you have real hardware disks though, can you not just:

# echo offline > /sys/block/$DISK/device/state
# echo 1 > /sys/block/$DISK/device/delete

to power it off mid-operation? (Might need to reboot to get it back after that)

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux