# US 9,354,975 B2 · Load balancing on disks in raid based on linear block codes

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,354,975 B2
- Document ID: US9354975B2
- Status: Granted
- Kind: B2
- Application number: 14/236,270
- Filed: 2013-03-15
- Published: 2015-10-22
- Granted: 2016-05-31
- Earliest claimed: 2013-03-15
- Assignees: EMC Corporation
- Applicants: EMC Corporation
- Inventors: Artem Alexandrovich Aliev; Peter Vladimirovich Trifonov; Vera Dmitriyevna Miloslavskaya; Alexander Nicholaevich Alexeev
- Web page: https://patentgrep.com/patent/US9354975B2

## CPC

- G06F 11/1096: {Parity calculation or recalculation after configuration or reconfiguration of the system}
- G06F 11/085: {using codes with inherent redundancy, e.g. n-out-of-m codes}
- H03M 13/036: {Heuristic code construction methods, i.e. code construction or code search based on using trial-and-error}
- H03M 13/15: Cyclic codes, i.e. cyclic shifts of codewords produce other codewords, e.g. codes defined by a generator polynomial, Bose-Chaudhuri-Hocquenghem [BCH] codes (H03M13/17 takes precedence)
- H03M 13/611: {Specific encoding aspects, e.g. encoding by means of decoding}
- H03M 13/616: {Matrix operations, especially for generator matrices or check matrices, e.g. column or row permutations}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

An improved technique involves assigning a different generator matrix to each data stripe of the redundant disk array such that all of the different generator matrices represent the same code. For example, when a k×n generator matrix G represents a linear code C, k being the block length and n the code length, then for any invertible k×k matrix P, the matrix G′=PG is also a generator that represents C. When C is a systematic code, then G consists of a k×k identity matrix representing payload data concatenated with a k×(n−k) parity matrix representing parity data. Certain matrices P represent row operations on G, meaning that the matrix G′ may have the columns of the identity matrix in G to different locations in G′.

## Claims

### Claim 1

In a storage system, a method of storing data in a redundant disk array that employs a code which transforms an information vector of information symbols of length k into a codeword of code symbols of length n, the method comprising:
constructing a set of l generator matrices, each generator matrix of the set of l generator matrices being compatible with the code and corresponding to a data stripe of the redundant disk array, l being at least 2;
generating a respective codeword for a given information vector by multiplying the given information vector by a particular generator matrix of the set of l generator matrices; and
storing the respective codeword in a data stripe of the redundant array to which the particular generator matrix corresponds;
wherein the code is a systematic code in which the codeword of length n contains the information vector of length k and a check symbol vector of check symbols of length n−k;
wherein each generator matrix of the set of l generator matrices includes columns of a k×k identity matrix and columns of a k×(n−k) check matrix;
wherein a nominal generator matrix is defined to be a generator matrix having k of its columns being columns of the k×k identity matrix; and
wherein n is greater than k.

### Claim 2 (depends on 1)

A method as in claim 1,
wherein constructing the set of l generator matrices includes:
for each generator matrix of the set of l generator matrices, distributing by elementary row operations the columns of the k×k identity matrix and the k×(n−k) check matrix within that generator matrix, columns of the nominal generator matrix which have positions of the columns of that generator matrix that are columns of the k×k identity matrix being linearly independent.

### Claim 3 (depends on 2)

A method as in claim 2,
wherein the method further comprises:
prior to constructing the set of l generator matrices, constructing a collection of B information sets, each information set of the collection of l information sets corresponding to a generator matrix of the set of l generator matrices and being a set of positions of code symbols within a codeword.

### Claim 4 (depends on 3)

A method as in claim 3,
wherein distributing the columns of the k×k identity matrix and the k×(n−k) check matrix includes:
performing a gaussian elimination operation on the nominal generator matrix, the gaussian elimination operation producing a generator matrix with columns of the k×k identity matrix having positions within the generator matrix being given by the information set of the collection of l information sets corresponding to the generator matrix.

### Claim 5 (depends on 3)

