# US 2021/0174224 A1 · Storage System and Sorting-Based Method for Random Read Command Prediction in a Multi-Queue System

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

- Number: US 2021/0174224 A1
- Document ID: US20210174224A1
- Status: Published application
- Kind: A1
- Application number: 16/708,107
- Filed: 2019-12-09
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Eran Sharon; Ariel Navon; Shay Benisty
- Web page: https://patentgrep.com/patent/US20210174224A1

## CPC

- G06N 5/04: Inference or reasoning models
- G06F 3/0611: {in relation to response time}
- G06F 3/0613: {in relation to throughput}
- 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]}
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage system and sorting-based method for random read command prediction in a multi-queue system are provided. In one embodiment, a method for command prediction is performed in a storage system comprising a memory and being in communication with a host. The method comprises receiving a read command sequence from the host, wherein read commands in the read command sequence originate from a plurality of command queues in the host such that read commands in the read command sequence received from the host are out of order; sorting read commands in the read command sequence received from the host based on logical block addresses; and predicting a next read command from the sorted read commands. Other embodiments are provided.

## Claims

### Claim 1

A method for command prediction, the method comprising:
performing the following in a storage system comprising a memory and being in communication with a host:
receiving a read command sequence from the host, wherein read commands in the read command sequence originate from a plurality of command queues in the host such that read commands in the read command sequence received from the host are out of order;
sorting read commands in the read command sequence received from the host based on logical block addresses; and
predicting a next read command from the sorted read commands.

### Claim 2 (depends on 1)

The method of claim 1, wherein the read command sequence originates from a single thread in the host.

### Claim 3 (depends on 2)

The method of claim 2, wherein the single thread comprises one of the following: a submission/completion queue pair, a namespace identifier, a host port, a virtual function, and a stream identifier.

### Claim 4 (depends on 1)

The method of claim 1, wherein the commands in the read command sequence are sorted by directing different permutations of logical block addresses to a same sort pattern.

### Claim 5 (depends on 1)

The method of claim 1, wherein the memory comprises a three-dimensional memory.

### Claim 6 (depends on 1)

The method of claim 1, wherein the storage system is configured to be integrated in the host.

### Claim 7 (depends on 1)

The method of claim 1, wherein the storage system is configured to be removably connected with the host.

### Claim 8

A storage system comprising:
a memory; and
a controller configured to be in communication with the memory, wherein the controller is further configured to:
maintaining, for each previously-received read command logical block address, a list of associated read command logical block addresses and their frequency;
updating a current-command logical block address at each logger address in a history logger that is associated with each command in a command sequence; and
predicting a next command by accessing the history logger to extract a set of lists of associated logical block addresses to each logical block address in the command sequence.

### Claim 9 (depends on 8)

The storage system of claim 8, wherein the updating comprises adding the current-command logical block address to a list of logical block addresses associated with a hash function in the history logger.

### Claim 10 (depends on 8)

The storage system of claim 8, wherein the updating comprises incrementing a frequency counter associated with the current-command logical block address.

### Claim 11 (depends on 8)

The storage system of claim 8, wherein the predicted logical block address is determined as a most-frequent logical block address in the set of logical block address lists.

### Claim 12 (depends on 8)

The storage system of claim 8, wherein the current command sequence originates from multiple threads in the host.

### Claim 13 (depends on 12)

The storage system of claim 12, wherein the multiple threads comprise two or more of the following: a submission/completion queue pair, a namespace identifier, a host port, a virtual function, and a stream identifier.

### Claim 14 (depends on 8)

The storage system of claim 8, wherein the memory comprises a three-dimensional memory.

### Claim 15 (depends on 8)

The storage system of claim 8, wherein the storage system is configured to be integrated in the host.

### Claim 16 (depends on 8)

The storage system of claim 8, wherein the storage system is configured to be removably connected with the host.

### Claim 17

A storage system comprising:
a memory;
means maintaining, for each previously-received read command logical block address, a list of associated read command logical block addresses and their frequency;
means for updating a current-command logical block address at each logger address in a history logger that is associated with each command in a command sequence; and
means for predicting a next command by accessing the history logger to extract a set of lists of associated logical block addresses to each logical block address in the command sequence.

### Claim 18 (depends on 17)

The storage system of claim 17, wherein the command sequence originates from a single thread in the host.

### Claim 19 (depends on 17)

The storage system of claim 17, wherein the command sequence originates from multiple threads in the host.

### Claim 20 (depends on 17)

The storage system of claim 17, wherein the memory comprises a three-dimensional memory.
