# US 2017/0286215 A1 · Raid system performance enhancement using compressed data

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

- Number: US 2017/0286215 A1
- Document ID: US20170286215A1
- Status: Published application
- Kind: A1
- Application number: 15/083,333
- Filed: 2016-03-29
- Published: 2017-10-05
- Earliest claimed: 2016-03-29
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Adrian C. Gerhard; Daniel F. Moertl
- Web page: https://patentgrep.com/patent/US20170286215A1

## CPC

- G06F 11/1068: {in sector programmable memories, e.g. flash disk (G06F11/1072 takes precedence)}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A method for operating a storage system RAID storage devices includes receiving a first data block to write to the storage system. The method further includes compressing the first data block to generate a second data block, the second data block including the first data block in compressed form and a data value indicating that the second data block is compressed. The method further includes storing the second data block in memory. The method additionally includes retrieving the second data block from memory and executing RAID operations to write the data block to the RAID storage devices, the set of operations including: generating, based on the second data block, redundant data for performing at least one of an error detection and an error correction operation on the second data block; writing the second data block to the RAID storage devices; writing the redundant data block to the RAID storage devices.

## Claims

### Claim 1

A method for operating a storage system, the storage system having memory and RAID storage devices, comprising:
receiving, from a computing system, a first data block to write to the storage system;
compressing the received first data block to generate a second data block, the second data block including the first data block in compressed form and a data value, the data value indicating that the second data block is compressed;
storing the second data block to memory; and
retrieving the second data block from memory and executing a set of RAID operations to write the second data block to the RAID storage devices, the set of operations including:
generating, based on the second data block, redundant data for performing at least one of an error detection and an error correction operation on the second data block;
writing the second data block to the RAID storage devices; and
writing the redundant data block to the RAID storage devices.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
retrieving a third data block from the RAID storage devices;
determining that the third data block is compressed by identifying, in the third data block, a data value indicating that the third data block is compressed;
generating compression statistics for the third data block, the compression statistics including a compression ratio; and
storing the third data block in memory.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
determining that the third data block is padded with pad data; and
discarding, in response to determining that the third data block is padded, the pad data before storing the third data block in memory.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
retrieving a third data block from the RAID storage devices;
determining that the third data block is compressed by identifying, in the third data block, a data value indicating that the third data block is compressed;
decompressing the third data block to generate a decompressed data block, wherein decompressing the includes discarding pad data included in the third data block; and
transmitting the decompressed data block to the computing system.

### Claim 5 (depends on 1)

The method of claim 1, wherein the RAID storage devices is byte addressable.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
transferring the second data block and the redundant data block to the RAID storage devices over a serial attached small computer system interface data bus.

### Claim 7 (depends on 1)

The method of claim 1, wherein memory is at least one of RAM, DRAM, SDRAM, SRAM and flash.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
retrieving a first compressed data block from memory and executing a set of RAID operations to perform a partial stripe update to a stripe of data on the RAID storage devices with the first compressed data block, the set of operations including:
reading, from the stripe, a stored data block corresponding with the first compressed data block, wherein a stored data block corresponds with a compressed data block when the stored data block has a same physical size as the compressed data block and is located at a same physical address on a storage device that will be updated by the first compressed data block;
reading, from the RAID storage devices, a redundant data block corresponding with the stored data block;
generating, based on the first compressed data block and the stored data block and the stored redundant data block, updated redundant data for performing at least one of an error detection and an error correction operation on the compressed data block;
writing the first compressed data block to the stripe; and
writing the updated redundant data to the RAID storage devices.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
retrieving a plurality of compressed data blocks from a memory of the storage system and executing a set of RAID operations to write the retrieved plurality of compressed data blocks to a stripe of the RAID storage devices, the set of operations including:
determining a physical size of a largest compressed data block of the retrieved plurality of data blocks, wherein a physical size of a compressed data block is a number of data units required to represent the compressed data block in a memory of the storage system;
generating a plurality of padded data blocks by padding each compressed data block of the retrieved plurality of compressed data blocks with zero or more units of pad data to cause a size of each padded data block to equal the physical size of the largest compressed data block;
generating, for each data block or padded data block, respective redundant data, based on the padded data block, for performing at least one of an error detection and an error correction operation;
writing the plurality of padded data blocks to the RAID storage devices by issuing commands to transfer the plurality of padded data blocks to an SAS storage interface;
writing the respective redundant data block to the RAID storage devices by issuing commands to transfer the compressed data block to a storage interface.

