Chunk size for SSD
Hi all,
I know the topic might have already been discussed,
but some points are still unclear to me.
Assuming to build a RAID-10 with two SSD, someone
mentioned that the proper chunk size should be
the erase block size, usually 128K.
Are these 128K a guessed value or there is a way
to know the erase block size from the device itself?
Second question, assuming metadata 1.1 is used, do
the chunks start with a chunk-size aligment?
I mean, in a RAID-10, with 1.1 metadata, does the
effective storage area start at a multiple of 128K,
if a chunk of 128K is used?
BTW, what if there is a partition under the RAID,
this will offset (how much?) the start of the RAID.
In general, would it be possible to specify an
alligment for the effective storage area of the RAID?
Thanks a lot in advance,
bye,
--
piergiorgio
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Chunk size for SSD
On Tue, 2 Mar 2010 20:08:43 +0100
Piergiorgio Sartor <piergiorgio.sartor [at] nexgo.de> wrote:
> Hi all,
>
> I know the topic might have already been discussed,
> but some points are still unclear to me.
>
> Assuming to build a RAID-10 with two SSD, someone
> mentioned that the proper chunk size should be
> the erase block size, usually 128K.
>
> Are these 128K a guessed value or there is a way
> to know the erase block size from the device itself?
>
> Second question, assuming metadata 1.1 is used, do
> the chunks start with a chunk-size aligment?
> I mean, in a RAID-10, with 1.1 metadata, does the
> effective storage area start at a multiple of 128K,
> if a chunk of 128K is used?
No - with 1.1 and 1.2 metadata there are no guarantees about alignment of the
start of the data section. That is something that I plan to fix
in 3.1.2.
>
> BTW, what if there is a partition under the RAID,
> this will offset (how much?) the start of the RAID.
It depends on the tool you use the create the partition. Some enforce an
alignment on cylinders, others give you complete control.
I think 'sfdisk' is one of the most flexible.
NeilBrown
>
> In general, would it be possible to specify an
> alligment for the effective storage area of the RAID?
>
> Thanks a lot in advance,
>
> bye,
>
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html