# US 2020/0117623 A1 · Adaptive Interrupt Coalescing

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

- Number: US 2020/0117623 A1
- Document ID: US20200117623A1
- Status: Published application
- Kind: A1
- Application number: 16/156,839
- Filed: 2018-10-10
- Published: 2020-04-16
- Earliest claimed: 2018-10-10
- Assignees: Petaio Inc.
- Applicants: PetaIO Inc.
- Inventors: Jinki Han; Jongman Yoon
- Web page: https://patentgrep.com/patent/US20200117623A1

## CPC

- G06F 13/24: using interrupt (G06F13/32 takes precedence)
- G06F 3/061: {Improving I/O performance}
- 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 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 2213/2412: Dispatching of interrupt load among interrupt handlers in processor system or interrupt controller
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage device retrieves commands from a command queue of a host and monitors depth of the command queue. Commands are executed from the command queue and outcomes of the commands are written to a completion queue of the host. Interrupts for the completed commands are coalesced until an aggregation threshold or aggregation delay are met. Coalescing is disabled and interrupts generated upon completion of commands when depth of the command queue is below a threshold.

## Claims

### Claim 1

A method comprising:
providing a host having a command queue and a completion queue;
providing a peripheral device;
(a) executing, by one of the peripheral device and the host, commands from the command queue and placing outcomes of the commands in the completion queue;
(b) generating, by the one of the peripheral device and the host, an interrupt for each command from the command queue upon completion without coalescing when a depth of the command queue is below a threshold; and
(c) generating, by the one of the peripheral device and the host, the interrupt after coalescing completions of multiple commands when the depth of the command queue is above the threshold.

### Claim 2 (depends on 1)

The method of claim 1, wherein the one of the peripheral device and the host is the peripheral device.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the interrupt after coalescing completions of multiple commands comprises:
generating the interrupt when a number of completions of commands from the command queue since a previous generation of the interrupt exceeds a threshold number.

### Claim 4 (depends on 1)

The method of claim 1, wherein generating the interrupt after coalescing completions of multiple commands comprises:
generating the interrupt when a delay from a time of completion of a last-completed command of the commands from the command queue exceeds a threshold time.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the interrupt after coalescing completions of multiple commands comprises:
generating the interrupt when a number of completions of commands from the command queue since a previous generation of the interrupt exceeds a threshold number; and
generating the interrupt when a delay from a time of completion of a last-completed command of the commands from the command queue exceeds a threshold time.

### Claim 6 (depends on 5)

The method of claim 5, wherein generating the interrupt for each command without coalescing comprises, generating an interrupt for the each command upon placing of the outcome of the each command in the command queue without regard to either of:
the number of completions of commands from the command queue since the previous generation of the interrupt; and
the delay from the time of completion of the last-completed command of the commands from the command queue exceeds a threshold time.

### Claim 7 (depends on 1)

The method of claim 1, wherein the peripheral device is a storage device and the commands are read and write commands.

### Claim 8 (depends on 1)

The method of claim 1, wherein the peripheral device is a NAND storage device.

### Claim 9 (depends on 8)

The method of claim 8, wherein the peripheral device is a Non-Volatile Memory Express (NVMe) device.

### Claim 10 (depends on 1)

The method of claim 1, wherein the interrupt is one of a plurality of interrupts;
wherein the completion queue is one of a plurality of completion queues, each completion queue corresponding to one of the plurality of interrupts; and
wherein the method further comprises performing (a) through (c) for each interrupt of the plurality of interrupts and the completion queue corresponding to the each interrupt.

### Claim 11

An apparatus comprising:
a peripheral device having a controller programmed to:
(a) execute commands from a command queue of a host device coupled to the peripheral device and place outcomes of the commands in a completion queue of the host device;
(b) generate an interrupt to the host device for each command from the command queue upon completion without coalescing when a depth of the command queue does not meet a threshold condition; and
(c) generate the interrupt after coalescing completions of multiple commands when the depth of the command queue meets the threshold condition.

### Claim 12 (depends on 11)

The apparatus of claim 11, further comprising the peripheral device.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the controller is programmed to generate the interrupt after coalescing completions of multiple commands by:
generating the interrupt when a number of completions of commands from the command queue since a previous generation of the interrupt exceeds a threshold number.

### Claim 14 (depends on 11)

The apparatus of claim 11, wherein the controller is programmed to generate the interrupt after coalescing completions of multiple commands by:
generating the interrupt when a delay from a time of completion of a last-completed command of the commands from the command queue exceeds a threshold time.

### Claim 15 (depends on 11)

The apparatus of claim 11, wherein the controller is programmed to generate the interrupt after coalescing completions of multiple commands by:
generating the interrupt when a number of completions of commands from the command queue since a previous generation of the interrupt exceeds a threshold number; and
generating the interrupt when a delay from a time of completion of a last-completed command of the commands from the command queue exceeds a threshold time.

### Claim 16 (depends on 15)

The apparatus of claim 15, the controller is programmed to generate the interrupt for each command without coalescing by, generating an interrupt for the each command upon placing of the outcome of the each command in the command queue without regard to either of:
the number of completions of commands from the command queue since the previous generation of the interrupt; and
the delay from the time of completion of the last-completed command of the commands from the command queue exceeds a threshold time.

### Claim 17 (depends on 11)

The apparatus of claim 11, wherein the peripheral device is a storage device and the commands are read and write commands.

### Claim 18 (depends on 11)

The apparatus of claim 11, wherein the peripheral device is a NAND storage device.

### Claim 19 (depends on 11)

The apparatus of claim 11, wherein the peripheral device is a Non-Volatile Memory Express (NVMe) device.

### Claim 20 (depends on 11)

The apparatus of claim 11, wherein the interrupt one of a plurality of interrupts;
wherein the completion queue is one of a plurality of completion queues, each completion queue corresponding to one of the plurality of interrupts;
wherein the controller is further programmed to perform (a) through (c) for each interrupt of the plurality of interrupts and the completion queue corresponding to the each interrupt.
