# US 2021/0286721 A1 · Controller and operating method thereof

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

- Number: US 2021/0286721 A1
- Document ID: US20210286721A1
- Status: Published application
- Kind: A1
- Application number: 17/337,907
- Filed: 2021-06-03
- Published: 2021-09-16
- Earliest claimed: 2018-12-14
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Se Hyun KIM; Hui Jae YU
- Web page: https://patentgrep.com/patent/US20210286721A1

## CPC

- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 12/0261: {using reference counting}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F 2212/7209: Validity control, e.g. using flags, time stamps or sequence numbers
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A controller controls an operation of a semiconductor memory device. The controller includes a request analyzer, a storage, and a garbage collection controller. The request analyzer generates invalid data information, based on an erase request received from a host. The storage stores a garbage collection reference table representing memory blocks excluded from selection as a victim block on which a garbage collection operation is to be performed, based on the invalid data information. The garbage collection controller controls the garbage collection operation on the semiconductor memory device, based on exclusion block information generated according to the garbage collection reference table.

## Claims

### Claim 1

A controller for controlling an operation of a semiconductor memory device, the controller comprising:
a storage configured to store a reference table representing memory blocks excluded from selection as a victim block on which a garbage collection operation is to be performed, based on an erase request from a host; and
a garbage collection controller configured to control the garbage collection operation on the semiconductor memory device, based on exclusion block information generated according to the reference table,
wherein the storage checks a size of data corresponding to the erase request, and determines that a memory block in which the data is stored is to be excluded from the selection as the victim block, when the size of the data is greater than a reference value.

### Claim 2 (depends on 1)

The controller of claim 1, wherein the storage updates the reference table such that the memory block is included in the reference table.

### Claim 3 (depends on 1)

The controller of claim 1, wherein the garbage collection controller is configured to:
when the garbage collection operation is started, check a size of each invalid page in memory blocks included in the semiconductor memory device; and
determine, as the victim block, a memory block that is not registered in the reference table, among memory blocks having an invalid page size greater than a threshold value, based on the exclusion block information.

### Claim 4 (depends on 1)

The controller of claim 1, further comprising a command generator configured to generate commands for controlling an operation of the semiconductor memory device.

### Claim 5 (depends on 1)

The controller of claim 1, further comprising a request analyzer circuit configured to generate invalid data information, based on the erase request from the host.

### Claim 6 (depends on 5)

The controller of claim 5, wherein the storage is configured to:
receive the invalid data information from the request analyzer circuit;
check the size of the data based on the invalid data information; and
determine, in response to the determination that size of the data is greater than the reference value, that the memory block in which the data corresponding to the erase request is stored is to be excluded from the selection as the victim block.

### Claim 7

A method for operating a controller for controlling an operation of a semiconductor memory device, the method comprising:
determining victim blocks on which a garbage collection operation is to be performed, based on a reference table representing memory blocks excluded from selection as a victim block on which a garbage collection operation is to be performed;
copying data of valid pages included in the victim blocks to a free block; and
invalidating the valid pages included in the victim blocks,
wherein the reference table is updated by:
checking a size of the data corresponding to an erase request from a host;
comparing the size of the data with a reference value; and
registering the memory block storing the data corresponding to the erase request in the reference table, based on the comparison result.

### Claim 8 (depends on 7)

The method of claim 7, wherein the determining of the victim blocks on which the garbage collection operation is to be performed, based on the reference table, includes:
checking a size of each invalid page included in memory blocks;
identifying memory blocks each having an invalid page size greater than a threshold value among the memory blocks; and
determining, as a victim block, at least one of the memory blocks not registered in the reference table among the checked memory blocks.

### Claim 9

A controller for controller an operation of a semiconductor memory device, the controller comprising:
a storage configured to store a reference table representing memory blocks excluded from selection as a victim block on which a garbage collection operation is to be performed, based on an erase request received from the outside of the controller; and
a garbage collection controller configured to control the garbage collection operation on the semiconductor memory device, based on the reference table,
wherein the storage updates the reference table by:
checking a size of the data corresponding to the erase request;
comparing the size of the data with a reference value; and
registering the memory block storing the data corresponding to the erase request in the reference table, based on the comparison result.

### Claim 10 (depends on 9)

The controller of claim 9, wherein the garbage collection controller is configured to control the garbage collection operation on the semiconductor memory device by:
determining victim blocks on which a garbage collection operation is to be performed, based on the reference table;
copying data of valid pages included in the victim blocks to a free block; and
invalidating the valid pages included in the victim blocks.

### Claim 11 (depends on 10)

The controller of claim 10, wherein the garbage collection controller is configured to determines the victim blocks on which a garbage collection operation is to be performed by:
checking a size of each invalid page included in memory blocks;
identifying memory blocks each having an invalid page size greater than a threshold value among the memory blocks; and
determining, as a victim block, at least one of the memory blocks not registered in the reference table among the checked memory blocks.

### Claim 12

A memory system comprising:
a semiconductor memory device having a plurality of memory blocks, each of the memory block having a plurality of memory cells; and
a controller for controlling an operation of the semiconductor memory device,
wherein the controller is configured to:
store a reference table representing memory blocks, among the plurality of memory blocks of the semiconductor memory device, excluded from selection as a victim block on which a garbage collection operation is to be performed, based on an erase request received from the outside of the memory system; and
control the garbage collection operation on the semiconductor memory device, based on the reference table, and
wherein the controller checks a size of data corresponding to the erase request, and determines that a memory block in which the data is stored is to be excluded from the selection as the victim block, when the size of the data is greater than a reference value.

### Claim 13 (depends on 12)

The memory system of claim 12, wherein the controller updates the reference table such that the memory block is included in the reference table.

### Claim 14 (depends on 12)

The memory system of claim 12, wherein the controller is configured to:
when the garbage collection operation is started, checks a size of each invalid page in memory blocks included in the semiconductor memory device; and
determines, as the victim block, a memory block that is not registered in the reference table, among memory blocks having an invalid page size greater than a threshold value.

### Claim 15 (depends on 12)

The memory system of claim 12, wherein the controller is configured to generate commands for controlling an operation of the semiconductor memory device.

### Claim 16 (depends on 15)

The memory system of claim 15, wherein the controller is configured to:
generate garbage collection information including information on selected victim blocks, and
generate a command for performing the garbage collection operation, based on the garbage collection information, and transfers the generated command to the semiconductor memory device.

### Claim 17

A controller for controlling an operation of a semiconductor memory device, the controller comprising:
a storage configured to store a reference table representing memory blocks to be excluded from selection as a victim block of a garbage collection operation, based on an erase request from a host; and
a garbage collection controller configured to control the garbage collection operation on the semiconductor memory device, based on exclusion block information generated according to the reference table,
wherein the storage checks a size of data corresponding to the erase request, and determines that a memory block in which the data is stored is to be excluded from the selection as the victim block, when the size of the data is greater than a reference value.

### Claim 18

A memory system comprising:
a semiconductor memory device having a plurality of memory blocks, each of the memory block having a plurality of memory cells; and
a controller for controlling an operation of the semiconductor memory device,
wherein the controller is configured to:
store a reference table representing memory blocks, among the plurality of memory blocks of the semiconductor memory device, to be excluded from selection as a victim block on which a garbage collection operation, based on an erase request received from the outside of the memory system; and
control the garbage collection operation on the semiconductor memory device, based on the reference table, and
wherein the controller checks a size of data corresponding to the erase request, and determines that a memory block in which the data is stored is to be excluded from the selection as the victim block, when the size of the data is greater than a reference value.
