# US 2023/0273877 A1 · Optimization for garbage collection in a storage system

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

- Number: US 2023/0273877 A1
- Document ID: US20230273877A1
- Status: Published application
- Kind: A1
- Application number: 17/681,449
- Filed: 2022-02-25
- Published: 2023-08-31
- Earliest claimed: 2022-02-25
- Assignees: Dell Products L.P.
- Applicants: Dell Products L.P.
- Inventors: Yosef Shatsky; Doron Tal
- Web page: https://patentgrep.com/patent/US20230273877A1

## CPC

- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0638: {Organizing or formatting or addressing of data}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A garbage collection process is performed in a storage system which comprises a storage control node, and storage nodes which implement a striped volume comprising a plurality of stripes having strips that are distributed over the storage nodes. The storage control node selects a victim stripe for garbage collection, and an empty stripe in the striped volume. The storage control node determines a data strip of the victim stripe having predominantly valid data based on a specified threshold, and sends a copy command to a target storage node which comprises the predominantly valid data strip, to cause the target storage node to copy the predominantly valid data strip to a data strip of the empty stripe which resides on the target storage node. The storage control node writes valid data blocks of the victim stripe to remaining data strips of the empty stripe, and releases the victim stripe for reuse.

## Claims

### Claim 1

A method, comprising:
performing a garbage collection process in a data storage system, wherein the data storage system comprises a storage control node and a plurality of storage nodes, wherein the storage nodes are configured to implement a striped volume comprising a plurality of stripes which have strips that are distributed over the plurality of storage nodes, wherein the garbage collection process comprises:
selecting, by the storage control node, at least one stripe of the plurality of stripes of the striped volume, as a victim stripe for garbage collection;
selecting, by the storage control node, at least one empty stripe of the striped volume;
determining, by the storage control node, a data strip of the victim stripe, which has predominantly valid data based on a specified threshold;
sending, by the storage control node, a copy command to a target storage node of the plurality of storage nodes, which comprises the data strip of the victim stripe which is determined to have predominantly valid data, to thereby cause the target storage node to copy the data strip with predominantly valid data to a data strip of the selected empty stripe which resides on the target storage node;
writing, by the storage control node, valid data blocks of the victim stripe to remaining data strips of the selected empty stripe to thereby generate a new stripe populated with valid data; and
releasing, by the storage control node, the victim stripe for reuse.

### Claim 2 (depends on 1)

The method of claim 1, wherein the striped volume comprises one of a RAID (Redundant Array of Independent Drives) array, and a log-structured RAID array.

### Claim 3 (depends on 1)

The method of claim 1, wherein selecting at least one empty stripe of the striped volume comprises selecting an empty stripe having strips that reside on a same set of storage nodes which contain the strips of the victim stripe.

### Claim 4 (depends on 1)

The method of claim 1, wherein writing valid data blocks of the victim stripe to remaining data strips of the selected empty block to thereby generate a new stripe populated with valid data, comprises:
condensing the valid data blocks of the victim stripe into one or more data stripes of the selected empty stripe; and
writing additional data to the remaining data strips of the empty stripe.

### Claim 5 (depends on 4)

The method of claim 4, wherein writing additional data to the remaining data strips of the empty stripe comprises writing at least one of (i) new data of received input/output (I/O) write requests and (ii) valid data of at least one other victim stripe, to the remaining data strips of the empty stripe to write a full stripe.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
computing, by the storage control node, parity information based on the valid data of the new stripe; and
writing, by the storage control node, at least one parity strip of the new stripe to include the computed parity information.

### Claim 7 (depends on 1)

The method of claim 1, wherein determining a data strip of the victim stripe, which has predominantly valid data based on a specified threshold, comprises determining, by the storage control node, each data strip of the victim stripe having an amount of valid data content which meets or exceeds a specified data validity threshold.

### Claim 8 (depends on 7)

The method of claim 7, wherein the specified data validity threshold is no less than about 0.9.

### Claim 9

