# US 10,956,317 B2 · Garbage collection in non-volatile memory that fully programs dependent layers in a target block

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

- Number: US 10,956,317 B2
- Document ID: US10956317B2
- Status: Granted
- Kind: B2
- Application number: 16/272,665
- Filed: 2019-02-11
- Published: 2020-08-13
- Granted: 2021-03-23
- Earliest claimed: 2019-02-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Roman A. Pletka; Nikolaos Papandreou; Sasa Tomic; Nikolas Ioannou; Aaron D. Fry; Timothy Fisher
- Web page: https://patentgrep.com/patent/US10956317B2

## CPC

- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A non-volatile memory includes a plurality of blocks of physical memory, including a target block and at least one source block containing at least some valid data and some invalid data. Responsive to determining to perform garbage collection for the non-volatile memory, the controller transfers valid data from the at least one source block to the target block. The controller ends garbage collection on the at least one source block with at least some valid data present in the at least one source block and all interfaces of the target block closed at the boundary of independent layers. In at least some embodiments, the target block may be configured to store more bits per cell than the at least one source block.

## Claims

### Claim 1

A method of garbage collection in a non-volatile memory including a plurality of blocks of physical memory, said plurality of blocks of physical memory including a target block and further including at least one source block containing at least some valid data and some invalid data, the method comprising:
a controller, based on determining to perform garbage collection for the non-volatile memory:
transferring valid data from the at least one source block to the target block; and
ending garbage collection on the at least one source block with at least some valid data present in the at least one source block and the target block only partially filled based on all interfaces of the target block being closed at a boundary of independent physical layers within the non-volatile memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein the target block is configured to store more bits per cell than the at least one source block.

### Claim 3 (depends on 2)

The method of claim 2, wherein the at least one source block comprises a plurality of source blocks.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
ending garbage collection comprises ending garbage collection on the at least one source block with at least some valid data present in the at least one source block and the target block only partially filled based on all interfaces of the target block being closed at the boundary of independent physical layers and the target block being configured to store multiple bits per cell; and
the method further comprises:
based on the target block being configured to store a single bit per cell, ending garbage collection on the at least one source block when all valid data in the at least one source block has been copied to the target block.

### Claim 5 (depends on 1)

The method of claim 1, and further comprising:
initiating garbage collection on the at least one source block only based on the at least one source block including sufficient valid to close all interfaces of the target block at the boundary of the independent physical layers.

### Claim 6

A data storage system, comprising:
a controller for a non-volatile memory including a plurality of blocks of physical memory, said plurality of blocks of physical memory including a target block and at least one source block containing at least some valid data and some invalid data, wherein the controller is configured to perform:
based on determining to perform garbage collection for the non-volatile memory:
transferring valid data from the at least one source block to the target block; and
ending garbage collection on the at least one source block with at least some valid data present in the at least one source block and the target block only partially filled based on all interfaces of the target block being closed at a boundary of independent physical layers within the non-volatile memory.

### Claim 7 (depends on 6)

The data storage system of claim 6, wherein the target block is configured to store more bits per cell than the at least one source block.

### Claim 8 (depends on 7)

The data storage system of claim 7, wherein the at least one source block comprises a plurality of source blocks.

### Claim 9 (depends on 6)

The data storage system of claim 6, wherein:
ending garbage collection comprises ending garbage collection on the at least one source block with at least some valid data present in the at least one source block and the target block only partially filled based on all interfaces of the target block being closed at the boundary of independent physical layers and the target block being configured to store multiple bits per cell; and
the controller is further configured to perform:
based on the target block being configured to store a single bit per cell, ending garbage collection on the at least one source block when all valid data in the at least one source block has been copied to the target block.

### Claim 10 (depends on 6)

The data storage system of claim 6, wherein the controller is further configured to perform:
initiating garbage collection on the at least one source block only based on the at least one source block including sufficient valid to close all interfaces of the target block at the boundary of the independent physical layers.

### Claim 11 (depends on 6)

The data storage system of claim 6, and further comprising the non-volatile memory.

### Claim 12

A computer program product, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions being executable by a controller of a non-volatile memory to cause the controller to perform:
based on determining to perform garbage collection for at least one source block of the non-volatile memory, the at least one source block containing at least some valid data and some invalid data:
transferring valid data from the at least one source block to a target block of the non-volatile memory; and
ending garbage collection on the at least one source block with at least some valid data present in the at least one source block and the target block only partially filled based on all interfaces of the target block being closed at a boundary of independent physical layers within the non-volatile memory.

### Claim 13 (depends on 12)

The program product of claim 12, wherein the target block is configured to store more bits per cell than the at least one source block.

### Claim 14 (depends on 13)

The program product of claim 13, wherein the at least one source block comprises a plurality of source blocks.

### Claim 15 (depends on 12)

The program product of claim 12, wherein:
ending garbage collection comprises ending garbage collection on the at least one source block with at least some valid data present in the at least one source block and the target block only partially filled based on all interfaces of the target block being closed at the boundary of independent physical layers and the target block being configured to store multiple bits per cell; and
the program instructions, when executed, cause the controller to perform:
based on the target block being configured to store a single bit per cell, ending garbage collection on the at least one source block when all valid data in the at least one source block has been copied to the target block.

### Claim 16 (depends on 12)

The program product of claim 12, wherein the program instructions, when executed, cause the controller to perform:
initiating garbage collection on the at least one source block only based on the at least one source block including sufficient valid to close all interfaces of the target block at the boundary of the independent physical layers.
