# US 2021/0334029 A1 · Data storage apparatus and operation 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/0334029 A1
- Document ID: US20210334029A1
- Status: Published application
- Kind: A1
- Application number: 17/070,730
- Filed: 2020-10-14
- Published: 2021-10-28
- Earliest claimed: 2020-04-27
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Yong JIN; Kwang Jin KO; Jun Hee RYU; Woo Suk CHUNG
- Web page: https://patentgrep.com/patent/US20210334029A1

## CPC

- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0673: {Single storage device}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data storage apparatus may include a storage including a first region and second region, each region includes a plurality of memory blocks, and a controller configured to exchange data with the storage at a request of a host. The controller may include a data classification component configured to classify attributes of data stored in the storage as hot data or cold data based on continuity of the data, and configured to move the hot data to the first region and the cold data to the second region respectively by a background operation.

## Claims

### Claim 1

A data storage apparatus comprising:
a storage including a first region and second region, each region including a plurality of memory blocks; and
a controller configured to exchange data with the storage,
wherein the controller comprises:
a data classification component configured to classify attributes of data stored in the storage as hot data or cold data based on continuity of the data, and configured to move the hot data to the first region and the cold data to the second region respectively by a background operation.

### Claim 2 (depends on 1)

The data storage apparatus according to claim 1, wherein the controller is configured to determine the continuity based on at least one of a distribution of logical addresses of valid data included in a victim block to be moved, sizes of data chunks, and a distribution of the sizes of the data chunks.

### Claim 3 (depends on 1)

The data storage apparatus according to claim 1, wherein the controller is configured to classify attributes of data stored in the storage further based on a cause of the data movement, and to classify the attributes in units of all valid data included in a victim block to be moved, or to classify the attributes in units of individual data in the victim block.

### Claim 4 (depends on 1)

The data storage apparatus according to claim 1, wherein the controller is configured to extract a logical address of each valid data included in a victim block to be moved, and to determine all data in the victim block as cold data according to a determination that a difference between a maximum value and a minimum value of the extracted logical addresses is equal to or less than a first threshold value.

### Claim 5 (depends on 1)

The data storage apparatus according to claim 1, wherein the controller is configured to extract the logical address of each valid data included in a victim block to be moved, and to determine all the data in the victim block as cold data according to a determination that a distribution of the extracted logical addresses is equal to or less than a second threshold value.

### Claim 6 (depends on 1)

The data storage apparatus according to claim 1, wherein the controller is configured to determine all the data in a victim block as cold data according to a determination that a size of each valid data chunk included in the victim block to be moved is equal to or more than a third threshold value.

### Claim 7 (depends on 1)

The data storage apparatus according to claim 1, wherein the controller is configured to calculate a size of each valid data chunk included in a victim block to be moved, and to determine data, in which the size of each chunk is equal to or more than the third threshold value, as cold data according to a determination that a distribution of the sizes of the data chunks is smaller than a fourth threshold value.

### Claim 8 (depends on 1)

The data storage apparatus according to claim 1, wherein the controller further comprises:
a bloom filter configured to register a logical address of the data classified as cold data.

### Claim 9 (depends on 8)

The data storage apparatus according to claim 8, wherein a first region and second region are configured as physically separated regions, and
the controller is configured to store the write-requested data in the second region according to a determination that a logical address of data write-requested by the host is registered in the bloom filter.

### Claim 10 (depends on 8)

The data storage apparatus according to claim 8, further comprising:
a buffer memory configured to temporarily store data read from the storage,
wherein the controller is configured to prefetch data read from the second region, and data which corresponds to a logical address subsequent to the read-requested logical address, in the buffer memory according to a determination that a logical address of data read-requested by the host is registered in the bloom filter.

### Claim 11

A method of operating a data storage apparatus including a storage having a first region and second region, each region including a plurality of memory blocks and a controller configured to exchange data with the storage, the method comprising:
a step in which the controller selects a victim block which has data to be moved in the storage;
a step in which the controller determines continuity of the data to be moved;
a step in which the controller classifies attributes of the data to be moved as hot data or cold data based on the cause of the data movement and the continuity; and
a step of moving the hot data to the first region and the cold data to the second region respectively by a background operation.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the step of determining the continuity comprises:
determining the continuity based on at least one of a distribution of logical addresses of valid data included in the victim block, sizes of data chunks, and a distribution of the sizes of the data chunks.

### Claim 13 (depends on 11)

The method according to claim 11, further comprising a step of determining a cause of data movement;
wherein the step of classifying the attributes comprises:
classifying the attributes in units of all valid data included in the victim block, or classifying the attributes in units of individual data in the victim block.

### Claim 14 (depends on 11)

The method according to claim 11, wherein the step of classifying the attributes comprises:
extracting a logical address of each valid data included in the victim block; and
determining all data in the victim block as cold data according to a determination that a difference between a maximum value and a minimum value of the extracted logical addresses is equal to or less than a first threshold value.

### Claim 15 (depends on 11)

The method according to claim 11, wherein the step of classifying the attributes comprises:
extracting the logical address of each valid data included in the victim block; and
determining all the data in the victim block as cold data according to a determination that a distribution of the logical addresses is equal to or less than a second threshold value.

### Claim 16 (depends on 11)

The method according to claim 11, wherein the step of classifying the attributes comprises:
determining all the data in the victim block as cold data according to a determination that a size of each valid data chunk included in the victim block is equal to or more than a third threshold value.

### Claim 17 (depends on 11)

The method according to claim 11, wherein the step of classifying the attributes comprises:
calculating a size of each valid data chunk included in the victim block; and
determining data, in which the size of each chunk is equal to or more than the third threshold value, as cold data according to a determination that a distribution of the sizes of the data chunks is smaller than a fourth threshold value.

### Claim 18 (depends on 11)

The method according to claim 11, further comprising a step of:
registering a logical address of the data classified as cold data in a bloom filter.

### Claim 19 (depends on 18)

The method according to claim 18, wherein a first region and second region are configured as physically separated regions, and
wherein the operation method further comprises a step in which the controller stores the write-requested data in the second region according to a determination that a logical address of data write-requested by the host is registered in the bloom filter.

### Claim 20 (depends on 18)

The method according to claim 18, wherein the data storage apparatus further comprises:
a buffer memory configured to temporarily store data read from the storage, and
the operation method further comprises a step in which the controller prefetches data read from the second region and data, which corresponds to a logical address subsequent to the read-requested logical address, in the buffer memory according to a determination that a logical address of data read-requested by the host is registered in the bloom filter.
