Re: mdadm 3.1.x and bitmap chunk

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

 



Hi,

> This depends somewhat on what you mean by "minimum size" to the bitmap
> chunk.  The bitmap chunk size can never be smaller than the minimum size
> on the device, so 512bytes for most drives, 4k for newer drives.  But

as far as I know, there is a limited space for
the bitmap, hence if the chunk is too small,
the bitmap will not fit in that space.

> such a chunk size would be horrible for performance as it would make
> every single write synchronous on the bitmap update.  However, the
> minimum size can also be limited by the available space for the bitmap
> when using an internal bitmap.  So, you can only make the size as small
> as it will go and the bitmap still fit between the end of the
> {array,superblock} and the start of the {superblock,array}.
> 
> However, in general, a bitmap that's small enough that you can sync the
> dirty section in a second or two should be good enough.  With modern
> disks, they can sync 32MB or 64MB in only a second or two, hence the
> default size.  Anything less than that is really a case of diminishing
> returns.  You are sacrificing write speed on each and every write to the
> array in exchange for a *possible* speed up in the event of a crash.
> Not a very good trade off IMO.

Those are my usual USB HDDs in RAID-6 configuration.

Since the setup might be quite fragile, since the
write performances are anyway limited by the USB
and not by the seek time and writinig is anywau slow,
I would like to keep the bitmap resync fast.

That is, if a USB cable fails, I can just replace it
and resync using bitmap, this will be quite fast, if
the bitmap chunk is not too big.

64MB is quite a huge amount of data for USB, so it
will not help to keep the bitmap resync fast.
Which means the chunk should be small, one target
could be the smallest possible, given the available
space in the superblock.

Thanks,

bye,

-- 

piergiorgio
--
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


[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