Read algorithm-raid1/raid10
Read algorithm-raid1/raid10
am 18.01.2011 14:51:49 von Roberto Spadim
hi guys, could we implement a load_balance read algorithm for SSD?
nearest head isn't as fast as round robin for ssd.
i'm talking about raid1 (raid10 too)
what's my problem?
as i can see, raid0 is faster than raid1
for example:
two disks raid0 is faster than
two disks raid1.
why?
nearest head
instead of a balanced read algorithm (like raid0) the nearest head
make raid1 use only one disk for searchs where we could use two disks
(like raid0)
could we implement a round robin for ssd? and make raid1 as fast as
raid0 for ssd?
i didn't tested the raid10 algorithm yet.
thanks a lot.
--
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Read algorithm-raid1/raid10
am 18.01.2011 15:00:49 von Roberto Spadim
like this patch (a long time ago)
http://www.spinics.net/lists/raid/msg30003.html
2011/1/18 Roberto Spadim :
> hi guys, could we implement a load_balance read algorithm for SSD?
> nearest head isn't as fast as round robin for ssd.
> i'm talking about raid1 (raid10 too)
> what's my problem?
> as i can see, raid0 is faster than raid1
> for example:
> two disks raid0 is faster than
> two disks raid1.
>
> why?
> nearest head
> instead of a balanced read algorithm (like raid0) the nearest head
> make raid1 use only one disk for searchs where we could use two disks
> (like raid0)
>
> could we implement a round robin for ssd? and make raid1 as fast as
> raid0 for ssd?
> i didn't tested the raid10 algorithm yet.
> thanks a lot.
>
> --
> Roberto Spadim
> Spadim Technology / SPAEmpresarial
>
--
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Read algorithm-raid1/raid10
am 18.01.2011 16:01:49 von Keld Simonsen
On Tue, Jan 18, 2011 at 12:00:49PM -0200, Roberto Spadim wrote:
> like this patch (a long time ago)
> http://www.spinics.net/lists/raid/msg30003.html
>
>
> 2011/1/18 Roberto Spadim :
> > hi guys, could we implement a load_balance read algorithm for SSD?
> > nearest head isn't as fast as round robin for ssd.
> > i'm talking about raid1 (raid10 too)
> > what's my problem?
> > as i can see, raid0 is faster than raid1
> > for example:
> > two disks raid0 is faster than
> > two disks raid1.
> >
> > why?
> > nearest head
> > instead of a balanced read algorithm (like raid0) the nearest head
> > make raid1 use only one disk for searchs where we could use two disks
> > (like raid0)
> >
> > could we implement a round robin for ssd? and make raid1 as fast as
> > raid0 for ssd?
> > i didn't tested the raid10 algorithm yet.
> > thanks a lot.
This should only be in use for SSDs. For disks it would be a waste of IO
bandwidth. How do we detect whether it is a SSSD.
Another way to accomplish an improvement os to use the offset layout of
raid10.
best regards
Keld
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Read algorithm-raid1/raid10
am 18.01.2011 16:51:08 von mathias.buren
2011/1/18 Keld Jørn Simonsen :
> On Tue, Jan 18, 2011 at 12:00:49PM -0200, Roberto Spadim wrote:
>> like this patch (a long time ago)
>> http://www.spinics.net/lists/raid/msg30003.html
>>
>>
>> 2011/1/18 Roberto Spadim :
>> > hi guys, could we implement a load_balance read algorithm for SSD?
>> > nearest head isn't as fast as round robin for ssd.
>> > i'm talking about raid1 (raid10 too)
>> > what's my problem?
>> > as i can see, raid0 is faster than raid1
>> > for example:
>> > two disks raid0 is faster than
>> > two disks raid1.
>> >
>> > why?
>> > nearest head
>> > instead of a balanced read algorithm (like raid0) the nearest head
>> > make raid1 use only one disk for searchs where we could use two di=
sks
>> > (like raid0)
>> >
>> > could we implement a round robin for ssd? and make raid1 as fast a=
s
>> > raid0 for ssd?
>> > i didn't tested the raid10 algorithm yet.
>> > thanks a lot.
>
> This should only be in use for SSDs. For disks it would be a waste of=
IO
> bandwidth. How do we detect whether it is a SSSD.
> Another way to accomplish an improvement os to use the offset layout =
of
> raid10.
>
> best regards
> Keld
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"=
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.ht=
ml
>
Hi,
There is a way to check if the device is an SSD or not; the rotational
queue flag in sysfs. See
http://amailbox.org/mailarchive/git-commits-head/2009/1/30/4 859834/thre=
ad
// Mathias
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Read algorithm-raid1/raid10
am 18.01.2011 17:15:16 von Roberto Spadim
yes i found it in my /sys filesystem, a rotational information 0 for
hd 1 for ssd
i write a long time ago a more interesting algorithm but complex... a
minimal time algorithm, it should have information about head position
time, read time (per bit, per byte, per units....) and calculate the
time to make a read in each disk considering that it could be reading
(time to stop read current requestion) and after this get the smallest
time -> the best read performace
if we use only ssd disk today implementation isn=B4t good, if we use hd=
d
maybe a good (if we don=B4t use 7200rpm + 10000rpm + 15000rpm disks), i=
f
we use a mixed ssd+hdd it will not work very good too... this should
be a per disk optimization (minimal time to read) a round robin is a
good feature (for ssd only) but a mixed array should allow minimal
time algorithm
any idea how to implement a round robin and a algorithm (per raid
device) selection using sysfs?
there=B4s a patch but i didn=B4t found information about how to patch t=
he
kernel with it
can anyone help me?
thanks
2011/1/18 Mathias Bur=E9n :
> 2011/1/18 Keld J=F8rn Simonsen :
>> On Tue, Jan 18, 2011 at 12:00:49PM -0200, Roberto Spadim wrote:
>>> like this patch (a long time ago)
>>> http://www.spinics.net/lists/raid/msg30003.html
>>>
>>>
>>> 2011/1/18 Roberto Spadim :
>>> > hi guys, could we implement a load_balance read algorithm for SSD=
?
>>> > nearest head isn't as fast as round robin for ssd.
>>> > i'm talking about raid1 (raid10 too)
>>> > what's my problem?
>>> > as i can see, raid0 is faster than raid1
>>> > for example:
>>> > two disks raid0 is faster than
>>> > two disks raid1.
>>> >
>>> > why?
>>> > nearest head
>>> > instead of a balanced read algorithm (like raid0) the nearest hea=
d
>>> > make raid1 use only one disk for searchs where we could use two d=
isks
>>> > (like raid0)
>>> >
>>> > could we implement a round robin for ssd? and make raid1 as fast =
as
>>> > raid0 for ssd?
>>> > i didn't tested the raid10 algorithm yet.
>>> > thanks a lot.
>>
>> This should only be in use for SSDs. For disks it would be a waste o=
f IO
>> bandwidth. How do we detect whether it is a SSSD.
>> Another way to accomplish an improvement os to use the offset layout=
of
>> raid10.
>>
>> best regards
>> Keld
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid=
" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>>
>
> Hi,
>
> There is a way to check if the device is an SSD or not; the rotationa=
l
> queue flag in sysfs. See
> http://amailbox.org/mailarchive/git-commits-head/2009/1/30/4 859834/th=
read
> .
>
> // Mathias
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"=
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>
--=20
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Read algorithm-raid1/raid10
am 18.01.2011 18:26:26 von Roberto Spadim
let=B4s think about a raid like:
md1 =3D raid1, /dev/sda (ssd), /dev/sdb (ssd)
md2 =3D raid1, /dev/sdc (hdd), /dev/sdd (hdd)
md3 =3D raid0, /dev/md1 (ssd raid), /dev/md2 (hdd raid)
(a raid10 like)
we could make md3 write/read round robin only, and md2/md1 diferent
read/write optimizations
2011/1/18 Roberto Spadim :
> yes i found it in my /sys filesystem, a rotational information 0 for
> hd 1 for ssd
>
> i write a long time ago a more interesting algorithm but complex... a
> minimal time algorithm, it should have information about head positio=
n
> time, read time (per bit, per byte, per units....) and calculate the
> time to make a read in each disk considering that it could be reading
> (time to stop read current requestion) and after this get the smalles=
t
> time -> the best read performace
>
> if we use only ssd disk today implementation isn=B4t good, if we use =
hdd
> maybe a good (if we don=B4t use 7200rpm + 10000rpm + 15000rpm disks),=
if
> we use a mixed ssd+hdd it will not work very good too... this should
> be a per disk optimization (minimal time to read) a round robin is a
> good feature (for ssd only) but a mixed array should allow minimal
> time algorithm
>
> any idea how to implement a round robin and a algorithm (per raid
> device) selection using sysfs?
> there=B4s a patch but i didn=B4t found information about how to patch=
the
> kernel with it
> can anyone help me?
> thanks
>
> 2011/1/18 Mathias Bur=E9n :
>> 2011/1/18 Keld J=F8rn Simonsen :
>>> On Tue, Jan 18, 2011 at 12:00:49PM -0200, Roberto Spadim wrote:
>>>> like this patch (a long time ago)
>>>> http://www.spinics.net/lists/raid/msg30003.html
>>>>
>>>>
>>>> 2011/1/18 Roberto Spadim :
>>>> > hi guys, could we implement a load_balance read algorithm for SS=
D?
>>>> > nearest head isn't as fast as round robin for ssd.
>>>> > i'm talking about raid1 (raid10 too)
>>>> > what's my problem?
>>>> > as i can see, raid0 is faster than raid1
>>>> > for example:
>>>> > two disks raid0 is faster than
>>>> > two disks raid1.
>>>> >
>>>> > why?
>>>> > nearest head
>>>> > instead of a balanced read algorithm (like raid0) the nearest he=
ad
>>>> > make raid1 use only one disk for searchs where we could use two =
disks
>>>> > (like raid0)
>>>> >
>>>> > could we implement a round robin for ssd? and make raid1 as fast=
as
>>>> > raid0 for ssd?
>>>> > i didn't tested the raid10 algorithm yet.
>>>> > thanks a lot.
>>>
>>> This should only be in use for SSDs. For disks it would be a waste =
of IO
>>> bandwidth. How do we detect whether it is a SSSD.
>>> Another way to accomplish an improvement os to use the offset layou=
t of
>>> raid10.
>>>
>>> best regards
>>> Keld
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-rai=
d" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.htm=
l
>>>
>>
>> Hi,
>>
>> There is a way to check if the device is an SSD or not; the rotation=
al
>> queue flag in sysfs. See
>> http://amailbox.org/mailarchive/git-commits-head/2009/1/30/4 859834/t=
hread
>> .
>>
>> // Mathias
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid=
" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>>
>
>
>
> --
> Roberto Spadim
> Spadim Technology / SPAEmpresarial
>
--=20
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html