# US 10,956,074 B2 · Data storage method, memory storage device and memory control circuit unit

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

- Number: US 10,956,074 B2
- Document ID: US10956074B2
- Status: Granted
- Kind: B2
- Application number: 15/798,370
- Filed: 2017-10-30
- Published: 2019-02-28
- Granted: 2021-03-23
- Earliest claimed: 2017-08-30
- Assignees: Phison Electronics Corp.
- Applicants: Phison Electronics Corp.
- Inventors: Shao-Hsien Liu; Chien-Han Kuo
- Web page: https://patentgrep.com/patent/US10956074B2

## CPC

- G06F 3/0647: {Migration mechanisms}
- G06F 3/0611: {in relation to response time}
- G06F 3/0656: {Data buffering arrangements}
- 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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data storage method is provided according to an exemplary embodiment of the disclosure. The method is configured for a rewritable non-volatile memory module. The method includes: performing a data merge operation; adjusting a data receiving amount per unit time for receiving to-be-written data from a host system according to a data storage state of the rewritable non-volatile memory module; storing the received to-be-written data into a buffer memory during the data merge operation being performed; and storing the data stored in the buffer memory into the rewritable non-volatile memory module.

## Claims

### Claim 1

A data storage method configured for a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical units, and the data storage method comprises:
performing a data merge operation;
obtaining information which reflects a distribution state of valid data stored in at least one physical unit among the physical units;
obtaining a physical unit release rate of the data merge operation according to the information which reflects the distribution state of the valid data stored in the at least one physical unit, wherein the physical unit release rate reflects that one spare physical unit can be released each time N physical units are fully written by valid data collected by the data merge operation, wherein N is a positive integer;
determining a data receiving amount per unit time for receiving to-be-written data from a host system according to the physical unit release rate, wherein the step of determining the data receiving amount per unit time for receiving the to-be-written data from the host system according to the physical unit release rate comprises: adjusting a to-be-written data transmission parameter, wherein the to-be-written data transmission parameter reflects the data receiving amount per unit time,
wherein the to-be-written data transmission parameter comprises an event execution time parameter, an event state reply time parameter, or a frequency limitation parameter;
storing the to-be-written data into a buffer memory during the data merge operation being performed; and
storing the to-be-written data stored in the buffer memory into the rewritable non-volatile memory module.

### Claim 2 (depends on 1)

The data storage method as claimed in claim 1, wherein the step of determining the data receiving amount per unit time for receiving the to-be-written data from the host system according to the information which reflects the distribution state of the valid data stored in the at least one physical unit comprises:
evaluating a release action of a spare physical unit corresponding to the data merge operation; and
determining the data receiving amount per unit time according to the evaluated release action.

### Claim 3 (depends on 2)

The data storage method as claimed in claim 2, wherein the step of evaluating the release action of the spare physical unit corresponding to the data merge operation comprises:
obtaining a valid count of a non-spare physical unit among the physical units, wherein the valid count corresponds to a data amount of valid data stored in the non-spare physical unit; and
evaluating the release action according to the valid count.

### Claim 4 (depends on 2)

The data storage method as claimed in claim 2, wherein the step of determining the data receiving amount per unit time according to the evaluated release action of the spare physical unit comprises:
determining the data receiving amount per unit time according to a data writing speed of the data merge operation and the evaluated release action.

### Claim 5 (depends on 2)

The data storage method as claimed in claim 2, wherein the determined data receiving amount per unit time is positively related to a release rate of the spare physical unit corresponding to the evaluated release action.

### Claim 6 (depends on 1)

The data storage method as claimed in claim 1, further comprising:
maintaining a data receiving speed for receiving the to-be-written data from the host system to be identical to a determined data receiving amount per unit time.

### Claim 7 (depends on 6)

The data storage method as claimed in claim 6, wherein the step of maintaining the data receiving speed for receiving the to-be-written data from the host system to be identical to the determined data receiving amount per unit time comprises:
increasing the data receiving speed to be equal to the determined data receiving amount per unit time if a current data receiving speed for receiving the to-be-written data from the host system is less than the determined data receiving amount per unit time; and
decreasing the data receiving speed to be equal to the determined data receiving amount per unit time if the current data receiving speed is greater than the determined data receiving amount per unit time.

### Claim 8 (depends on 1)

The data storage method as claimed in claim 1, further comprising:
not limiting a data writing speed of the data merge operation.

### Claim 9 (depends on 1)

The data storage method as claimed in claim 1,
wherein the to-be-written data transmission parameter further comprises a bandwidth limitation parameter.

### Claim 10 (depends on 1)