An article of manufacture comprising a non-transitory processor-readable storage medium having stored therein program code of one or more software programs, wherein the program code is executable by one or more processors to implement a method which comprises:
performing a garbage collection process in a data storage system, wherein the data storage system comprises a storage control node and a plurality of storage nodes, wherein the storage nodes are configured to implement a striped volume comprising a plurality of stripes which have strips that are distributed over the plurality of storage nodes, wherein the garbage collection process comprises:
selecting, by the storage control node, at least one stripe of the plurality of stripes of the striped volume, as a victim stripe for garbage collection;
selecting, by the storage control node, at least one empty stripe of the striped volume;
determining, by the storage control node, a data strip of the victim stripe, which has predominantly valid data based on a specified threshold;
sending, by the storage control node, a copy command to a target storage node of the plurality of storage nodes, which comprises the data strip of the victim stripe which is determined to have predominantly valid data, to thereby cause the target storage node to copy the data strip with predominantly valid data to a data strip of the selected empty stripe which resides on the target storage node;
writing, by the storage control node, valid data blocks of the victim stripe to remaining data strips of the selected empty stripe to thereby generate a new stripe populated with valid data; and
releasing, by the storage control node, the victim stripe for reuse.

### Claim 10 (depends on 9)

The article of manufacture of claim 9, wherein the striped volume comprises one of a RAID (Redundant Array of Independent Drives) array, and a log-structured RAID array.

### Claim 11 (depends on 9)

The article of manufacture of claim 9, wherein the program code for selecting at least one empty stripe of the striped volume comprises program conde for selecting an empty stripe having strips that reside on a same set of storage nodes which contain the strips of the victim stripe.

### Claim 12 (depends on 9)

The article of manufacture of claim 9, wherein the program code for writing valid data blocks of the victim stripe to remaining data strips of the selected empty block to thereby generate a new stripe populated with valid data, comprises:
program code for condensing the valid data blocks of the victim stripe into one or more data stripes of the selected empty stripe; and
program code for writing additional data to the remaining data strips of the empty stripe.

### Claim 13 (depends on 12)

The article of manufacture of claim 12, wherein the program code for writing additional data to the remaining data strips of the empty stripe comprises program code for writing at least one of (i) new data of received input/output (I/O) write requests and (ii) valid data of at least one other victim stripe, to the remaining data strips of the empty stripe to write a full stripe.

### Claim 14 (depends on 9)

The article of manufacture of claim 9, further comprising program code which is executable by the one or more processors to implement a method which comprises:
computing, by the storage control node, parity information based on the valid data of the new stripe; and
writing, by the storage control node, at least one parity strip of the new stripe to include the computed parity information.

### Claim 15 (depends on 9)

The article of manufacture of claim 9, wherein the program code for determining a data strip of the victim stripe, which has predominantly valid data based on a specified threshold, comprises program code for determining, by the storage control node, each data strip of the victim stripe having an amount of valid data content which meets or exceeds a specified data validity threshold.

### Claim 16

A system, comprising:
a storage control node, and a plurality of storage nodes, wherein the storage nodes are configured to implement a striped volume comprising a plurality of stripes which have strips that are distributed over the plurality of storage nodes;
wherein the storage control node is configured to perform a garbage collection process, in which the storage control node is configured to:
select at least one stripe of the plurality of stripes of the striped volume, as a victim stripe for garbage collection;
select at least one empty stripe of the striped volume;
determine a data strip of the victim stripe, which has predominantly valid data based on a specified threshold;
send a copy command to a target storage node of the plurality of storage nodes, which comprises the data strip of the victim stripe which is determined to have predominantly valid data, to thereby cause the target storage node to copy the data strip with predominantly valid data to a data strip of the selected empty stripe which resides on the target storage node;
write valid data blocks of the victim stripe to remaining data strips of the selected empty stripe to thereby generate a new stripe populated with valid data; and
release the victim stripe for reuse.

### Claim 17 (depends on 16)

The system of claim 16, wherein the striped volume comprises one of a RAID (Redundant Array of Independent Drives) array, and a log-structured RAID array.

### Claim 18 (depends on 16)

The system of claim 16, wherein in selecting at least one empty stripe of the striped volume, the storage control node is configured to select an empty stripe having strips that reside on a same set of storage nodes which contain the strips of the victim stripe.

### Claim 19 (depends on 16)

The system of claim 16, wherein in writing valid data blocks of the victim stripe to remaining data strips of the selected empty block to thereby generate a new stripe populated with valid data, the storage control node is configured to:
condense the valid data blocks of the victim stripe into one or more data stripes of the selected empty stripe; and
write additional data to the remaining data strips of the empty stripe by writing at least one of (i) new data of received input/output (I/O) write requests and (ii) valid data of at least one other victim stripe, to the remaining data strips of the empty stripe to write a full stripe.

### Claim 20 (depends on 16)

The system of claim 16, wherein in determining a data strip of the victim stripe, which has predominantly valid data based on a specified threshold, the storage control node is configured to determine each data strip of the victim stripe having an amount of valid data content which meets or exceeds a specified data validity threshold.
