# US 11,119,912 B2 · Ordering data updates for improving garbage collection being performed while performing the set of data updates

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

- Number: US 11,119,912 B2
- Document ID: US11119912B2
- Status: Granted
- Kind: B2
- Application number: 16/363,751
- Filed: 2019-03-25
- Published: 2020-10-01
- Granted: 2021-09-14
- Earliest claimed: 2019-03-25
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Miles Mulholland; Gordon D. Hutchison; Ben Sasson; Lee J. Sanders
- Web page: https://patentgrep.com/patent/US11119912B2

## CPC

- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0646: {Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0665: {at area level, e.g. provisioning of virtual or logical volumes}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method according to one embodiment includes receiving, by a target system from a source system, a description of a set of data updates that are to be written to the target system. For each given portion of data of the target system that is to be rewritten during performance of the set of data updates, forward lookup is performed on the target system for determining a physical storage address of the given portion of data. The method further includes marking each of the determined physical storage addresses of the portions of data of the target system in a copy of a reverse lookup table of the target system. The marked-up reverse lookup table is used for determining an ordering in which the performance of the set of data updates would result in a least amount of garbage collection being performed while performing the set of data updates.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving, by a target system from a source system, a description of a set of data updates that are to be written to a target volume of the target system, wherein the description includes a file that identifies grains of address ranges of the source system that are to be copied to the target system;
for each given portion of data of the target system that is to be rewritten during performance of the set of data updates, performing forward lookup on the target system for determining a physical storage address at which the given portion of data is located in the target system;
marking each of the determined physical storage addresses of the portions of data of the target system in a copy of a reverse lookup table of the target system;
using the marked-up reverse lookup table of the target system for determining an ordering in which the performance of the set of data updates would result in a least amount of garbage collection being performed while performing the set of data updates;
sending the determined ordering to the source system; and
receiving the set of data updates in accordance with the determined ordering.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the target system is a thin-provisioned system.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein each determined physical storage address is pre-associated with a plurality of garbage collection units of a garbage collection region, wherein determining the ordering includes:
determining a cost of performing garbage collection for each of the garbage collection regions; and
assigning a unique score to each of the garbage collection regions based on the determined costs.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the ordering in which the performance of the set of data updates would result in a least amount of garbage collection being performed while performing the set of data updates is a numerical ordering of the unique scores selected from the group of numerical orderings consisting of: a lowest score to a highest score, and a highest score to a lowest score.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, wherein the cost of performing garbage collection for each of the garbage collection regions is determined using a function, wherein the function includes at least one variable selected from the group of variables consisting of: an amount of system processing resources utilized to recover a given garbage collection unit, a number of metadata updates required to be performed to recover the given garbage collection unit, and time.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, comprising:
performing the set of data updates in accordance with the determined ordering, wherein the performing of the set of data updates includes rewriting more than one of the portions of data of the target system in a batch write.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, comprising:
performing the set of data updates in accordance with the determined ordering, wherein the performing of the set of data updates includes rewriting at least one of the portions of data, wherein any performing of the rewriting at least one of the portions of data is postponed until any garbage collection performed on the at least one of the portions of data is completed.

### Claim 8

A computer program product for determining an ordering in which performance of a set of data updates would result in a least amount of garbage collection being performed while performing the set of data updates, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions readable and/or executable by a target system to cause the target system to:
receive, by a target system from a source system, a description of a set of data updates that are to be written to a target volume of the target system, wherein the description includes a file that identifies grains of address ranges of the source system that are to be copied to the target system;
for each given portion of data of the target system that is to be rewritten during performance of the set of data updates, perform, by the target system, forward lookup on the target system for determining a physical storage address at which the given portion of data is located in the target system;
mark, by the target system, each of the determined physical storage addresses of the portions of data of the target system in a copy of a reverse lookup table of the target system;
use, by the target system, the marked-up reverse lookup table of the target system for determining an ordering in which the performance of the set of data updates would result in a least amount of garbage collection being performed while performing the set of data updates;
send, by the target system, the determined ordering to the source system; and
receive, by the target system, the set of data updates in accordance with the determined ordering.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the target system is a thin-provisioned system.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein each determined physical storage address is pre-associated with a plurality of garbage collection units of a garbage collection region, wherein determining the ordering includes:
determining a cost of performing garbage collection for each of the garbage collection regions; and
assigning a unique score to each of the garbage collection regions based on the determined costs.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the ordering in which the performance of the set of data updates would result in a least amount of garbage collection being performed while performing the set of data updates is a numerical ordering of the unique scores selected from the group of numerical orderings consisting of: a lowest score to a highest score, and a highest score to a lowest score.

### Claim 12 (depends on 10)

The computer program product of claim 10, wherein the cost of performing garbage collection for each of the garbage collection regions is determined using a function, wherein the function includes at least one variable selected from the group of variables consisting of: an amount of system processing resources utilized to recover a given garbage collection unit, a number of metadata updates required to be performed to recover the given garbage collection unit, and time.

### Claim 13 (depends on 8)

The computer program product of claim 8, the program instructions readable and/or executable by the target system to cause the target system to:
perform, by the target system, the set of data updates in accordance with the determined ordering, wherein the performing of the set of data updates includes rewriting more than one of the portions of data of the target system in a batch write.

### Claim 14 (depends on 8)

The computer program product of claim 8, the program instructions readable and/or executable by the target system to cause the target system to:
perform, by the target system, the set of data updates in accordance with the determined ordering, wherein the performing of the set of data updates includes rewriting at least one of the portions of data, wherein any performing of the rewriting at least one of the portions of data is postponed until any garbage collection performed on the at least one of the portions of data is completed.

### Claim 15

A system, comprising:
a processor; and
logic integrated with the processor, executable by the processor, or integrated with and executable by the processor, the logic being configured to:
receive, by a target system from a source system, a description of a set of data updates that are to be written to a target volume of the target system, wherein the description includes a file that identifies grains of address ranges of the source system that are to be copied to the target system;
for each given portion of data of the target system that is to be rewritten during performance of the set of data updates, perform forward lookup on the target system for determining a physical storage address at which the given portion of data is located in the target system;
mark each of the determined physical storage addresses of the portions of data of the target system in a copy of a reverse lookup table of the target system;
use the marked-up reverse lookup table of the target system for determining an ordering in which the performance of the set of data updates would result in a least amount of garbage collection being performed while performing the set of data updates;
send the determined ordering to the source system; and
receive the set of data updates in accordance with the determined ordering.

### Claim 16 (depends on 15)

The system of claim 15, wherein each determined physical storage address is pre-associated with a plurality of garbage collection units of a garbage collection region, wherein determining the ordering includes:
determining a cost of performing garbage collection for each of the garbage collection regions; and
assigning a unique score to each of the garbage collection regions based on the determined costs.

### Claim 17 (depends on 16)

The system of claim 16, wherein the ordering in which the performance of the set of data updates would result in a least amount of garbage collection being performed while performing the set of data updates is a numerical ordering of the unique scores selected from the group of numerical orderings consisting of: a lowest score to a highest score, and a highest score to a lowest score.

### Claim 18 (depends on 16)

The system of claim 16, wherein the cost of performing garbage collection for each of the garbage collection regions is determined using a function, wherein the function includes at least one variable selected from the group of variables consisting of: an amount of system processing resources utilized to recover a given garbage collection unit, a number of metadata updates required to be performed to recover the given garbage collection unit, and time.

### Claim 19 (depends on 15)

The system of claim 15, the logic being configured to:
perform the set of data updates in accordance with the determined ordering, wherein the performing of the set of data updates includes rewriting more than one of the portions of data of the target system in a batch write.

### Claim 20 (depends on 15)

The system of claim 15, the logic being configured to:
perform the set of data updates in accordance with the determined ordering, wherein the performing of the set of data updates includes rewriting at least one of the portions of data, wherein any performing of the rewriting at least one of the portions of data is postponed until any garbage collection performed on the at least one of the portions of data is completed.
