# US 11,119,693 B2 · Method of operating storage device for improving QOS latency and storage device performing the same

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

- Number: US 11,119,693 B2
- Document ID: US11119693B2
- Status: Granted
- Kind: B2
- Application number: 16/810,478
- Filed: 2020-03-05
- Published: 2021-02-04
- Granted: 2021-09-14
- Earliest claimed: 2019-07-29
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Sumin Ahn; Jinseok Kim; Jungjeong Jo
- Web page: https://patentgrep.com/patent/US11119693B2

## CPC

- G06F 3/061: {Improving I/O performance}
- 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 3/0604: {Improving or facilitating administration, e.g. storage management}
- 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 2212/7206: Reconfiguration of flash memory system
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a method of operating a storage device, a first throughput, for transmitting a plurality of write command completion responses to an external host device, is set to an initial value. The plurality of write command completion responses represent an execution of a plurality of write commands received from the external host device. The plurality of write commands are executed. The plurality of write command completion responses are transmitted to the external host device based on the first throughput that is set to the initial value. A plurality of write data are internally stored based on the plurality of write commands. A second throughput, associated with an operation of internally storing the plurality of write data, is monitored during a predetermined first time interval. The first throughput is changed based on the second throughput that is monitored during the predetermined first time interval.

## Claims

### Claim 1

A method of operating a storage device, the method comprising:
setting a first throughput, for transmitting a plurality of write command completion responses to an external host device, to an initial value, wherein the plurality of write command completion responses represent an execution of a plurality of write commands received from the external host device;
executing the plurality of write commands;
transmitting the plurality of write command completion responses to the external host device based on the first throughput that is set to the initial value, wherein the initial value corresponds to a maximum throughput of the storage device;
internally storing a plurality of write data based on the plurality of write commands;
monitoring a second throughput associated with an operation of internally storing the plurality of write data during a predetermined first time interval; and
changing the first throughput based on the second throughput that is monitored during the predetermined first time interval, wherein changing the first throughput includes: decreasing the first throughput when it is determined that the second throughput is reduced from the maximum throughput as a result of monitoring the second throughput, wherein the first throughput decreases to have a value equal to that of the second throughput.

### Claim 2 (depends on 1)

The method of claim 1, wherein monitoring the second throughput during the predetermined first time interval includes:
after the plurality of write data are stored in a plurality of memory blocks included in the storage device, monitoring a reception of a plurality of write done signals indicating that an operation of storing the plurality of write data is completed.

### Claim 3 (depends on 2)

The method of claim 2, wherein it is determined that the second throughput increases as a number of the plurality of write done signals received during the predetermined first time interval increases.

### Claim 4 (depends on 1)

The method of claim 1, wherein monitoring the second throughput during the predetermined first time interval includes:
when the plurality of write data are temporarily stored in a buffer memory included in the storage device and then stored in a plurality of memory blocks included in the storage device, monitoring a current usage of the buffer memory.

### Claim 5 (depends on 4)

The method of claim 4, wherein it is determined that the second throughput increases as the current usage of the buffer memory decreases during the predetermined first time interval.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
monitoring an operating temperature of the storage device; and
changing the first throughput based on the monitored operating temperature.

### Claim 7 (depends on 6)

The method of claim 6, wherein the first throughput decreases as the operating temperature increases.

### Claim 8 (depends on 1)

The method of claim 1, wherein the execution of the plurality of write commands represents an operation of allocating the plurality of write commands to a plurality of memory blocks included in the storage device.

### Claim 9 (depends on 1)

The method of claim 1, wherein executing the plurality of write commands includes:
queuing the plurality of write commands in a command queue included in the storage device;
allocating the plurality of write commands to a plurality of memory blocks included in the storage device based on a resource allocation request; and
generating the plurality of write command completion responses indicating that an operation of allocating the plurality of write commands is completed.

### Claim 10 (depends on 9)

The method of claim 9, wherein:
the plurality of write command completion responses are temporarily stored in the storage device instead of being transmitted to the external host device after the operation of allocating the plurality of write commands is completed, and
the plurality of write command completion responses are transmitted to the external host device when a delay time elapses after the operation of allocating the plurality of write commands is completed.

### Claim 11 (depends on 10)

The method of claim 10, wherein the delay time is determined based on a result of monitoring the second throughput.

### Claim 12 (depends on 1)

The method of claim 1, wherein internally storing the plurality of write data represents an operation of storing the plurality of write data in a plurality of memory blocks included in the storage device.

### Claim 13 (depends on 1)

The method of claim 1, wherein internally storing the plurality of write data includes:
storing the plurality of write data in a plurality of memory blocks included in the storage device; and
generating a plurality of write done signals indicating that an operation of storing the plurality of write data is completed.

### Claim 14 (depends on 13)

The method of claim 13, wherein the plurality of write done signals are transmitted to a storage controller included in the storage device after the operation of storing the plurality of write data is completed.

### Claim 15

A storage device comprising:
a command queue configured to queue a plurality of write commands received from an external host device;
a command handler circuit configured to set a first throughput, for transmitting a plurality of write command completion responses to the external host device, to an initial value, to execute the plurality of write commands, wherein the initial value corresponds to a maximum throughput of the storage device, and to transmit the plurality of write command completion responses to the external host device based on the first throughput that is set to the initial value, wherein the plurality of write command completion responses represent an execution of the plurality of write commands;
a storage controller configured to perform an operation of internally storing a plurality of write data based on the plurality of write commands, and to monitor a second throughput associated with the operation of internally storing the plurality of write data during a predetermined first time interval; and
a plurality of memory blocks configured to store the plurality of write data based on a control of the storage controller, wherein the command handler circuit is configured to change the first throughput based on the second throughput that is monitored during the predetermined first time interval, wherein changing the first throughput includes: decreasing the first throughput when it is determined that the second throughput is reduced from the maximum throughput as a result of monitoring the second throughput, wherein the first throughput decreases to have a value equal to that of the second throughput.

### Claim 16 (depends on 15)

The storage device of claim 15, wherein at least one of the command queue and the command handler is included in the storage controller.

### Claim 17 (depends on 15)

The storage device of claim 15, wherein the storage device is a solid state drive (SSD).

### Claim 18

A method of operating a storage device that includes a command queue, a command handler circuit, a storage controller, and a plurality of memory blocks, the method comprising:
setting, by the command handler circuit, a first throughput, for transmitting a plurality of write command completion responses to an external host device, to a maximum value, wherein the plurality of write command completion responses are associated with a plurality of write commands;
queuing the plurality of write commands received from the external host device in the command queue;
allocating, by the command handler circuit, the plurality of write commands to the plurality of memory blocks;
generating, by the command handler circuit, the plurality of write command completion responses indicating that an operation of allocating the plurality of write commands is completed;
transmitting, by the command handler circuit, the plurality of write command completion responses to the external host device based on the first throughput that is set to the maximum value;
storing, by the storage controller, the plurality of write data in the plurality of memory blocks based on the plurality of write commands;
receiving, by the storage controller, a plurality of write done signals indicating that an operation of storing the plurality of write data is completed;
monitoring, by the storage controller, a second throughput for receiving the plurality of write done signals during a predetermined first time interval; and
decreasing, by the command handler circuit, the first throughput to have a value equal to that of the second throughput when the monitored second throughput is less than the maximum value,
wherein the plurality of write command completion responses are temporarily stored in the command handler circuit and transmitted to the external host device when a delay time elapses after the operation of allocating the plurality of write commands is completed.