### Claim 10

A storage system, comprising:
a set of one or more RAID storage devices;
a storage controller having a processor and a memory, the memory having program instructions embodied therewith, the program instructions executable by the processor to cause the storage controller to:
receive, from a computing system, a first data block to write to the storage system;
compress the received first data block to generate a second data block, the second data block including the first data block in compressed form and a data value, the data value indicating that the second data block is compressed;
store the second data block to memory; and
retrieve the second data block from memory and executing a set of RAID operations to write the second data block to the RAID storage devices, the set of operations to:
generate, based on the second data block, redundant data for performing at least one of an error detection and an error correction operation on the second data block;
write the second data block to the RAID storage devices; and
write the redundant data block to the RAID storage devices.

### Claim 11 (depends on 10)

The storage system of claim 10, program instructions executable by the processor to further cause the storage controller to:
retrieve a third data block from the RAID storage devices;
determine that the third data block is compressed by identifying, in the third data block, a data value indicating that the third data block is compressed;
generate compression statistics for the third data block, the compression statistics including a compression ratio; and
store the third data block in memory.

### Claim 12 (depends on 11)

The storage system of claim 11, program instructions executable by the processor to further cause the storage controller to:
determine that the third data block is padded with pad data; and
discard, in response to determining that the third data block is padded, the pad data before storing the third data block in memory.

### Claim 13 (depends on 10)

The storage system of claim 10, program instructions executable by the processor to further cause the storage controller to:
retrieve a third data block from the RAID storage devices;
determine that the third data block is compressed by identifying, in the third data block, a data value indicating that the third data block is compressed;
decompress the third data block to generate a decompressed data block, wherein decompressing the includes discarding pad data included in the third data block; and
transmit the decompressed data block to the computing system.

### Claim 14 (depends on 10)

The storage system of claim 10, wherein the RAID storage devices is byte addressable.

### Claim 15 (depends on 10)

The storage system of claim 10, program instructions executable by the processor to further cause the storage controller to:
transfer the second data block and the redundant data block to the RAID storage devices over a serial attached small computer system interface data bus.

### Claim 16 (depends on 10)

The storage system of claim 10, wherein memory is at least one of RAM, DRAM, SDRAM, SRAM and flash.

### Claim 17

A computer program product for operating a storage system having memory and RAID storage devices, the computer program product including a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a processing circuit to cause the processing circuit to perform a method comprising:
receiving, from a computing system, a first data block to write to the storage system;
compressing the received first data block to generate a second data block, the second data block including the first data block in compressed form and a data value, the data value indicating that the second data block is compressed;
storing the second data block to memory; and
retrieving the second data block from memory and executing a set of RAID operations to write the second data block to the RAID storage devices, the set of operations including:
generating, based on the second data block, redundant data for performing at least one of an error detection and an error correction operation on the second data block;
writing the second data block to the RAID storage devices; and
writing the redundant data block to the RAID storage devices.

### Claim 18 (depends on 17)

The computer program of claim 17, the method further comprising:
retrieving a third data block from the RAID storage devices;
determining that the third data block is compressed by identifying, in the third data block, a data value indicating that the third data block is compressed;
generating compression statistics for the third data block, the compression statistics including a compression ratio; and
storing the third data block in memory.

### Claim 19 (depends on 18)

The computer program of claim 18, the method further comprising:
determining that the third data block is padded with pad data; and
discarding, in response to determining that the third data block is padded, the pad data before storing the third data block in memory.

### Claim 20 (depends on 17)

The computer program of claim 17, the method further comprising:
retrieving a third data block from the RAID storage devices;
determining that the third data block is compressed by identifying, in the third data block, a data value indicating that the third data block is compressed;
decompressing the third data block to generate a decompressed data block, wherein decompressing the includes discarding pad data included in the third data block; and
transmitting the decompressed data block to the computing system.
