# US 2019/0095116 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 2019/0095116 A1
- Document ID: US20190095116A1
- Status: Published application
- Kind: A1
- Application number: 16/117,262
- Filed: 2018-08-30
- Published: 2019-03-28
- Earliest claimed: 2017-09-22
- Assignees: Toshiba Memory Corporation
- Applicants: Toshiba Memory Corporation
- Inventors: Shunichi Igahara; Toshikatsu Hida; Riki Suzuki; Takehiko Amaki; Suguru Nishikawa; Yoshihisa Kojima
- Web page: https://patentgrep.com/patent/US20190095116A1

## CPC

- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- 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 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 12/10: Address translation
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/657: Virtual address space management
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- 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 memory system includes a nonvolatile memory and a controller electrically connected to the nonvolatile memory. The controller selects a write mode from a first mode in which data having N bits is written per one memory cell and a second mode in which data having M bits is written per one memory cell. N is equal to or larger than one. M is larger than N. The controller writes data into the nonvolatile memory in the selected write mode. The controller selects either the first mode or the second mode at least based on a total number of logical addresses mapped in a physical address space of the nonvolatile memory.

## Claims

### Claim 1

A memory system comprising:
a nonvolatile memory; and
a controller electrically connected to the nonvolatile memory, the controller configured to:
select a write mode from a first mode in which data having N bits is written per one memory cell and a second mode in which data having M bits is written per one memory cell, N being equal to or larger than one, M being larger than N; and
write data into the nonvolatile memory in the selected write mode,
wherein the controller is configured to select either the first mode or the second mode at least based on a total number of logical addresses mapped in a physical address space of the nonvolatile memory.

### Claim 2 (depends on 1)

The memory system of claim 1, wherein the controller is configured to:
select the first mode as the write mode if the total number of the logical addresses mapped in the physical address space of the nonvolatile memory is smaller than a first threshold value; and
select the second mode as the write mode if the total number of the logical addresses mapped in the physical address space of the nonvolatile memory is equal to or larger than the first threshold value.

### Claim 3 (depends on 2)

The memory system of claim 2, wherein the controller is further configured to:
write, in accordance with the selected write mode, data corresponding to a write command received from a host into the nonvolatile memory in one of the first mode and the second mode.

### Claim 4 (depends on 2)

The memory system of claim 2, wherein the controller is further configured to:
write, in accordance with the selected write mode, address conversion data indicative of a relationship between a logical address and a physical address into the nonvolatile memory in one of the first mode and the second mode.

### Claim 5 (depends on 2)

The memory system of claim 2, wherein the controller is further configured to:
write, in accordance with the selected write mode, valid data included in a garbage collection source block into the nonvolatile memory in one of the first mode and the second mode.

### Claim 6 (depends on 1)

The memory system of claim 1, wherein the controller is further configured to:
receive a write command with data to be written designating a logical address from a host;
select a mode based on an access frequency of the logical address; and
write the data into the nonvolatile memory in the selected write mode, the first mode being selected as the write mode if the access frequency is equal to or higher than a second threshold value, the second mode being selected as the write mode if the access frequency of the logical address is lower than the second threshold value.

### Claim 7 (depends on 1)

The memory system of claim 1, wherein the controller is further configured to:
receive a write command with data to be written designating a logical address from a host; and
select, if the logical address is included in a first logical address range designated by the host, a mode associated with the first logical address range by the host as the write mode; and
write the data into the nonvolatile memory in the selected write mode.

### Claim 8 (depends on 1)

The memory system of claim 1, wherein the controller is further configured to:
receive a write command with data to be written designating a name space ID from a host;
select, if the name space ID is a first name space ID, a mode associated with the first name space ID by the host as the write mode; and
write the data into the nonvolatile memory in the selected write mode.

### Claim 9 (depends on 1)

The memory system of claim 1, wherein the controller is further configured to:
receive a write command with data to be written designating a stream ID from a host;
select, if the stream ID is a first stream ID, a mode associated with the first stream ID by the host as the write mode; and
write the data into the nonvolatile memory in the selected write mode.

### Claim 10 (depends on 1)

The memory system of claim 1, wherein the controller is further configured to:
select the first mode as the write mode and write valid data included in a garbage collection source block into the nonvolatile memory in the first mode if an access frequency of the valid data is equal to or higher than a second threshold value; and
select either the first mode or the second mode based on the total number of logical addresses mapped in the physical address space of the nonvolatile memory as the write mode and write the valid data into the nonvolatile memory in the selected write mode if the access frequency of the valid data is lower than the second threshold value.

