# US 2024/0201866 A1 · Memory system and method

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

- Number: US 2024/0201866 A1
- Document ID: US20240201866A1
- Status: Published application
- Kind: A1
- Application number: 18/461,659
- Filed: 2023-09-06
- Published: 2024-06-20
- Earliest claimed: 2022-12-19
- Assignees: Kioxia Corporation
- Applicants: Kioxia Corporation
- Inventors: Atsuo SHONO; Kiyotaka IWASAKI
- Web page: https://patentgrep.com/patent/US20240201866A1

## CPC

- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0673: {Single storage device}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/023: {Free address space management}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to an embodiment, a memory system includes a memory controller. At a first timing within a period from allocation of an area unit to completion of a data-in operation on the data unit stored in an area unit, the memory controller deallocates the area unit upon the completion of the data-in operation on the data unit when a usage of a buffer area is smaller than a first threshold value. At the first timing, the memory controller deallocates the area unit upon completion of the program operation on the data unit when the usage of the buffer area is larger than a second threshold value. The second threshold value is larger than the first threshold value.

## Claims

### Claim 1

A memory system connectable to a host, the memory system comprising:
a first memory in which a memory cell array including a plurality of memory cells is provided, the first memory being a non-volatile memory;
a second memory that is a volatile memory; and
a memory controller configured to, in response to receiving a write request from the host,
allocate an area unit to a buffer area of the second memory;
store a data unit in the area unit, the data unit being requested by the write request to be written to the first memory; and
execute, on the data unit, a write operation including a data-in operation and a program operation, the data-in operation being an operation of transferring the data unit to the first memory, the program operation being an operation of writing the data unit transferred to the first memory by the data-in operation to the memory cell array,
wherein the memory controller is further configured to, at a first timing within a period from the allocation of the area unit to completion of the data-in operation on the data unit stored in the area unit;
deallocate the area unit upon the completion of the data-in operation on the data unit when a usage of the buffer area is in a first state in which the usage of the buffer area is smaller than a first threshold value; and
deallocate the area unit upon completion of the program operation on the data unit when the usage of the buffer area is in a second state in which the usage of the buffer area is larger than a second threshold value, the second threshold value being larger than the first threshold value.

### Claim 2 (depends on 1)

The memory system according to claim 1, further comprising a power storage device configured to store electric energy,
wherein the memory controller is further configured to:
operate using the electric energy stored in the power storage device after detection of power loss;
execute a first program operation of writing data containing a first number of bits per memory cell in the program operation on the data unit, the first program operation being executed in a case where a second timing that is a timing of the completion of the data-in operation on the data unit is after the detection of the power loss, and
execute a second program operation of writing data containing a second number of bits per memory cell in the program operation on the data unit, the second number being larger than the first number, the second program operation being executed in a case where the second timing is before the detection of the power loss.

### Claim 3 (depends on 2)

The memory system according to claim 2, wherein the memory controller is further configured to, after the power loss is detected,
continue the second program operation on the data unit until completion in a case where the second program operation on the data unit is being executed at the detection of the power loss and the area unit storing the data unit has already been deallocated at the detection of the power loss; and,
in a case where the second program operation on the data unit is being executed at the detection of the power loss and the area unit storing the data unit has not yet been deallocated at the detection of the power loss, stop the second program operation on the data unit and write the data unit stored in the area unit, which has not yet been deallocated, to the first memory by the first program operation.

### Claim 4 (depends on 1)

The memory system according to claim 1, wherein the memory controller is further configured to:
set no limitation on a transfer rate of data from the host to the memory controller in the first state; and
set limitation on the transfer rate of data from the host to the memory controller in the second state.

### Claim 5 (depends on 1)

The memory system according to claim 1, wherein
the first state is a state of the usage of the buffer area in a period from when the usage of the buffer area becomes smaller than the first threshold value to when the usage of the buffer area becomes larger than the second threshold value, and
the second state is a state of the usage of the buffer area in a period from when the usage of the buffer area becomes larger than the second threshold value to when the usage of the buffer area becomes smaller than the first threshold value.

### Claim 6 (depends on 1)

The memory system according to claim 1, wherein
the second memory includes a third memory and a fourth memory, the fourth memory operating at a lower speed than the third memory and having a larger capacity than the third memory,
the buffer area includes a first buffer area provided in the third memory and a second buffer area provided in the fourth memory,
the second threshold value is equal to a capacity of the first buffer area, and
the memory controller is configured to
allocate the area unit to the first buffer area in a case where the first buffer area includes an area to which allocation of the area unit is available, and
allocate the area unit to the second buffer area in a case where the first buffer area includes no area to which allocation of the area unit is available.

### Claim 7 (depends on 1)

The memory system according to claim 1, wherein the first timing is a timing at which the data-in operation on the data unit is completed.

### Claim 8 (depends on 2)

