linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Optimal value for bitmap-chunk option
@ 2013-06-18 12:52 Роман Алексеев
  2013-06-19  4:38 ` Roman Mamedov
  0 siblings, 1 reply; 2+ messages in thread
From: Роман Алексеев @ 2013-06-18 12:52 UTC (permalink / raw)
  To: linux-raid

Hello,

I want to speed up rebuilding process of the raid to do that I'm going
to apply the command:

mdadm --grow --bitmap=internal --bitmap-chunk=NNNN /dev/mdX

But I don't know how to calculate optimal value of bitmap-chunk option.
How can I do that?

Any help would be greatly appreciated.

--
Roman

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Optimal value for bitmap-chunk option
  2013-06-18 12:52 Optimal value for bitmap-chunk option Роман Алексеев
@ 2013-06-19  4:38 ` Roman Mamedov
  0 siblings, 0 replies; 2+ messages in thread
From: Roman Mamedov @ 2013-06-19  4:38 UTC (permalink / raw)
  To: Роман Алексеев
  Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1159 bytes --]

On Tue, 18 Jun 2013 16:52:09 +0400
Роман Алексеев  <r.alekseev@qwarta.ru> wrote:

> Hello,
> 
> I want to speed up rebuilding process of the raid to do that I'm going
> to apply the command:
> 
> mdadm --grow --bitmap=internal --bitmap-chunk=NNNN /dev/mdX
> 
> But I don't know how to calculate optimal value of bitmap-chunk option.
> How can I do that?

It's just the minimum granularity of pieces that get rebuilt after unclean
shutdowns. E.g. if your array decides it's "dirty" in 5 different areas, with
a 16MB chunk the rebuild will process 5*16MB, but with a 128MB it will rebuild
5*128MB. On modern systems the difference in time required to do the rebuild
between these two will be negligible. But having a larger size helps
noticeably in everyday operation (makes writes faster). So there is nothing to
"calculate" really, just use a reasonably large size like 128 or 256 MB.

https://raid.wiki.kernel.org/index.php/Write-intent_bitmap
http://techblog.tgharold.com/2013/01/mdadm-using-bitmaps-to-speed-up-rebuilds.html
http://blog.liw.fi/posts/write-intent-bitmaps/ (the 1st comment)

-- 
With respect,
Roman

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-19  4:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-18 12:52 Optimal value for bitmap-chunk option Роман Алексеев
2013-06-19  4:38 ` Roman Mamedov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).