# US 2022/0283720 A1 · Storage controller redirecting write operation 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 2022/0283720 A1
- Document ID: US20220283720A1
- Status: Published application
- Kind: A1
- Application number: 17/526,243
- Filed: 2021-11-15
- Published: 2022-09-08
- Earliest claimed: 2021-03-02
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Minji KIM; Sangwon JUNG
- Web page: https://patentgrep.com/patent/US20220283720A1

## CPC

- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 3/0617: {in relation to availability}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- 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 2212/1044: Space efficiency improvement
- G06F 2212/7202: Allocation control and policies
- G06F 2212/7207: management of metadata or control data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is an operating method of a storage controller communicating with a host and memory regions, which includes receiving a write request for a first memory region of the memory regions from the host, determining the first memory region as unavailable, based on a status information set, generating redirection information indicating that a second memory region of the memory regions is selected instead of the first memory region, performing a write operation in the second memory region based on the redirection information, updating status information of the second memory region in the status information set based on the write operation, outputting redirection result information indicating that write data of the write request are processed in the second memory region, to the host, and receiving a read request corresponding to the write data and including information of the second memory region from the host.

## Claims

### Claim 1

An operating method of a storage controller which communicates with a host and a plurality of flash memory regions, the method comprising:
receiving a write request for a first flash memory region of the plurality of flash memory regions from the host;
determining the first flash memory region as unavailable, based on a status information set;
generating redirection information indicating that a second flash memory region of the plurality of flash memory regions is selected instead of the first flash memory region;
performing a write operation in the second flash memory region based on the redirection information;
updating status information of the second flash memory region in the status information set based on the write operation;
outputting redirection result information indicating that write data of the write request are processed in the second flash memory region, to the host; and
receiving a read request corresponding to the write data and including information of the second flash memory region from the host.

### Claim 2 (depends on 1)

The method as claimed in claim 1, wherein the status information set includes a plurality of status information respectively corresponding to the plurality of flash memory regions, and
wherein each of the plurality of status information includes at least one of:
an average erase count of a corresponding flash memory region;
a valid page count ratio of the corresponding flash memory region;
a number of bad blocks of the corresponding flash memory region;
a write amplification factor of the corresponding flash memory region; and
a memory usage ratio of the corresponding flash memory region.

### Claim 3 (depends on 1)

The method as claimed in claim 1, wherein the determining of the first flash memory region as unavailable based on the status information set includes:
determining the first flash memory region as unavailable when a value obtained by subtracting a minimum value of a plurality of average erase counts of the plurality of flash memory regions from an average erase count of the first flash memory region is not smaller than a first threshold value.

### Claim 4 (depends on 1)

The method as claimed in claim 1, wherein the determining of the first flash memory region as unavailable based on the status information set includes:
determining the first flash memory region as unavailable when a valid page count ratio of the first flash memory region is not smaller than a maximum value of a plurality of valid page count ratios of the plurality of flash memory regions.

### Claim 5 (depends on 1)

The method as claimed in claim 1, wherein the determining of the first flash memory region as unavailable based on the status information set includes:
determining the first flash memory region as unavailable when a number of bad blocks of the first flash memory region is not smaller than a maximum value of the numbers of bad blocks of the plurality of flash memory regions.

### Claim 6 (depends on 1)

The method as claimed in claim 1, wherein the determining of the first flash memory region as unavailable based on the status information set includes:
determining the first flash memory region as unavailable when a write amplification factor of the first flash memory region is not smaller than a second threshold value.

### Claim 7 (depends on 1)

The method as claimed in claim 1, wherein the determining of the first flash memory region as unavailable based on the status information set includes:
determining the first flash memory region as unavailable when a memory usage ratio of the first flash memory region is not smaller than a third threshold value.

### Claim 8 (depends on 1)

The method as claimed in claim 1, wherein the redirection result information includes at least one of:
a logical block address corresponding to a redirected flash memory region of the plurality of flash memory regions;
information of a flash memory region corresponding to the write request;
information of the redirected flash memory region;
a reason for being redirected; and
the status information set.

### Claim 9 (depends on 1)

The method as claimed in claim 1, wherein the generating of the redirection information indicating that the second flash memory region of the plurality of flash memory regions is selected instead of the first flash memory region includes:
determining that the second flash memory region satisfies available memory conditions, based on the status information set; and
selecting the second flash memory region satisfying the available memory conditions and generating the redirection information, and
wherein the available memory conditions include at least one of:
a condition where a value obtained by subtracting a minimum value of a plurality of average erase counts of the plurality of flash memory regions from an average erase count of the second flash memory region is smaller than a first threshold value;
a condition where a valid page count ratio of the second flash memory region is smaller than a maximum value of a plurality of valid page count ratios of the plurality of flash memory regions;
a condition where a number of bad blocks of the second flash memory region is smaller than a maximum value of the numbers of bad blocks of the plurality of flash memory regions;
a condition where a write amplification factor of the second flash memory region is smaller than a second threshold value; and
a condition where a memory usage ratio of the second flash memory region is smaller than a third threshold value.

### Claim 10 (depends on 1)

