# US 2019/0377514 A1 · Memory management method, memory control circuit unit and memory storage apparatus

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

- Number: US 2019/0377514 A1
- Document ID: US20190377514A1
- Status: Published application
- Kind: A1
- Application number: 16/045,754
- Filed: 2018-07-26
- Published: 2019-12-12
- Earliest claimed: 2018-06-06
- Assignees: Phison Electronics Corp.
- Applicants: Phison Electronics Corp.
- Inventors: Bo-Cheng Ko
- Web page: https://patentgrep.com/patent/US20190377514A1

## CPC

- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/064: {Management of blocks}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory management method for a rewritable non-volatile memory module, a memory control circuit unit and a memory storage apparatus are provided. The rewritable non-volatile memory module includes a plurality of super physical units, and the super physical units at least include a plurality of good super physical units and a plurality of partial good super physical units. The method includes: receiving a host write command; selecting a first super physical unit set according a number rate of the good super physical units and the partial good super physical units, and the first super physical unit set includes a plurality of first good super physical units and at least one first partial good super physical unit selected from the super physical units according to the number rate; and writing data into the good physical erasing units of the first super physical unit set, in response to the host write command.

## Claims

### Claim 1

A memory management method for a rewritable non-volatile memory module comprising a plurality of super physical units, the plurality of super physical units at least comprising a plurality of good super physical units and a plurality of partial good super physical units, wherein each of the good super physical units comprises a plurality of good physical erasing units, each of the partial good super physical units comprises at least one bad physical erasing unit, and the memory management method comprises:
receiving a host write command;
selecting a first super physical unit set from the plurality of super physical units according to a number rate of the plurality of good super physical units and the plurality of partial good super physical units in the rewritable non-volatile memory module, wherein the first super physical unit set comprises a plurality of first good super physical units and at least one first partial good super physical unit selected from the plurality of super physical units according to the number rate; and
writing data into the good physical erasing units of the first super physical unit set, in response to the host write command.

### Claim 2 (depends on 1)

The memory management method of claim 1, further comprising:
dynamically updating the number rate according to a number of the plurality of good super physical units and a number of the plurality of partial good super physical units.

### Claim 3 (depends on 1)

The memory management method of claim 1, further comprising:
selecting a second super physical unit set from remaining super physical units excluding the first super physical unit set in the rewritable non-volatile memory module according to the number rate of the good super physical units and the partial good super physical units in the rewritable non-volatile memory module, wherein the second super physical unit set comprises a plurality of second good super physical units and at least one second partial good super physical unit selected from the remaining super physical units according to the number rate; and
continuing writing the data into the good physical erasing units of the second super physical unit set.

### Claim 4 (depends on 1)

The memory management method of claim 1, further comprising:
at least dividing the plurality of super physical units into a bad super physical unit, a partial good super physical unit and a good super physical unit;
making a mark on each of the bad super physical unit, the partial good super physical unit and the good super physical unit; and
updating a super physical unit queue list.

### Claim 5 (depends on 4)

The memory management method of claim 4, further comprising:
at least dividing the plurality of super physical units into the bad super physical unit, the partial good super physical unit and the good super physical unit according to a ratio of a number of the bad physical erasing units in each of the super physical units and a total number of physical erasing units in each of the super physical units.

### Claim 6 (depends on 4)

The memory management method of claim 4, wherein the step of selecting the first super physical unit set from the plurality of super physical units according to the number rate of the plurality of good super physical units and the plurality of partial good super physical units in the rewritable non-volatile memory module comprises:
selecting the first super physical unit set according to the super physical unit queue list; and
counting a number of the plurality of first good super physical units and a number of the at least one first partial good super physical unit in the first super physical unit set.

### Claim 7

A memory control circuit unit for a rewritable non-volatile memory module comprising a plurality of super physical units, the plurality of super physical units at least comprising a plurality of good super physical units and a plurality of partial good super physical units, wherein each of the good super physical units comprises a plurality of good physical erasing units, each of the partial good super physical units comprises at least one bad physical erasing unit, and the memory control circuit unit comprises:
a host interface, configured to couple to a host system;
a memory interface, configured to couple to the rewritable non-volatile memory module; and
a memory management circuit, coupled to the host interface and the memory interface;
wherein the memory management circuit is configured to receive a host write command, and the memory management circuit is configured to select a first super physical unit set from the plurality of super physical units according to a number rate of the plurality of good super physical units and the plurality of partial good super physical units in the rewritable non-volatile memory module, wherein the first super physical unit set comprises a plurality of first good super physical units and at least one first partial good super physical unit selected from the plurality of super physical units according to the number rate,
wherein the memory management circuit is further configured to write data corresponding to the host write command into the good physical erasing units of the first super physical unit set, in response to the host write command.

### Claim 8 (depends on 7)

