# US 2017/0255405 A1 · Memory system

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

- Number: US 2017/0255405 A1
- Document ID: US20170255405A1
- Status: Published application
- Kind: A1
- Application number: 15/267,734
- Filed: 2016-09-16
- Published: 2017-09-07
- Earliest claimed: 2016-03-07
- Assignees: Kabushiki Kaisha Toshiba
- Applicants: Kabushiki Kaisha Toshiba
- Inventors: Tatsuya ZETTSU; Yoshihisa KOJIMA
- Web page: https://patentgrep.com/patent/US20170255405A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/0647: {Migration mechanisms}
- 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 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to one embodiment, a nonvolatile memory having memory blocks, and a controller configured to select a first block and a second block among the memory blocks, determine a third percentage on the basis of a first percentage of valid data in the first block and a second percentage of valid data in the second block, determine a first ratio between a write amount of user data in accordance with a request from a host and a write amount of the valid data into the first block on the basis of the third percentage, and write the user data and the valid data in the first block into the nonvolatile memory on the basis of the first ratio.

## Claims

### Claim 1

A memory system comprising:
a nonvolatile memory having memory blocks; and
a controller configured to:
select a first block and a second block among the memory blocks;
determine a third percentage on the basis of a first percentage of valid data in the first block and a second percentage of valid data in the second block;
determine a first ratio between a write amount of user data in accordance with a request from a host and a write amount of the valid data into the first block on the basis of the third percentage; and
write the user data and the valid data in the first block into the nonvolatile memory on the basis of the first ratio.

### Claim 2 (depends on 1)

The system of claim 1, wherein
the controller selects the first block and the second block as a target of a garbage collection process.

### Claim 3 (depends on 2)

The system of claim 2, wherein
the controller selects candidate blocks meeting a given condition from the memory blocks, and selects the first block and the second block from the candidate blocks.

### Claim 4 (depends on 3)

The system of claim 3, wherein
the controller selects two blocks as the first block and the second block from the candidate blocks, the two blocks having two smallest percentages of the valid data.

### Claim 5 (depends on 1)

The system of claim 1, wherein
the controller selects the first block as a target of a garbage collection process, and selects the second block as a target of a refresh process.

### Claim 6 (depends on 5)

The system of claim 5, wherein
the controller selects candidate blocks meeting a given condition from the memory blocks, and selects the first block from the candidate blocks.

### Claim 7 (depends on 6)

The system of claim 6, wherein
the controller selects one block as the first block from the candidate blocks, the one block having a smallest percentage of the valid data.

### Claim 8 (depends on 1)

The system of claim 1, wherein
the controller determines the third percentage as an average of the first percentage and the second percentage.

### Claim 9 (depends on 1)

The system of claim 1, wherein
the controller determines the first percentage by multiplying a percentage of the valid data in the first block at a first time by (1−α) and the second percentage by multiplying a percentage of the valid data in the second block at the first time by (1−α), where a is a decaying factor of the valid data from the first time to a second time at which a write of the valid data in the first block is started.

### Claim 10 (depends on 1)

The system of claim 1, wherein
the controller determines a percentage of the valid data at a given time on the basis of an extrapolation obtained by a percentage of the valid data at a first time that is a time before the given time, and a percentage of the valid data at a second time that is a time before the given time and after the first time.

### Claim 11 (depends on 1)

The system of claim 1, wherein
the controller determines 1:N as the first ratio, where N=R/(1−R), N is a write amount of the valid data in the first block into the nonvolatile memory when a write amount of the user data into the nonvolatile memory is 1, and R is the third percentage.

### Claim 12 (depends on 11)

The system of claim 11, wherein
N is smaller than 1.

### Claim 13 (depends on 1)

The system of claim 1, wherein
the controller selects a third block from the memory blocks after writing the valid data in the first block, determines a fifth percentage on the basis of the second percentage and a fourth percentage of valid data in the third block, determines a second ratio between a write amount of user data into the nonvolatile memory and a write amount of the valid data in the second block into the nonvolatile memory on the basis of the fifth percentage, and writes the user data and the valid data in the second block on the basis of the second ratio.

### Claim 14 (depends on 13)

The system of claim 13, wherein
the controller determines the fifth percentage as an average of the second and fourth percentages.

### Claim 15 (depends on 13)

The system of claim 13, wherein
the controller determines the second percentage by multiplying a percentage of the valid data in the second block at a first time by (1−α) and the fourth percentage by multiplying a percentage of the valid data in the third block at the first time by (1−α), where α is a decaying factor of the valid data from the first time to a second time at which a write of the valid data in the second block is started.

### Claim 16 (depends on 13)

The system of claim 13, wherein
the controller determines a percentage of the valid data at a given time on the basis of an extrapolation obtained by a percentage of the valid data at a first time that is a time before the given time, and a percentage of the valid data at a second time that is a time before the given time and after the first time.

### Claim 17 (depends on 1)

The system of claim 1, wherein
the controller changes the first block to a free block having no valid data after writing the valid data into the first block.

### Claim 18 (depends on 1)

The system of claim 1, wherein
the first percentage is different from the second percentage.

### Claim 19 (depends on 1)

The system of claim 1, wherein
each of the memory blocks comprises a data unit having a given data amount, and
the controller selectively writes the user data or the valid data in the first block into the nonvolatile memory for data unit.

### Claim 20 (depends on 1)

The system of claim 1, wherein
the controller determines an order of write operations of the user data and write operations of the valid data in the first block on the basis of the first ratio.