The memory system according to claim 2, wherein the first timing is a timing at which the data-in operation on the data unit is completed.

### Claim 9 (depends on 1)

The memory system according to claim 1, wherein the first timing is a timing at which the area unit is allocated.

### Claim 10 (depends on 1)

The memory system according to claim 1, wherein the first timing includes a timing at which the area unit is allocated and a timing at which the data-in operation on the data unit is completed.

### Claim 11

A method of controlling a first memory, the first memory being a non-volatile memory and including a memory cell array that includes a plurality of memory cells, the method comprising:
in response to receiving a write request from a host,
allocating an area unit to a buffer area of a second memory that is a volatile memory;
storing a data unit in the area unit, the data unit being requested by the write request to be written to the first memory; and
executing, on the data unit, a write operation including a data-in operation and a program operation, the data-in operation being an operation of transferring the data unit to the first memory, the program operation being an operation of writing the data unit transferred to the first memory by the data-in operation to the memory cell array, and
at a first timing within a period from the allocation of the area unit to completion of the data-in operation on the data unit stored in the area unit,
determining that a usage of the buffer area is in a first state in which the usage of the buffer area is smaller than a first threshold value;
deallocating the area unit upon the completion of the data-in operation on the data unit, in response to determining that the usage of the buffer area is in the first state;
determining that the usage of the buffer area is in a second state in which the usage of the buffer area is larger than a second threshold value, the second threshold value being larger than the first threshold value; and
deallocating the area unit upon completion of the program operation on the data unit, in response to determining that the usage of the buffer area is in the second state.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising:
storing electric energy in a power storage device;
detecting power loss;
starting to use the electric energy stored in the power storage device after the detection of the power loss;
determining that the data-in operation on the data unit is completed at a second timing after the detection of the power loss;
executing a first program operation of writing data containing a first number of bits per memory cell in the program operation on the data unit, in response to determining that the data-in operation on the data unit is completed at the second timing;
determining that the data-in operation on the data unit is completed at a third timing before the detection of the power loss; and
executing a second program operation of writing data containing a second number of bits per memory cell in the program operation on the data unit, in response to determining that the data-in operation on the data unit is completed at the third timing, the second number being larger than the first number.

### Claim 13 (depends on 12)

The method according to claim 12, further comprising:
after the power loss is detected,
determining that a first condition is satisfied, the first condition being a condition in which the second program operation on the data unit is being executed at the detection of the power loss and the area unit storing the data unit has already been deallocated;
continuing the second program operation on the data unit until completion, in response to determining that the first condition is satisfied;
determining that a second condition is satisfied, the second condition being a condition in which the second program operation on the data unit is being executed at the detection of the power loss and the area unit storing the data unit has not yet been deallocated; and
stopping the second program operation on the data unit and writing the data unit stored in the area unit, which has not yet been deallocated, to the first memory by the first program operation, in response to determining that the a second condition is satisfied.

### Claim 14 (depends on 11)

The method according to claim 11, further comprising:
setting no limitation on a transfer rate of data from the host in the first state; and
setting limitation on the transfer rate of data from the host in the second state.

### Claim 15 (depends on 11)

The method according to claim 11, wherein
the first state is a state of the usage of the buffer area in a period from when the usage of the buffer area becomes smaller than the first threshold value to when the usage of the buffer area becomes larger than the second threshold value, and
the second state is a state of the usage of the buffer area in a period from when the usage of the buffer area becomes larger than the second threshold value to when the usage of the buffer area becomes smaller than the first threshold value.

### Claim 16 (depends on 11)

The method according to claim 11, wherein
the second memory includes a third memory and a fourth memory, the fourth memory operating at a lower speed than the third memory and having a larger capacity than the third memory,
the buffer area includes a first buffer area provided in the third memory and a second buffer area provided in the fourth memory,
the second threshold value is equal to a capacity of the first buffer area, and
the method further comprises:
determining that the first buffer area includes an area to which allocation of the area unit is available;
allocating the area unit to the first buffer area in response to determining that the first buffer area includes the area to which allocation of the area unit is available;
determining that the first buffer area includes no area to which allocation of the area unit is available; and
allocating the area unit to the second buffer area in response to determining that the first buffer area includes no area to which allocation of the area unit is available.

### Claim 17 (depends on 11)

The method according to claim 11, wherein the first timing is a timing at which the data-in operation on the data unit is completed.

### Claim 18 (depends on 12)

The method according to claim 12, wherein the first timing is a timing at which the data-in operation on the data unit is completed.

### Claim 19 (depends on 11)

The method according to claim 11, wherein the first timing is a timing at which the area unit is allocated.

### Claim 20 (depends on 11)

The method according to claim 11, wherein the first timing includes a timing at which the area unit is allocated and a timing at which the data-in operation on the data unit is completed.