The method as claimed in claim 1, wherein the plurality of flash memory regions respectively correspond to a plurality of flash memory chips in one storage device, or respectively correspond to a plurality of flash memory blocks in one memory chip.

### Claim 11

An operating method of a storage controller which communicates with a host and a plurality of flash memory regions, the method comprising:
monitoring the plurality of flash memory regions;
updating a status information set based on the monitoring, wherein the status information set includes a plurality of status information respectively corresponding to the plurality of flash memory regions;
determining whether the plurality of flash memory regions are available, based on the updated status information set;
generating monitoring information indicating that a first flash memory region of the plurality of flash memory regions is unavailable, based on a result of the determination; and
outputting the monitoring information to the host.

### Claim 12 (depends on 11)

The method as claimed in claim 11, wherein each of the plurality of status information includes at least one of:
an average erase count of a corresponding flash memory region;
a valid page count ratio of the corresponding flash memory region;
a number of bad blocks of the corresponding flash memory region;
a write amplification factor of the corresponding flash memory region; and
a memory usage ratio of the corresponding flash memory region.

### Claim 13 (depends on 11)

The method as claimed in claim 11, wherein the monitoring of the plurality of flash memory regions includes:
periodically determining whether each of the flash memory regions satisfies available memory conditions, every reference time,
wherein the available memory conditions include at least one of:
a condition where a value obtained by subtracting a minimum value of a plurality of average erase counts of the plurality of flash memory regions from an average erase count of a corresponding flash memory region is smaller than a first threshold value;
a condition where a valid page count ratio of the corresponding flash memory region is smaller than a maximum value of a plurality of valid page count ratios of the plurality of flash memory regions;
a condition where a number of bad blocks of the corresponding flash memory region is smaller than a maximum value of the numbers of bad blocks of the plurality of flash memory regions;
a condition where a write amplification factor of the corresponding flash memory region is smaller than a second threshold value; and
a condition where a memory usage ratio of the corresponding flash memory region is smaller than a third threshold value.

### Claim 14 (depends on 11)

The method as claimed in claim 11, wherein the monitoring information includes at least one of:
information of an unavailable flash memory region of the plurality of flash memory regions;
a reason why the unavailable flash memory region is unavailable;
information of an available flash memory region of the plurality of flash memory regions; and
the updated status information set.

### Claim 15 (depends on 11)

The method as claimed in claim 11, further comprising:
receiving a write request for a second flash memory region of the plurality of flash memory regions from the host, after outputting the monitoring information to the host,
wherein the monitoring information includes information indicating that the second flash memory region satisfies available memory conditions.

### Claim 16 (depends on 15)

The method as claimed in claim 15, further comprising:
performing a write operation in the second flash memory region based on the write request; and
updating status information of the second flash memory region in the status information set based on the write operation.

### Claim 17 (depends on 16)

The method as claimed in claim 16, further comprising:
receiving a read request corresponding to the write operation and including information of the second flash memory region from the host.

### Claim 18

A storage controller, comprising:
a status checker configured to generate a status information set corresponding to a plurality of flash memory regions including a first flash memory region and a second flash memory region, to determine that the first flash memory region does not satisfy available memory conditions based on the status information set, and to determine that the second flash memory region satisfies the available memory conditions based on the status information set; and
an interface circuit configured to output, to a host, first information indicating that the first flash memory region does not satisfy the available memory conditions and second information indicating that the second flash memory region satisfies the available memory conditions,
wherein the available memory conditions include at least one of:
a condition where a value obtained by subtracting a minimum value of a plurality of average erase counts of the plurality of flash memory regions from an average erase count of a corresponding flash memory region is smaller than a first threshold value;
a condition where a valid page count ratio of the corresponding flash memory region is smaller than a maximum value of a plurality of valid page count ratios of the plurality of flash memory regions;
a condition where a number of bad blocks of the corresponding flash memory region is smaller than a maximum value of the numbers of bad blocks of the plurality of flash memory regions;
a condition where a write amplification factor of the corresponding flash memory region is smaller than a second threshold value; and
a condition where a memory usage ratio of the corresponding flash memory region is smaller than a third threshold value.

### Claim 19 (depends on 18)

The storage controller as claimed in claim 18, further comprising:
a redirection device configured to communicate with the status checker, to redirect a write request for the first flash memory region to the second flash memory region, and to output redirection result information to the host through the interface circuit,
wherein the redirection result information includes at least one of:
a logical block address corresponding to the second flash memory region redirected from among the plurality of flash memory regions;
information of the first flash memory region corresponding to the write request;
information of the redirected second flash memory region;
a reason for being redirected; and
the status information set.

### Claim 20 (depends on 18)

The storage controller as claimed in claim 18, further comprising:
a monitoring device configured to communicate with the status checker, to periodically monitor each of the plurality of flash memory regions every reference time, and to update the status information set of the status checker,
wherein the status checker is further configured to output monitoring information to the host through the interface circuit based on the updated status information set, and
wherein the monitoring information includes at least one of:
information of the first flash memory region unavailable from among the plurality of flash memory regions;
a reason why the first flash memory region is unavailable;
information of the second flash memory region available from among the plurality of flash memory regions; and
the updated status information set.