The data storage method as claimed in claim 1, wherein the data receiving amount per unit time for receiving the to-be-written data from the host system during a period of performing the data merge operation is lower than a data receiving amount per unit time for receiving another to-be-written data from the host system during a period of not performing the data merge operation.

### Claim 11 (depends on 1)

The data storage method as claimed in claim 1, wherein the determined data receiving amount per unit time is negatively related to a time required for execution of a release action of a spare physical unit corresponding to the data merge operation.

### Claim 12

A memory storage device, comprising:
a connection interface unit configured to be coupled to a host system;
a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical units; and
a memory control circuit unit coupled to the connection interface unit and the rewritable non-volatile memory module,
wherein the memory control circuit unit is configured to instruct the rewritable non-volatile memory module to perform a data merge operation,
wherein the memory control circuit unit is further configured to obtain information which reflects a distribution state of valid data stored in at least one physical unit among the physical units,
wherein the memory control circuit unit is further configured to obtain a physical unit release rate of the data merge operation according to the information which reflects the distribution state of the valid data stored in the at least one physical unit, wherein the physical unit release rate reflects that one spare physical unit can be released each time N physical units are fully written by valid data collected by the data merge operation, wherein N is a positive integer,
wherein the memory control circuit unit is further configured to determine a data receiving amount per unit time for receiving to-be-written data from the host system according to the physical unit release rate, wherein the operation of determining the data receiving amount per unit time for receiving the to-be-written data from the host system according to the physical unit release rate comprises:
adjusting a to-be-written data transmission parameter, wherein the to-be-written data transmission parameter reflects the data receiving amount per unit time,
wherein the to-be-written data transmission parameter comprises an event execution time parameter, an event state reply time parameter, or a frequency limitation parameter,
wherein the memory control circuit unit is further configured to store the to-be-written data into a buffer memory during the data merge operation being performed,
wherein the memory control circuit unit is further configured to instruct to store the to-be-written data stored in the buffer memory into the rewritable non-volatile memory module.

### Claim 13 (depends on 12)

The memory storage device as claimed in claim 12, wherein the operation of determining the data receiving amount per unit time for receiving the to-be-written data from the host system according to the information which reflects the distribution state of the valid data stored in the at least one physical unit comprises:
evaluating a release action of a spare physical unit corresponding to the data merge operation; and
determining the data receiving amount per unit time according to the evaluated release action.

### Claim 14 (depends on 13)

The memory storage device as claimed in claim 13, wherein the operation of the memory control circuit unit to evaluate the release action of the spare physical unit corresponding to the data merge operation comprises:
obtaining a valid count of a non-spare physical unit among the physical units, wherein the valid count corresponds to a data amount of valid data stored in the non-spare physical unit; and
evaluating the release action according to the valid count.

### Claim 15 (depends on 13)

The memory storage device as claimed in claim 13, wherein the operation of the memory control circuit unit to determine the data receiving amount per unit time according to the evaluated release action comprises:
determining the data receiving amount per unit time according to a data writing speed of the data merge operation and the evaluated release action.

### Claim 16 (depends on 13)

The memory storage device as claimed in claim 13, wherein the determined data receiving amount per unit time is positively related to a release rate of the spare physical unit corresponding to the evaluated release action.

### Claim 17 (depends on 12)

The memory storage device as claimed in claim 12, wherein the memory control circuit unit is further configured to maintain a data receiving speed for receiving the to-be-written data from the host system to be identical to a determined data receiving amount per unit time.

### Claim 18 (depends on 17)

The memory storage device as claimed in claim 17, wherein the operation of the memory control circuit unit to maintain the data receiving speed for receiving the to-be-written data from the host system to be identical to the determined data receiving amount per unit time comprises:
increasing the data receiving speed to be equal to the determined data receiving amount per unit time if a current data receiving speed for receiving the to-be-written data from the host system is less than the determined data receiving amount per unit time; and
decreasing the data receiving speed to be equal to the determined data receiving amount per unit time if the current data receiving speed is greater than the determined data receiving amount per unit time.

### Claim 19 (depends on 12)

The memory storage device as claimed in claim 12, wherein the memory control circuit unit is further configured not to limit a data writing speed of the data merge operation.

### Claim 20 (depends on 12)

The memory storage device as claimed in claim 12,
wherein the to-be-written data transmission parameter further comprises a bandwidth limitation parameter.

### Claim 21 (depends on 12)

The memory storage device as claimed in claim 12, wherein the data receiving amount per unit time for receiving the to-be-written data from the host system during a period of performing the data merge operation is lower than a data receiving amount per unit time for receiving another to-be-written data from the host system during a period of not performing the data merge operation.

### Claim 22 (depends on 12)

