From: David Brown <david@westcontrol.com>
To: Piergiorgio Sartor <piergiorgio.sartor@nexgo.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: Is this enough for us to have triple-parity RAID?
Date: Wed, 18 Apr 2012 22:20:03 +0200 [thread overview]
Message-ID: <4F8F21F3.5060108@westcontrol.com> (raw)
In-Reply-To: <20120418182201.GA2733@lazy.lzy>
On 18/04/12 20:22, Piergiorgio Sartor wrote:
> Hi David,
>
> On Tue, Apr 17, 2012 at 10:18:55PM +0200, David Brown wrote:
> [...]
>
>> For quad parity, we can try g3 = 8 as the obvious next choice in the
>> pattern. Unfortunately, we start hitting conflicts. To recover
>
> you should not use 8, because this is not a generator
> of GF(256) with polynomial 285, the standard for the
> RAID-5/6 setup.
>
> This means than 8^k does not cover the complete field
> for k in [0 254], thus having cycles and, consequently,
> creating conflicts.
>
> Some generators could be:
>
> 2, 4, 6, 9 13, 14, 16...
>
> but not 32 nor 64.
>
> I know that powers of two are nice, but if you want to
> have generic RAID, you must use other values.
>
I know that 8 is not a generator, and therefore you cannot expect to get
a full set of (256 - noOfParities) disks. But picking another generator
(such as 16) is not enough to guarantee you the full range - it is a
requirement, but not sufficient. The generators need to be independent
of each other, in the sense that all the simultaneous equations for all
the combinations of failed disks need to be soluble.
It turns out that if you pick 16 as the forth parity generator here (1,
2, 4, 16), then you can only have 5 data disks. In fact, there are no
other values for g3 that give significantly more than 21 data disks in
combination with (1, 2, 4), whether or not they happen to be a generator
for all of GF(2⁸).
> The log/exp tables, are, of course, always valid.
>
> BTW, the GF(256) with polynomial 285 has exactly 128
> generators, so it would be possible to have up to 129
> parity disk (1 is not a generator), for, I guess, a
> max of 256 disks (or maybe 255?).
>
> Hope this helps,
>
> bye,
>
When I started out with this, I thought it was as simple as you are
suggesting. But it is not - picking a set of generators for GF(2⁸) is
not enough. You have to check that all the solution matrices are
invertible for all combinations of failed disks.
In fact, it is a little surprising that (1, 2, 4) works so well for
triple parity. I don't know whether it is just luck, or genius in Peter
Anvin's choice of the multiply operation.
mvh.,
David
--
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
next prev parent reply other threads:[~2012-04-18 20:20 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-17 6:11 Is this enough for us to have triple-parity RAID? Alex
2012-04-17 7:58 ` David Brown
2012-04-17 16:37 ` Stefan /*St0fF*/ Hübner
2012-04-18 14:15 ` Alex
2012-04-18 14:11 ` David Brown
2012-04-17 17:16 ` Piergiorgio Sartor
2012-04-17 20:18 ` David Brown
2012-04-17 20:54 ` Piergiorgio Sartor
2012-04-18 18:22 ` Piergiorgio Sartor
2012-04-18 20:20 ` David Brown [this message]
2012-04-18 20:39 ` Piergiorgio Sartor
2012-04-19 18:16 ` H. Peter Anvin
2012-04-20 2:27 ` Alex
2012-04-20 3:00 ` H. Peter Anvin
2012-04-20 3:32 ` Alex
2012-04-20 18:58 ` David Brown
2012-04-20 19:39 ` H. Peter Anvin
2012-04-20 21:04 ` Piergiorgio Sartor
2012-04-20 21:01 ` Piergiorgio Sartor
2012-04-20 21:29 ` Peter Grandi
2012-04-20 22:31 ` Piergiorgio Sartor
2012-04-21 9:51 ` Peter Grandi
2012-04-21 11:18 ` Piergiorgio Sartor
2012-04-22 3:14 ` Alex
2012-04-22 8:57 ` Piergiorgio Sartor
2012-04-20 7:45 ` Stan Hoeppner
2012-04-23 15:26 ` Alex
2012-04-25 1:20 ` Stan Hoeppner
2012-04-25 2:45 ` Alex
2012-04-25 16:59 ` Emmanuel Noobadmin
2012-04-25 19:29 ` David Brown
2012-04-26 2:30 ` Alex
2012-04-27 15:15 ` Emmanuel Noobadmin
2012-05-01 16:38 ` Alex
2012-04-26 4:24 ` Alex
-- strict thread matches above, loose matches on Subject: below --
2012-04-16 12:55 Alex
2012-04-16 10:04 Alex
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F8F21F3.5060108@westcontrol.com \
--to=david@westcontrol.com \
--cc=linux-raid@vger.kernel.org \
--cc=piergiorgio.sartor@nexgo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.