* Chunk size for SSD
@ 2010-03-02 19:08 Piergiorgio Sartor
2010-03-02 20:22 ` Neil Brown
0 siblings, 1 reply; 2+ messages in thread
From: Piergiorgio Sartor @ 2010-03-02 19:08 UTC (permalink / raw)
To: linux-raid
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Chunk size for SSD
2010-03-02 19:08 Chunk size for SSD Piergiorgio Sartor
@ 2010-03-02 20:22 ` Neil Brown
0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2010-03-02 20:22 UTC (permalink / raw)
To: Piergiorgio Sartor; +Cc: linux-raid
On Tue, 2 Mar 2010 20:08:43 +0100
Piergiorgio Sartor <piergiorgio.sartor@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,
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-02 20:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02 19:08 Chunk size for SSD Piergiorgio Sartor
2010-03-02 20:22 ` Neil Brown
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).