On Tue, 15 Feb 2011 15:47:37 -0500 Joe Landman <joe.landman@xxxxxxxxx> wrote: > On 02/15/2011 03:37 PM, NeilBrown wrote: > > On Tue, 15 Feb 2011 10:16:15 -0500 Joe Landman<joe.landman@xxxxxxxxx> wrote: > > > >> As a tie in to the Linux RAID list, we use md raid for our OS drives > >> (SSD pairs), and other utility functions within the unit, as well as > >> striping over our hardware accelerated RAIDs. We would like to use > >> non-power of two chunk sizes, but haven't delved into the code as much > >> as we'd like to see if we can make this work. > >> > > > > md/raid0 (striping) currently supports non-power-of-two chunk sizes, though > > it is a relatively recent addition. > > (raid4/5/6 doesn't). > > Cool! We need to start playing with this ... > > Which kernels have the support? It was enabled by commit fbb704efb784e2c8418e34dc3013af76bdd58101 so $ git name-rev fbb704efb784e2c8418e34dc3013af76bdd58101 fbb704efb784e2c8418e34dc3013af76bdd58101 tags/v2.6.31-rc1~143^2~18 2.6.31 has this support. However I note that mdadm still checks that the chunk size is a power of two: if (chunk < 8 || ((chunk-1)&chunk)) { I should fix that... NeilBrown > > -- > Joe > -- > 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 -- 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