The memory storage device as claimed in claim 12, wherein the determined data receiving amount per unit time is negatively related to a time required for execution of a release action of a spare physical unit corresponding to the data merge operation.

### Claim 23

A memory control circuit unit configured to control a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical units, wherein the memory control circuit unit comprises;
a host interface configured to be coupled to a host system;
a memory interface configured to be coupled to the rewritable non-volatile memory module;
a buffer memory; and
a memory management circuit coupled to the host interface, the memory interface, and the buffer memory,
wherein the memory management circuit is configured to instruct the rewritable non-volatile memory module to perform a data merge operation,
wherein the memory management circuit is further configured to obtain information which reflects a distribution state of valid data stored in at least one physical unit among the physical units,
wherein the memory management circuit is further configured to obtain a physical unit release rate of the data merge operation according to the information which reflects the distribution state of the valid data stored in the at least one physical unit, wherein the physical unit release rate reflects that one spare physical unit can be released each time N physical units are fully written by valid data collected by the data merge operation, wherein N is a positive integer,
wherein the memory management circuit is further configured to determine a data receiving amount per unit time for receiving to-be-written data from the host system according to the physical unit release rate, wherein the operation of determining the data receiving amount per unit time for receiving the to-be-written data from the host system according to the physical unit release rate comprises:
adjusting a to-be-written data transmission parameter, wherein the to-be-written data transmission parameter reflects the data receiving amount per unit time,
wherein the to-be-written data transmission parameter comprises an event execution time parameter, an event state reply time parameter, or a frequency limitation parameter,
wherein the memory management circuit is further configured to store the to-be-written data into the buffer memory during the data merge operation being performed,
wherein the memory management circuit is further configured to instruct to store the to-be-written data stored in the buffer memory into the rewritable non-volatile memory module.

### Claim 24 (depends on 23)

The memory control circuit unit as claimed in claim 23, wherein the operation of determining the data receiving amount per unit time for receiving the to-be-written data from the host system according to the information which reflects the distribution state of the valid data stored in the at least one physical unit comprises:
evaluating a release action of a spare physical unit corresponding to the data merge operation; and
determining the data receiving amount per unit time according to the evaluated release action.

### Claim 25 (depends on 24)

The memory control circuit unit as claimed in claim 24, wherein the operation of the memory management circuit to evaluate the release action of the spare physical unit corresponding to the data merge operation comprises:
obtaining a valid count of a non-spare physical unit among the physical units, wherein the valid count corresponds to a data amount of valid data stored in the non-spare physical unit; and
evaluating the release action according to the valid count.

### Claim 26 (depends on 24)

The memory control circuit unit as claimed in claim 24, wherein the operation of the memory management circuit to determine the data receiving amount per unit time according to the evaluated release action comprises:
determining the data receiving amount per unit time according to a data writing speed of the data merge operation and the evaluated release action.

### Claim 27 (depends on 24)

The memory control circuit unit as claimed in claim 24, wherein the determined data receiving amount per unit time is positively related to a release rate of the spare physical unit corresponding to the evaluated release action.

### Claim 28 (depends on 23)

The memory control circuit unit as claimed in claim 23, wherein the memory management circuit is further configured to maintain a data receiving speed for receiving the to-be-written data from the host system to be identical to a determined data receiving amount per unit time.

### Claim 29 (depends on 28)

The memory control circuit unit as claimed in claim 28, wherein the operation of the memory management circuit to maintain the data receiving speed for receiving the to-be-written data from the host system to be identical to the determined data receiving amount per unit time comprises:
increasing the data receiving speed to be equal to the determined data receiving amount per unit time if a current data receiving speed for receiving the to-be-written data from the host system is less than the determined data receiving amount per unit time; and
decreasing the data receiving speed to be equal to the determined data receiving amount per unit time if the current data receiving speed is greater than the determined data receiving amount per unit time.

### Claim 30 (depends on 23)

The memory control circuit unit as claimed in claim 23, wherein the memory management circuit is further configured not to limit a data writing speed of the data merge operation.

### Claim 31 (depends on 23)

The memory control circuit unit as claimed in claim 23,
wherein the to-be-written data transmission parameter further comprises a bandwidth limitation parameter.

### Claim 32 (depends on 23)

The memory control circuit unit as claimed in claim 23, wherein the data receiving amount per unit time for receiving the to-be-written data from the host system during a period of performing the data merge operation is lower than a data receiving amount per unit time for receiving another to-be-written data from the host system during a period of not performing the data merge operation.

### Claim 33 (depends on 23)

The memory control circuit unit as claimed in claim 23, wherein the determined data receiving amount per unit time is negatively related to a time required for execution of a release action of a spare physical unit corresponding to the data merge operation.
