# US 9,354,814 B2 · Host read command return reordering based on time estimation of flash read command completion

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

- Number: US 9,354,814 B2
- Document ID: US9354814B2
- Status: Granted
- Kind: B2
- Application number: 14/680,657
- Filed: 2015-04-07
- Published: 2015-07-30
- Granted: 2016-05-31
- Earliest claimed: 2012-12-04
- Assignees: HGST Netherlands B.V.
- Applicants: HGST Netherlands B.V.
- Inventors: Joao Alcantara; Zoltan Szubbocsev
- Web page: https://patentgrep.com/patent/US9354814B2

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/0605: {by facilitating the interaction with a user or administrator}
- 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 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2206/1014: One time programmable [OTP] memory, e.g. PROM, WORM
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Managing data returns to a host in response to read commands, an operation monitor of a solid-state drive (SSD) manages counters used to hold metrics that characterize the estimated time to complete a read operation on a corresponding flash die. A timer generates a periodic event which decrements the counters over time. The value stored in each counter is generated for flash operations submitted to the corresponding die and is, generally, based on the operational history and the physical location of the operation. Whenever a read command is scheduled for submission to a particular die, the time estimate for that particular read operation is retrieved and, based on this information, the optimum order in which to return data to the host is determined. This order is used to schedule and program data transfers to the host so that a minimum number of read commands get blocked by other read commands.

## Claims

### Claim 1

A method for managing returns to a host in response to read commands received by a solid-state drive (SSD) device from said host, the method comprising:
receiving a data read command from said host;
computing a total estimated time to completion of said read command based on an estimated time to completion for each operation submitted to a respective non-volatile memory die corresponding to said read command;
wherein said total estimated time to completion of said read command is based on current performance capabilities of at least one respective non-volatile memory die as said performance capabilities change over time;
determining, based on said total estimated time to completion of said read command, in what order to return requested data to said host relative to other data read commands received from said host; and
returning said requested data to said host in the order determined.

### Claim 2 (depends on 1)

The method of claim 1, wherein said total estimated time to completion of said read command is based on said performance capabilities of said at least one non-volatile memory die deteriorating over time due to the physics underlying said at least one non-volatile memory die.

### Claim 3 (depends on 2)

The method of claim 2, wherein said total estimated time to completion of said read command is based on a time for completion of an erase operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 4 (depends on 2)

The method of claim 2, wherein said total estimated time to completion of said read command is based on a time for completion of a read operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 5 (depends on 2)

The method of claim 2, wherein said total estimated time to completion of said read command is based on a time for completion of a write operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 6 (depends on 5)

The method of claim 5, wherein said total estimated time to completion of said read command is based on a time for completion of a write operation on said at least one non-volatile memory die based on the type of said at least one non-volatile memory.

### Claim 7 (depends on 2)

The method of claim 2, wherein said total estimated time to completion of said read command is based on current performance capabilities of a block corresponding to said at least one respective non-volatile memory die as said performance capabilities of said block change over time.

### Claim 8 (depends on 2)

The method of claim 2, wherein said total estimated time to completion of said read command is based on current performance capabilities of a page corresponding to said at least one respective non-volatile memory die as said performance capabilities of said page change over time.

### Claim 9 (depends on 1)

The method of claim 1, wherein said total estimated time to completion of said read command is based on a time for completion of at least one of an erase operation, a read operation, and a write operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 10 (depends on 1)

The method of claim 1, wherein said total estimated time to completion of said read command is based on current performance capabilities of at least one of a block and a page corresponding to said at least one respective non-volatile memory die as said performance capabilities change over time due to number of operations for which said at least one of a block and a page is used.

### Claim 11 (depends on 1)

The method of claim 1, wherein said estimated time to completion for each operation submitted to a respective non-volatile memory die corresponding to said read command is computed in response to receiving said data read command from said host.

### Claim 12 (depends on 1)

The method of claim 1, wherein said estimated time to completion for each operation submitted to a respective non-volatile memory die corresponding to said read command is computed and managed constantly for one or more of said respective non-volatile memory die, and wherein determining in what order to return requested data to said host is performed in response to receiving said data read command from said host.

### Claim 13 (depends on 1)

The method of claim 1, wherein returning said requested data to said host, in the order determined relative to other data read commands received from said host, includes queuing requested data for return to said host such that longer operations blocking the return of shorter operations is avoided.

### Claim 14

A solid-state drive controller storing one or more sequence of instructions which, when executed by one or more processors, cause performance of:
receiving a data read command from said host;
computing a total estimated time to completion of said read command based on an estimated time to completion for each operation submitted to a respective non-volatile memory die corresponding to said read command;
wherein said total estimated time to completion of said read command is based on current performance capabilities of at least one respective non-volatile memory die as said performance capabilities change over time;
determining, based on said total estimated time to completion of said read command, in what order to return requested data to said host relative to other data read commands received from said host; and
returning said requested data to said host in the order determined.