The memory control circuit unit of claim 7, wherein the memory management circuit is further configured to dynamically update the number rate according to a number of the plurality of good super physical units and a number of the plurality of partial good super physical units.

### Claim 9 (depends on 7)

The memory control circuit unit of claim 7, wherein
the memory management circuit is further configured to select a second super physical unit set from remaining super physical units excluding the first super physical unit set in the rewritable non-volatile memory module according to the number rate of the good super physical units and the partial good super physical units in the rewritable non-volatile memory module, wherein the second super physical unit set comprises a plurality of second good super physical units and at least one second partial good super physical unit selected from the remaining super physical units according to the number rate,
the memory management circuit is further configured to continue writing the data into the good physical erasing units of the second super physical unit set.

### Claim 10 (depends on 7)

The memory control circuit unit of claim 7, wherein
the memory management circuit is further configured to at least divide the plurality of super physical units into a bad super physical unit, a partial good super physical unit and a good super physical unit,
the memory management circuit is further configured to make a mark on each of the bad super physical unit, the partial good super physical unit and the good super physical unit, and
the memory management circuit is further configured to update a super physical unit queue list.

### Claim 11 (depends on 10)

The memory control circuit unit of claim 10, wherein
the memory management circuit is further configured to at least divide the plurality of super physical units into the bad super physical unit, the partial good super physical unit and the good super physical unit according to a ratio of a number of the bad physical erasing units in each of the super physical units and a total number of physical erasing units in each of the super physical units.

### Claim 12 (depends on 10)

The memory control circuit unit of claim 10, wherein in the operation where the memory management circuit is further configured to select the first super physical unit set from the plurality of super physical units according to the number rate of the plurality of good super physical units and the plurality of partial good super physical units in the rewritable non-volatile memory module,
the memory management circuit is further configured to select the first super physical unit set according to the super physical unit queue list, and
the memory management circuit is further configured to count a number of the plurality of first good super physical units and a number of the at least one first partial good super physical unit in the first super physical unit set.

### Claim 13

A memory storage apparatus, comprising:
a connection interface unit, configured to couple to a host system;
a rewritable non-volatile memory module, comprising a plurality of super physical units, the plurality of super physical units at least comprising a plurality of good super physical units and a plurality of partial good super physical units, wherein each of the good super physical units comprises a plurality of good physical erasing units, and each of the partial good super physical units comprises at least one bad physical erasing unit; 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 receive a host write command, and the memory control circuit unit is configured to select a first super physical unit set from the plurality of super physical units according to a number rate of the plurality of good super physical units and the plurality of partial good super physical units in the rewritable non-volatile memory module, wherein the first super physical unit set comprises a plurality of first good super physical units and at least one first partial good super physical unit selected from the plurality of super physical units according to the number rate,
wherein the memory control circuit unit is configured to write data corresponding to the host write command into the good physical erasing units of the first super physical unit set, in response to the host write command.

### Claim 14 (depends on 13)

The memory storage apparatus of claim 13, wherein the memory control circuit unit is configured to dynamically update the number rate according to a number of the plurality of good super physical units and a number of the plurality of partial good super physical units.

### Claim 15 (depends on 13)

The memory storage apparatus of claim 13, wherein
the memory control circuit unit is further configured to select a second super physical unit set from remaining super physical units excluding the first super physical unit set in the rewritable non-volatile memory module according to the number rate of the good super physical units and the partial good super physical units in the rewritable non-volatile memory module, wherein the second super physical unit set comprises a plurality of second good super physical units and at least one second partial good super physical unit selected from the remaining super physical units according to the number rate,
the memory control circuit unit is further configured to continue writing the data into the good physical blocks units of the second super physical unit set.

### Claim 16 (depends on 13)

The memory storage apparatus of claim 13, wherein
the memory control circuit unit is further configured to at least divide the plurality of super physical units into a bad super physical unit, a partial good super physical unit and a good super physical unit,
the memory control circuit unit is further configured to make a mark on each of the bad super physical unit, the partial good super physical unit and the good super physical unit, and
the memory control circuit unit is further configured to update a super physical unit queue list.

### Claim 17 (depends on 16)

The memory storage apparatus of claim 16, wherein
the memory control circuit unit is further configured to at least divide the plurality of super physical units into the bad super physical unit, the partial good super physical unit and the good super physical unit according to a ratio of a number of the bad physical erasing units in each of the super physical units and a total number of physical erasing units in each of the super physical units.

### Claim 18 (depends on 16)

The memory storage apparatus of claim 16, wherein in the operation where the memory control circuit unit is further configured to select the first super physical unit set from the plurality of super physical units according to the number rate of the plurality of good super physical units and the plurality of partial good super physical units in the rewritable non-volatile memory module,
the memory control circuit unit is further configured to select the first super physical unit set according to the super physical unit queue list, and
the memory control circuit unit is further configured to count a number of the plurality of first good super physical units and a number of the at least one first partial good super physical unit in the first super physical unit set.
