Re: [RFC PATCH] mdadm: Add parameter for bitmap chunk threshold

From: Mariusz Tkaczyk
Date: Wed Oct 12 2022 - 03:17:15 EST


On Thu, 6 Oct 2022 16:08:38 -0600
Jonathan Derrick <jonathan.derrick@xxxxxxxxx> wrote:

> Adds parameter to mdadm create, grow, and build similar to the delay
> parameter, that specifies a chunk threshold. This value will instruct
> the kernel, in-tandem with the delay timer, to flush the bitmap after
> every N chunks have been dirtied. This can be used in-addition to the
> delay parameter and complements it.
>
> This requires an addition to the bitmap superblock and version increment.

Hello Jonathan,
To provide that to parameter to bitmap we are updating bitmap superblock, right?
Why we need to define it in config then? I someone wants to change that
should use --grow. Am I correct?

The "threshold" is not a context property, it should be added to struct shape.
Ideally, we can extract bitmap properties to separate struct and pass it around.

And I would like to have IMSM support if that is possible.

Thanks,
Mariusz