A method as in claim 3, further comprising:
prior to distributing the columns of the k×k identity matrix and the k×(n−k) check matrix, forming a figure of merit indicative of an imbalance of a rate of updating symbols across the data stripes of the redundant disk array, the figure of merit being a function of a collection of information sets, the rate of updating symbols being indicative of a number of times a code symbol is used as an information symbol in the collection of information sets; and
performing an optimization operation on the figure of merit over a family of collections of information sets, the optimization operation producing an optimal collection of information sets;
wherein distributing the columns of the k×k identity matrix and the k×(n−k) check matrix includes:
for each information set of the optimal set of information sets, producing a generator matrix of the set of l generator matrices with columns of the k×k identity matrix having positions within the generator matrix being given by an information set of the optimal collection of information sets.

### Claim 6 (depends on 5)

A method as in claim 5,
wherein forming the figure of merit includes:
forming a sum of an absolute value of a difference between the rate of updating symbols of a collection of information sets and a specified mean update rate over the collection of information sets, the sum being taken over each symbol of the codeword.

### Claim 7 (depends on 5)

A method as in claim 5,
wherein performing the optimization operation on the figure of merit includes:
generating the family of collections of information sets;
finding the particular collection of information sets that minimizes the figure of merit over the family of collections of information sets, that particular collection of information steps being the optimal collection of information steps.

### Claim 8 (depends on 7)

A method as in claim 7,
wherein generating the family of collections of information sets includes:
for each collection of the family of collections:
producing, with a random number generator, a collection of position indices, each position index of the collection of position indices corresponding to an information set of the collection of information sets;
for each position index of the collection of position indices:
producing a set of position indices with i) columns of the nominal generator matrix which have positions of the set of position indices being linearly independent and ii) the number of nonzero elements of those columns being maximized.

### Claim 9 (depends on 8)

A method as in claim 8,
wherein the code has an alphabet that belongs to GF(2); and
wherein producing the set of position indices includes:
summing the columns of the nominal generator matrix to produce the number of nonzero elements of those columns being maximized.

### Claim 10

An apparatus constructed and arranged to store data in a redundant disk array that employs a code which transforms an information vector of information symbols of length k into a codeword of code symbols of length n, the apparatus comprising:
a data interface;
memory; and
a controller including controlling circuitry, the controlling circuitry being constructed and arranged to:
construct a set of l generator matrices, each generator matrix of the set of l generator matrices being compatible with the code and corresponding to a data stripe of the redundant disk array, l being at least 2;
generate a respective codeword for a given information vector by multiplying the given information vector by a particular generator matrix of the set of l generator matrices; and
store the respective codeword in a data stripe of the redundant array to which the particular generator matrix corresponds;
wherein the code is a systematic code in which the codeword of length n contains the information vector of length k and a check symbol vector of check symbols of length n−k;
wherein each generator matrix of the set of l generator matrices includes columns of a k×k identity matrix and columns of a k×(n−k) check matrix;
wherein a nominal generator matrix is defined to be a generator matrix with k of its columns being columns of the k×k identity matrix; and
wherein n is greater than k.

### Claim 11 (depends on 10)

An apparatus as in claim 10,
wherein the controlling circuitry constructed and arranged to generate the set of l generator matrices is further constructed and arranged to:
for each generator matrix of the set of l generator matrices, distribute by elementary row operations the columns of the k×k identity matrix and the k×(n−k) check matrix within that generator matrix, columns of the nominal generator matrix which have positions of the columns of that generator matrix that are columns of the k×k identity matrix being linearly independent.

### Claim 12 (depends on 11)

An apparatus as in claim 11,
wherein the controlling circuitry is further constructed and arranged to:
prior to constructing the set of l generator matrices, access a collection of F information sets, each information set of the collection of l information sets corresponding to a generator matrix of the set of l generator matrices and being a set of positions of code symbols within a codeword and having been constructed offline.

### Claim 13 (depends on 12)

