Re: [PATCH v3 00/11] md/raid5: set STRIPE_SIZE as a configurable value
From: Yufen Yu <hidden>
Date: 2020-06-04 13:17:21
From: Yufen Yu <hidden>
Date: 2020-06-04 13:17:21
On 2020/6/2 14:59, Song Liu wrote:
quoted
I do think the flexibility is not enough, if someone set stripe size to 64KB by any chance, people could complain the performance of raid5 really sucks if the io is not big. And it is not realistic to let people rebuild the module in case the io size is changed, so it would be more helpful if the stripe size can be changed dynamically without recompile code.Agreed that it is not ideal to recompile the kernel/module to change stripe size. It is also possible that multiple arrays in one system have different optimal stripe sizes. I guess it shouldn't be too complicated to make this configurable per array?
Yeah. Thanks a lot for suggestion. I admit that the current implementation is really not good. To make it more flexible and provide each stripe_size for raid arrays, I plan to move stripe_size into r5conf and make it dynamically changeable by sysfs interface. Thanks, Yufen