# US 2021/0334208 A1 · Adjustment of garbage collection parameters 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 2021/0334208 A1
- Document ID: US20210334208A1
- Status: Published application
- Kind: A1
- Application number: 16/856,228
- Filed: 2020-04-23
- Published: 2021-10-28
- Earliest claimed: 2020-04-23
- Assignees: NetApp, Inc.
- Applicants: NetApp, Inc.
- Inventors: Alyssa Proulx; Wei Sun
- Web page: https://patentgrep.com/patent/US20210334208A1

## CPC

- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/3037: {where the computing system component is a memory, e.g. virtual memory, cache (accessing, addressing or allocating within memory systems or architectures G06F12/00; checking stores for correct operation G11C29/00)}
- G06F 11/3409: {for performance assessment}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 2201/81: Threshold
- G06F 2212/1016: Performance improvement
- G06F 2212/154: Networked environment
- G06F 2212/163: Server or database system
- 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 system, method, and machine-readable storage medium for performing garbage collection in a distributed storage system are provided. In some embodiments, an efficiency level of a garbage collection process is monitored. The garbage collection process may include removal of one or more data blocks of a set of data blocks that is referenced by a set of content identifiers. The set of slice services and the set of data blocks may reside in a cluster, and a set of filters may indicate whether the set of data blocks is in-use. At least one parameter of a filter of the set of filters may be adjusted (e.g., increased or reduced) if the efficiency level is below the efficiency threshold. Garbage collection may be performed on the set of data blocks in accordance with the set of filters.

## Claims

### Claim 1

A method comprising:
monitoring an efficiency level of a garbage collection process, the garbage collection process including removal of one or more data blocks of a set of data blocks that is referenced by a set of content identifiers, a set of slice services and the set of data blocks residing in a cluster, and a set of filters indicating whether the set of data blocks is in-use;
determining whether the efficiency level is below an efficiency threshold;
adjusting at least one parameter of the one or more filters of the set of filters in response to determining that the efficiency level is below the efficiency threshold; and
performing garbage collection on the set of data blocks in accordance with the set of filters.

### Claim 2 (depends on 1)

The method of claim 1, wherein the monitoring the efficiency level includes monitoring the set of filters.

### Claim 3 (depends on 1)

The method of claim 1, wherein the monitoring the efficiency level includes determining an efficiency set for each volume hosted by a slice service of the set of slice services.

### Claim 4 (depends on 1)

The method of claim 1, wherein the set of filters includes a set of bloom filters.

### Claim 5 (depends on 1)

The method of claim 1, wherein the at least one parameter of the one or more filters includes a size of the filter, a target fullness of the filter, and a number of hash functions used when constructing the filter.

### Claim 6 (depends on 1)

The method of claim 1, wherein the determining whether the efficiency level is below the efficiency threshold includes determining whether a false-positive rate for the set of slice services exceeds a performance threshold.

### Claim 7 (depends on 1)

The method of claim 1, wherein the determining whether the efficiency level is below the efficiency threshold includes determining whether a difference between an amount of data stored by a set of block services corresponding to the set of data blocks and an estimated amount of data block in-use in the cluster is greater than a critical value.

### Claim 8 (depends on 1)

The method of claim 1, wherein the adjusting at least one parameter includes reducing a false-positive rate of a filter of the set of filters.

### Claim 9 (depends on 1)

The method of claim 1, wherein the monitoring the efficiency level, the determining whether the efficiency level is below the efficiency threshold, the adjusting at least one parameter, and the performing garbage collection occurs for each round of garbage collection.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
adjusting a parameter of a filter of the set of filters in response to determining that the set of slice services is under a hardware constraint.

### Claim 11 (depends on 1)

The method of claim 1, wherein the adjusting at least one parameter includes increasing a size of a filter of the one or more filters, decreasing a target fullness of the filter, or decreasing a number of hashes per content identifier used for constructing the filter.

### Claim 12

A non-transitory machine-readable medium having stored thereon instructions for performing garbage collection in a distributed storage system, comprising machine executable code which when executed by at least one machine, causes the machine to:
monitor a set of filters corresponding to a set of slice services, the set of slice services residing in a cluster and including a set of content identifiers, and the set of filters indicating whether a set of data blocks referenced by the set of content identifiers is in-use;
determine whether a false-positive rate for the set of slice services satisfies a performance threshold;
adjust the false-positive rate of at least one filter of the set of filters in response to determining that the false-positive rate satisfies the performance threshold; and
performing garbage collection on the set of data blocks in accordance with the set of filters.

### Claim 13 (depends on 12)

The non-transitory machine-readable medium of claim 12, wherein the false-positive rate satisfies the performance threshold if the false-positive rate exceeds the performance threshold.

### Claim 14 (depends on 12)

The non-transitory machine-readable medium of claim 12, wherein the false-positive rate is based on the set of filters.

### Claim 15 (depends on 12)

The non-transitory machine-readable medium of claim 12, further comprising code, which causes the machine to:
update the set of filters in accordance with the adjusted false-positive rate, wherein the garbage collection is performed in accordance with the updated set of filters.

### Claim 16 (depends on 12)

The non-transitory machine-readable medium of claim 12, further comprising code, which causes the machine to:
adjust the false-positive rate by reducing the false-positive rate of a filter of the set of filters.

### Claim 17

A computing device comprising:
a memory containing a machine-readable medium comprising machine executable code having stored thereon instructions for performing garbage collection in a distributed storage system; and
a processor coupled to the memory, the processor configured to execute the machine executable code to:
for each round of garbage collection:
monitor an efficiency level of a garbage collection process for a set of data blocks referenced by a set of content identifiers, the set of data blocks residing in a cluster, and a set of filters indicating whether the set of data blocks is in-use;
determine whether the efficiency level is below an efficiency threshold;
reduce a false-positive rate of a filter of the set of filters; and
perform garbage collection on the set of data blocks in accordance with the set of filters.

### Claim 18 (depends on 17)

The computing device of claim 17, wherein the processor is configured to execute the machine executable code to:
reduce the false-positive rate of the filter by increasing a size of the filter.

### Claim 19 (depends on 17)

The computing device of claim 17, wherein the processor is configured to execute the machine executable code to:
reduce the false-positive rate of the filter by decreasing a target fullness of the filter.

### Claim 20 (depends on 17)

The computing device of claim 17, wherein the processor is configured to execute the machine executable code to:
reduce the false-positive rate of the filter by decreasing a number of hashes per content identifier used for constructing the filter.