An apparatus as in claim 12,
wherein distributing the columns of the k×k identity matrix and the k×(n−k) check matrix includes:
performing a gaussian elimination operation on the nominal generator matrix, the gaussian elimination operation producing a generator matrix with columns of the k×k identity matrix having positions within the generator matrix being given by the information set of the collection of l information sets corresponding to the generator matrix.

### Claim 14 (depends on 12)

An apparatus as in claim 12,
wherein the controlling circuitry is further constructed and arranged to:
prior to distributing the columns of the k×k identity matrix and the k×(n−k) check matrix, forming a figure of merit indicative of an imbalance of a rate of updating symbols across the data stripes of the redundant disk array, the figure of merit being a function of a collection of information sets, the rate of updating symbols being indicative of a number of times a code symbol is used as an information symbol in the collection of information sets; and
perform an optimization operation on the figure of merit over a family of collections of information sets, the optimization operation producing an optimal collection of information sets;
wherein distributing the columns of the k×k identity matrix and the k×(n−k) check matrix includes:
for each information set of the optimal set of information sets, producing a generator matrix of the set of l generator matrices with columns of the k×k identity matrix having positions within the generator matrix being given by an information set of the optimal collection of information sets.

### Claim 15 (depends on 14)

An apparatus as in claim 14,
wherein forming the figure of merit includes:
forming a sum of an absolute value of a difference between the rate of updating symbols of a collection of information sets and a specified mean update rate over the collection of information sets, the sum being taken over each symbol of the codeword.

### Claim 16 (depends on 14)

An apparatus as in claim 14,
wherein performing the optimization operation on the figure of merit includes:
generating the family of collections of information sets; and
finding the particular collection of information sets that minimizes the figure of merit over the family of collections of information sets, that particular collection of information steps being the optimal collection of information steps.

### Claim 17 (depends on 16)

An apparatus as in claim 16,
wherein generating the family of collections of information sets includes:
for each collection of the family of collections:
producing, with a random number generator, a collection of position indices, each position index of the collection of position indices corresponding to an information set of the collection of information sets; and
for each position index of the collection of position indices:
producing a set of position indices with i) columns of the nominal generator matrix which have positions of the set of position indices being linearly independent and ii) the number of nonzero elements of those columns being maximized.

### Claim 18 (depends on 17)

An apparatus as in claim 17,
wherein the code has an alphabet that belongs to GF(2); and
wherein producing the set of position indices includes:
summing the columns of the nominal generator matrix to produce the number of nonzero elements of those columns being maximized.

### Claim 19

A computer program product having a non-transitory, computer-readable storage medium which stores code for storing data in a redundant disk array that employs a code which transforms an information vector of information symbols of length k into a codeword of code symbols of length n, the code including instructions which, when executed by the disk controller, causes the disk controller to:
construct a set of l generator matrices, each generator matrix of the set of l generator matrices being compatible with the code and corresponding to a data stripe of the redundant disk array, l being at least 2;
generate a respective codeword for a given information vector by multiplying the given information vector by a particular generator matrix of the set of l generator matrices; and
store the respective codeword in a data stripe of the redundant array to which the particular generator matrix corresponds;
wherein the code is a systematic code in which the codeword of length n contains the information vector of length k and a check symbol vector of check symbols of length n−k;
wherein each generator matrix of the set of l generator matrices includes columns of a k×k identity matrix and columns of a k×(n−k) check matrix;
wherein a nominal generator matrix is defined to be a generator matrix with its first k columns being the k×k identity matrix; and
wherein n is greater than k.

### Claim 20 (depends on 19)

A computer program product as in claim 19,
wherein constructing the set of l generator matrices includes:
for each generator matrix of the set of l generator matrices, distributing the columns of the k×k identity matrix and the k×(n−k) check matrix within that generator matrix, columns of the nominal generator matrix which have positions of the columns of that generator matrix that are columns of the k×k identity matrix being linearly independent.

### Claim 21 (depends on 1)

A method as in claim 1, wherein k is a number of information symbols in the vector of information symbols of length k and n is a number of code symbols in the codeword of code symbols.
