# US 2021/0278990 A1 · Apparatus and method for performing garbage collection in a memory system

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

- Number: US 2021/0278990 A1
- Document ID: US20210278990A1
- Status: Published application
- Kind: A1
- Application number: 16/995,295
- Filed: 2020-08-17
- Published: 2021-09-09
- Earliest claimed: 2020-03-03
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Hyoung Pil CHOI
- Web page: https://patentgrep.com/patent/US20210278990A1

## CPC

- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0673: {Single storage device}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory system includes a memory device and a controller. The memory device includes a plurality of memory blocks, wherein the plurality of memory blocks includes one or more first memory blocks, each storing at least invalid data and one or more second memory blocks, each of which is blank. The controller is configured to determine a time or a period for performing garbage collection to secure an additional second memory block based at least on a transition speed representing a speed in which the second memory blocks is converted to the first memory blocks, the transition speed being determined based on a change between a first count of the first memory blocks and a second count of the second memory blocks.

## Claims

### Claim 1

A memory system, comprising:
a memory device including a plurality of memory blocks, wherein the plurality of memory blocks includes one or more first memory blocks, each storing at least invalid data and one or more second memory blocks, each of which is blank; and
a controller configured to determine a time or a period for performing garbage collection to secure an additional second memory block based at least on a transition speed representing a speed in which the second memory blocks is converted to the first memory blocks, the transition speed being determined based on a change between a first count of the first memory blocks and a second count of the second memory blocks.

### Claim 2 (depends on 1)

The memory system according to claim 1,
wherein the controller is further configured to determine an operation mode based on the first count, and
wherein the controller is configured to determine the time or period for performing the garbage collection, based on the speed, when the operation mode is determined as a second mode.

### Claim 3 (depends on 2)

The memory system according to claim 2,
wherein the controller is configured to determine the operation mode as the second mode when the first count is greater than or equal to a threshold; and
wherein the controller is configured to determine the operation mode as a first mode when the first count is less than the threshold.

### Claim 4 (depends on 3)

The memory system according to claim 3, wherein the controller is configured to determine the time or period for performing the garbage collection based on a difference between the threshold and a minimum requirement regarding the second memory blocks.

### Claim 5 (depends on 2)

The memory system according to claim 2, wherein the controller is configured to determine the time or period for performing the garbage collection based on a set ratio of resources employed by the controller, when the operation mode is a first mode.

### Claim 6 (depends on 5)

The memory system according to claim 5, wherein the controller is further configured to determine, in the first mode, whether to perform the garbage collection based on a count of memory blocks, each of which has a ratio of valid pages less than a set reference among the first memory blocks.

### Claim 7 (depends on 5)

The memory system according to claim 5, wherein the set ratio of resources is determined based on a ratio between a first estimate of time to perform an operation by the controller in response to a request input from an external device and a second estimate time to perform the garbage collection.

### Claim 8 (depends on 2)

The memory system according to claim 2, wherein the controller is configured to determine the time or period for performing the garbage collection to make a speed of securing the additional second memory block slower than the transition speed, in the second mode, when the second count is larger than a minimum requirement regarding the second memory blocks.

### Claim 9 (depends on 2)

The memory system according to claim 2, wherein the controller is configured to determine the time or period for performing the garbage collection to make a speed of securing the additional second memory block faster than the transition speed, when the second count is less than a minimum requirement regarding the second memory blocks.

### Claim 10 (depends on 2)

The memory system according to claim 2, wherein the controller is configured to determine the time or period for performing the garbage collection to substantially match a speed of securing the additional second memory block with the transition speed, in the second mode, when the second count is equal to a minimum requirement regarding the second memory blocks.

### Claim 11

A method for operating a memory system, comprising:
checking a first count of one or more first memory blocks and a second count of one or more second memory blocks of a plurality of memory blocks in a memory device, wherein each of the first memory blocks stores at least invalid data and each of the second memory blocks is blank;
checking a transition speed representing a speed in which the second memory blocks is converted to the first memory blocks, the transition speed being determined based on a change between the first count and the second count; and
determining a time or period for performing garbage collection to secure an additional second memory block based at least on the transition speed.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising: determining an operation mode based on the first count,
wherein the time or period for performing the garbage collection is determined based on the speed when the operation mode is determined as a second mode.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the determining the operation mode includes:
determining the operation mode as the second mode when the first count is greater than or equal to a threshold; and
determining the operation mode as a first mode when the first count is less than the threshold.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the time or period for performing the garbage collection is determined based on a difference between the threshold and a minimum requirement regarding the second memory blocks.

### Claim 15 (depends on 12)

The method according to claim 12, wherein the time or period for performing the garbage collection is determined based on a set ratio of resources employed by the controller, when the operation mode is a first mode.

### Claim 16 (depends on 15)

The method according to claim 15, further comprising determining, in the first mode, whether to perform the garbage collection based on a count of memory blocks, each of which has a ratio of valid pages less than a set reference among the first memory blocks.

### Claim 17 (depends on 15)

The method according to claim 15, wherein the set ratio of resources is determined based on a ratio between a first estimate of time to perform an operation by the controller in response to a request input from an external device and a second estimate time to perform the garbage collection.

### Claim 18 (depends on 12)

The method according to claim 12, wherein the time or period for performing the garbage collection is determined to make a speed of securing the additional second memory block slower than the transition speed, in the second mode, when the second count is larger than a minimum requirement regarding the second memory blocks.

### Claim 19 (depends on 12)

The method according to claim 12, wherein the time or period for performing the garbage collection is determined to make a speed of securing the additional second memory block faster than the transition speed, in the second mode, when the second count is less than a minimum requirement regarding the second memory blocks.

### Claim 20 (depends on 12)

The method according to claim 12, wherein the time or period for performing the garbage collection is determined to substantially match a speed of securing the additional second memory block with the transition speed, in the second mode, when the second count is equal to a minimum requirement regarding the second memory blocks.