### Claim 11 (depends on 1)

The memory system of claim 1, wherein the controller is further configured to:
select, if a logical address of valid data in a garbage collection source block is included in a first logical address range designated by a host, a mode associated with the first logical address range by the host as the write mode; and
write the valid data into the nonvolatile memory in the selected write mode.

### Claim 12 (depends on 1)

The memory system of claim 1, further comprising a random access memory, wherein
the nonvolatile memory is further configured to store an address conversion table including a plurality of entries,
the controller is further configured to control an entry of the address conversion table cached in the random access memory from the nonvolatile memory, and
the controller is further configured to release, among one or more entries cached in the random access memory, a cache area of an entry corresponding to user data that is written into the nonvolatile memory in the first mode, and to cache a new entry in the released cache area.

### Claim 13 (depends on 1)

The memory system of claim 1, further comprising a random access memory, wherein
the nonvolatile memory is further configured to store an address conversion table including a plurality of entries,
the controller is further configured to control an entry of the address conversion table cached in the random access memory from the nonvolatile memory, and
the controller is further configured to release, among one or more entries cached in the random access memory, if there is, in the random access memory, a size of free area to cache a new entry of the address conversion table that is smaller than a threshold size, a cache area of an entry corresponding to user data that is written into the nonvolatile memory in the second mode, and to cache the new entry in the released cache area.

### Claim 14 (depends on 1)

The memory system of claim 1, further comprising a random access memory, wherein
the nonvolatile memory is further configured to store an address conversion table including a plurality of entries,
the controller is further configured to control an entry of the address conversion table cached in the random access memory from the nonvolatile memory, and
the controller is further configured to release, among one or more entries cached in the random access memory, if there is, in the random access memory, a size of free area to cache a new entry of the address conversion table that is smaller than a threshold size, a cache area of an entry corresponding to address conversion data that is written into the nonvolatile memory in the first mode, and to cache the new entry in the released cache area.

### Claim 15 (depends on 1)

The memory system of claim 1, further comprising a random access memory, wherein
the nonvolatile memory is further configured to store an address conversion table including a plurality of entries,
the controller is further configured to control an entry of the address conversion table cached in the random access memory from the nonvolatile memory, and
the controller is further configured to releases, among one or more entries cached in the random access memory, if there is, in the random access memory, a size of free area to cache a new entry of the address conversion table that is smaller than a threshold size, a cache area of an entry corresponding to address conversion data that is written into the nonvolatile memory in the second mode, and to cache the new entry in the released cache area.

### Claim 16

A memory system comprising:
a nonvolatile memory; and
a controller electrically connected to the nonvolatile memory, the controller configured to:
select a write mode from a first mode in which data having N bits is written per one memory cell and a second mode in which data having M bits is written per one memory cell, N being equal to or larger than one, M being larger than N; and
write data into the nonvolatile memory in the selected write mode, wherein
the controller is configured to select either the first mode or the second mode based on numbers of program/erase cycles of one or more blocks in the nonvolatile memory.

### Claim 17 (depends on 16)

The memory system of claim 16, wherein the controller is configured to:
select the first mode as the write mode and write first data into the nonvolatile memory in the first mode if a current total number of program/erase cycles of one or more blocks in the nonvolatile memory is smaller than a second threshold value; and
select the second mode as the write mode and write the first data into the nonvolatile memory in the second mode if the current total number of program/erase cycles is equal to or larger than the second threshold value.

### Claim 18 (depends on 16)

The memory system of claim 16, wherein the controller is configured to:
select the first mode as the write mode and write first data into the nonvolatile memory in the first mode if an average of program/erase cycles of one or more blocks in the nonvolatile memory is smaller than a second threshold value; and
select the second mode as the write mode and write the first data into the nonvolatile memory in the second mode if the average is equal to or larger than the second threshold value.

### Claim 19 (depends on 17)

The memory system of claim 17, wherein the first data is one of data corresponding to a write command received from a host and address conversion data indicative of a relationship between a logical address and a physical address.

### Claim 20 (depends on 17)

The memory system of claim 17, wherein the first data is valid data included in a garbage collection source block.