### Claim 15 (depends on 14)

The solid-state drive controller of claim 14, wherein said total estimated time to completion of said read command is based on said performance capabilities of said at least one non-volatile memory die deteriorating over time due to the physics underlying said at least one non-volatile memory die.

### Claim 16 (depends on 15)

The solid-state drive controller of claim 15, wherein said total estimated time to completion of said read command is based on a time for completion of an erase operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 17 (depends on 15)

The solid-state drive controller of claim 15, wherein said total estimated time to completion of said read command is based on a time for completion of a read operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 18 (depends on 15)

The solid-state drive controller of claim 15, wherein said total estimated time to completion of said read command is based on a time for completion of a write operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 19 (depends on 18)

The solid-state drive controller of claim 18, wherein said total estimated time to completion of said read command is based on a time for completion of a write operation on said at least one non-volatile memory die based on the type of said at least one non-volatile memory.

### Claim 20 (depends on 15)

The solid-state drive controller of claim 15, wherein said total estimated time to completion of said read command is based on current performance capabilities of a block corresponding to said at least one respective non-volatile memory die as said performance capabilities of said block change over time.

### Claim 21 (depends on 15)

The solid-state drive controller of claim 15, wherein said total estimated time to completion of said read command is based on current performance capabilities of a page corresponding to said at least one respective non-volatile memory die as said performance capabilities of said page change over time.

### Claim 22 (depends on 14)

The solid-state drive controller of claim 14, wherein said estimated time to completion for each operation submitted to a respective non-volatile memory die corresponding to said read command is computed in response to receiving said data read command from said host.

### Claim 23 (depends on 14)

The solid-state drive controller of claim 14, wherein said estimated time to completion for each operation submitted to a respective non-volatile memory die corresponding to said read command is computed and managed constantly for one or more of said respective non-volatile memory die, and wherein determining in what order to return requested data to said host is performed in response to receiving said data read command from said host.

### Claim 24

A solid-state drive (SSD) storage device comprising non-volatile memory dies and a controller for managing operations on said non-volatile memory dies, said SSD comprising:
said controller storing one or more sequence of instructions which, when executed by one or more processors, cause performance of:
receiving a data read command from said host;
computing a total estimated time to completion of said read command based on an estimated time to completion for each operation submitted to a respective non-volatile memory die corresponding to said read command;
wherein said total estimated time to completion of said read command is based on current performance capabilities of at least one respective non-volatile memory die as said performance capabilities change over time;
determining, based on said total estimated time to completion of said read command, in what order to return requested data to said host relative to other data read commands received from said host; and
returning said requested data to said host in the order determined.

### Claim 25 (depends on 24)

The solid-state drive storage device of claim 24, wherein said total estimated time to completion of said read command is based on said performance capabilities of said at least one non-volatile memory die deteriorating over time due to the physics underlying said at least one non-volatile memory die.

### Claim 26 (depends on 25)

The solid-state drive storage device of claim 25, wherein said total estimated time to completion of said read command is based on a time for completion of an erase operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 27 (depends on 25)

The solid-state drive storage device of claim 25, wherein said total estimated time to completion of said read command is based on a time for completion of a read operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 28 (depends on 25)

The solid-state drive storage device of claim 25, wherein said total estimated time to completion of said read command is based on a time for completion of a write operation on said at least one non-volatile memory die as said performance capabilities change over time.

### Claim 29 (depends on 28)

The solid-state drive storage device of claim 28, wherein said total estimated time to completion of said read command is based on a time for completion of a write operation on said at least one non-volatile memory die based on type of said at least one non-volatile memory.

### Claim 30 (depends on 25)

The solid-state drive storage device of claim 25, wherein said total estimated time to completion of said read command is based on current performance capabilities of a block corresponding to said at least one respective non-volatile memory die as said performance capabilities of said block change over time.

### Claim 31 (depends on 25)

The solid-state drive storage device of claim 25, wherein said total estimated time to completion of said read command is based on current performance capabilities of a page corresponding to said at least one respective non-volatile memory die as said performance capabilities of said page change over time.

### Claim 32 (depends on 24)

The solid-state drive storage device of claim 24, wherein said estimated time to completion for each operation submitted to a respective non-volatile memory die corresponding to said read command is computed in response to receiving said data read command from said host.

### Claim 33 (depends on 24)

The solid-state drive storage device of claim 24, wherein said estimated time to completion for each operation submitted to a respective non-volatile memory die corresponding to said read command is computed and managed constantly for one or more of said respective non-volatile memory die, and wherein determining in what order to return requested data to said host is performed in response to receiving said data read command from said host.
