# US 2023/0273750 A1 · Memory system and method of controlling nonvolatile memory with checking a total size indicative of a sum of data length specified by a write command

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

- Number: US 2023/0273750 A1
- Document ID: US20230273750A1
- Status: Published application
- Kind: A1
- Application number: 18/298,141
- Filed: 2023-04-10
- Published: 2023-08-31
- Earliest claimed: 2019-08-28
- Assignees: Kioxia Corporation
- Applicants: Kioxia Corporation
- Inventors: Shinichi KANNO
- Web page: https://patentgrep.com/patent/US20230273750A1

## CPC

- 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/0656: {Data buffering arrangements}
- 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

According to one embodiment, a memory system checks a first total size indicative of a sum of data lengths specified by first write commands stored in a first submission queue of a host corresponding to a first stream. When the first total size is greater than or equal to a minimum write size, the memory system fetches a set of first write commands stored in the first submission queue, transfers first write data associated with the set of first write commands from a memory of the host to the memory system, and writes the first write data into a first write destination block allocated for the first stream.

## Claims

### Claim 1

A memory system connectable to a host, comprising:
a nonvolatile memory including a plurality of blocks, each of the plurality of blocks including a plurality of pages, each of the plurality of pages being a data writing unit; and
a controller configured to control the nonvolatile memory, wherein
the controller is configured to:
allocate a first write destination block for a first stream from the plurality of blocks;
allocate a second write destination block for a second stream from the plurality of blocks, the second write destination block being different from the first write destination block;
check a first total size indicative of a sum of data lengths specified by first write commands, the first write commands being associated with the first stream and stored in a first submission queue of the host corresponding to the first stream;
check a second total size indicative of a sum of data lengths specified by second write commands, the second write commands being associated with the second stream and stored in a second submission queue of the host corresponding to the second stream;
determine whether the first total size is greater than or equal to a minimum write size of the nonvolatile memory or not;
determine whether the second total size is greater than or equal to the minimum write size or not;
when the first total size is greater than or equal to the minimum write size, fetch a set of the first write commands stored in the first submission queue, transfer first write data having the minimum write size and associated with the set of the first write commands from a write buffer in a memory of the host to a first buffer in the memory system, and write the first write data into the first write destination block; and
when the second total size is greater than or equal to the minimum write size, fetch a set of the second write commands stored in the second submission queue, transfer second write data having the minimum write size and associated with the set of the second write commands from the write buffer to the first buffer, and write the second write data into the second write destination block.

### Claim 2 (depends on 1)

The memory system of claim 1, wherein
the controller is configured to check the first total size by checking content of the first submission queue in a state where each of the first write commands is left in the first submission queue and check the second total size by checking content of the second submission queue in a state where each of the second write commands is left in the second submission queue.

### Claim 3 (depends on 1)

The memory system of claim 1, wherein
the controller is configured to update management information for managing a correspondence relationship between first and second queue identifiers for identifying the first and second submission queues, respectively, and the first and second total sizes, based on a result of the check.

### Claim 4 (depends on 1)

The memory system of claim 1, wherein
the controller is configured to:
check the first total size when a notification indicative that one or more new write commands are stored in the first submission queue is received from the host; and
check the second total size when a notification indicative that one or more new write commands are stored in the second submission queue is received from the host.

### Claim 5 (depends on 1)

The memory system of claim 1, wherein
the controller is configured to:
after the transfer of the first write data from the write buffer to the first buffer is completed, or after the write of the first write data into the first write destination block is completed, return a set of command completion responses corresponding to the set of the first write commands to the host; and
after the transfer of the second write data from the write buffer to the first buffer is completed, or after the write of the second write data into the second write destination block is completed, return a set of command completion responses corresponding to the set of the second write commands to the host.

### Claim 6 (depends on 1)

The memory system of claim 1, wherein
neither the first submission queue nor the second submission queue is used to store a read command for reading data from the nonvolatile memory.

### Claim 7 (depends on 1)

The memory system of claim 1, wherein
the first submission queue is allocated in the memory of the host to store each write command corresponding to write data to be associated with the first stream, and
the second submission queue is allocated in the memory of the host to store each write command corresponding to write data to be associated with the second stream.

### Claim 8

A method of controlling a memory system including a nonvolatile memory, the nonvolatile memory including a plurality of blocks, each of the plurality of blocks including a plurality of pages, each of the plurality of pages being a data writing unit, the method comprising:
allocating a first write destination block for a first stream from the plurality of blocks;
allocating a second write destination block for a second stream from the plurality of blocks, the second write destination block being different from the first write destination block;
checking a first total size indicative of a sum of data lengths specified by first write commands, the first write commands being associated with the first stream and stored in a first submission queue of the host corresponding to the first stream;
checking a second total size indicative of a sum of data lengths specified by second write commands, the second write commands being associated with the second stream and stored in a second submission queue of the host corresponding to the second stream;
determining whether the first total size is greater than or equal to a minimum write size of the nonvolatile memory or not;
determining whether the second total size is greater than or equal to the minimum write size or not;
when the first total size is greater than or equal to the minimum write size, fetching a set of the first write commands stored in the first submission queue, transferring first write data having the minimum write size and associated with the set of the first write commands from a write buffer in a memory of the host to a first buffer in the memory system, and writing the first write data into the first write destination block; and
when the second total size is greater than or equal to the minimum write size, fetching a set of the second write commands stored in the second submission queue, transferring second write data having the minimum write size and associated with the set of the second write commands from the write buffer to the first buffer, and writing the second write data into the second write destination block.

### Claim 9 (depends on 8)

The method of claim 8, wherein
the checking includes checking the first total size by checking content of the first submission queue in a state where each of the first write commands is left in the first submission queue, and checking the second total size by checking content of the second submission queue in a state where each of the second write commands is left in the second submission queue.

### Claim 10 (depends on 8)

The method of claim 8, further comprising
updating management information for managing a correspondence relationship between first and second queue identifiers for identifying the first and second submission queues, respectively, and the first and second total sizes, based on a result of the check.

### Claim 11 (depends on 8)

The method of claim 8, wherein
the checking includes:
checking the first total size when a notification indicative that one or more new write commands are stored in the first submission queue is received from the host; and
checking the second total size when a notification indicative that one or more new write commands are stored in the second submission queue is received from the host.

### Claim 12 (depends on 8)

The method of claim 8, further comprising:
after the transfer of the first write data from the write buffer to the first buffer is completed, or after the write of the first write data into the first write destination block is completed, returning a set of command completion responses corresponding to the set of the first write commands to the host; and
after the transfer of the second write data from the write buffer to the first buffer is completed, or after the write of the second write data into the second write destination block is completed, returning a set of command completion responses corresponding to the set of the second write commands to the host.

### Claim 13 (depends on 8)

The method of claim 8, wherein
the first submission queue is allocated in the memory of the host to store each write command corresponding to write data to be associated with the first stream, and
the second submission queue is allocated in the memory of the host to store each write command corresponding to write data to be associated with the second stream.
