RE: Problem in creating RAID5 MD array with kernel 2.6.15

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

 



On Tuesday April 11, pahilwan.yogesh@xxxxxxxxxxxxxxx wrote:
> Hi Neil,
> 
> I have set --bitmap-chunk=1024 and RAID5 gets created successfully.

Good.

> 
> But why I will have to set --bitmap-chunk for big size devices such as 500GB
> each in my case?
> 
> What is the default value of --bitmap-chunk?

4, which is probably too low.

For every 2048 chunks, md potentially needs to allocate one page.
md also needs to allocate a table to hold all these pages.

At a chunk size of 4K, your 500GB would use 125million chunks.
That's 64000 pages - but these are only allocated on demand, and we can
survive failure.
However the table would need 4 bytes per page, or 250K
Allocating a 250K stable is unlikely to succeed due to memory
fragmentation.

With 1024K chunks you only need 1K, which is easy.

You could safely go down to 256K chunks but I'm not sure it would gain
much.

I have put a note on my mdadm todo list to choose a more sensible
default chunk size which limits the number of chunks to 2million.

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

[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