# US 2012/0260047 A1 · Generalized positional ordering

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

- Number: US 2012/0260047 A1
- Document ID: US20120260047A1
- Status: Published application
- Kind: A1
- Application number: 13/081,251
- Filed: 2011-04-06
- Published: 2012-10-11
- Earliest claimed: 2011-04-06
- Assignees: Seagate Technology LLC
- Inventors: Jonathan W. Haines; Timothy R. Feldman; Wayne H. Vinson
- Web page: https://patentgrep.com/patent/US20120260047A1

## CPC

- G06F 3/06: Digital input from, or digital output to, record carriers {, e.g. RAID, emulated record carriers or networked record carriers}
- G06F 3/0613: {in relation to throughput}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0676: {Magnetic disk device}
- G06F 13/16: for access to memory bus (G06F13/28 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Implementations described and claimed herein provide a method and system for managing execution of commands for a storage device, the method comprising determining a plurality of commands to be executed for the storage device and while a storage device is executing at least one command, determining an execution order for at least two of the plurality of commands. Alternate implementation described and claimed herein provide a computer readable memory for storing a data structure, the data structure comprising a cost table comprising a number of cells, each cell containing one or more cost values related to one of a plurality of traversals between two locations on a storage device wherein each of the plurality of traversals is related to completion of one of a plurality of commands and a benefit array comprising a number of cells, each cell containing a benefit value related to completion of one of the plurality of commands.

## Claims

### Claim 1

A method comprising:
determining a plurality of commands for a storage device to be executed; and
while the storage device is executing at least one command, determining an execution order for at least two of the plurality of commands.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the execution order further comprises:
determining values of a plurality of cells in a rotational positional ordering (RPO) table.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining the execution order further comprises:
determining a plurality of paths in a command-ordering optimization tree, wherein each path provides an order for executing at least two or more of the plurality of commands.

### Claim 4 (depends on 3)

The method of claim 3, further comprising at least one cost attached to each of the plurality of paths.

### Claim 5 (depends on 3)

The method of claim 3, further comprising at least one benefit attached to each of the plurality of paths.

### Claim 6 (depends on 4)

The method of claim 4, wherein the cost attached to each of the plurality of paths is at least one of (1) time to execute the commands related to the each of the plurality of paths; (2) noise generated in executing the commands related to the each of the plurality of paths; (3) energy consumed in executing the commands related to the each of the plurality of paths; and (4) heat generated in executing the commands related to the each of the plurality of paths.

### Claim 7 (depends on 5)

The method of claim 5, wherein the benefit attached to each of the plurality of paths is at least one of (1) number of average queue entries eliminated per unit time by executing the commands related to the each of the plurality of paths and (2) number of total queue entries eliminated per command.

### Claim 8 (depends on 1)

The method of claim 1, wherein the determining an execution order for at least two of the plurality of commands further comprises determining a plurality of paths for executing the at least two of the plurality of commands.

### Claim 9 (depends on 8)

The method of claim 8, wherein the determining an execution order for at least two of the plurality of commands further comprises preprocessing only a subset of a plurality of paths for executing the at least two of the plurality of commands to determine a cost related to each of the subset of the plurality of paths.

### Claim 10

A computer readable memory for storing a data structure, the data structure comprising:
a cost table comprising a number of cells, each cell containing one or more cost values related to one of a plurality of traversals between two locations on a storage device wherein each of the plurality of traversals is related to completion of one of a plurality of commands; and
a benefit array comprising a number of cells, each cell containing a benefit value related to completion of one of the plurality of commands.

### Claim 11 (depends on 10)

The computer readable memory of claim 10, wherein each of the plurality of traversals represents a movement of a head of the storage device.

### Claim 12 (depends on 10)

A method of generating a directed graph based on the data structure of claim 10, the method comprising:
assigning the one or more cost values to the edges of the directed graph; and
assigning the benefit values to the nodes of the directed graph.

### Claim 13 (depends on 12)

A method of generating an optimization tree based on the data structure of claim 12, the method comprising:
calculating one or more total costs related to at least one path of the optimization tree; and
calculating one or more total benefits related to at least one path of the optimization tree.

### Claim 14 (depends on 13)

The method of claim 13, wherein generating the optimization tree comprises calculating costs and benefits related to at least one path of the optimization tree based on one of (1) a fixed depth depth-first search; (2) a breadth-first search; and (3) an iteratively deepening depth first search.

### Claim 15

A computer-readable storage medium encoding a computer program for executing a computer process on a computer system, the computer process comprising:
generating a rotational positional ordering (RPO) table for a storage device by (1) determining cost values related to a plurality of combinations of locations on the storage device, and (2) storing the cost values in a cost table in a computer readable memory.

### Claim 16 (depends on 15)

The computer-readable storage medium of claim 15, wherein generating the RPO table further comprises:
determining benefit values related to each of the plurality of combinations; and
storing the benefit values in a benefit array in the computer readable storage medium.

### Claim 17 (depends on 16)

The computer-readable storage medium of claim 16, wherein the cost values and the benefit values are determined when the storage device is performing one or more commands.

### Claim 18 (depends on 15)

The computer-readable storage medium of claim 15, wherein generating the RPO table further comprises preparing a command-ordering optimization tree up to a specific depth based on the RPO table.

### Claim 19 (depends on 18)

The computer-readable storage medium of claim 18, wherein the specific depth of the command-ordering optimization tree is one of (1) determined dynamically based on an amount of a resource available to a microprocessor; and (2) pre-determined based on heuristic analysis of incremental benefits of performing a search at a depth higher than the specific depth.

### Claim 20 (depends on 19)

The computer-readable storage medium of claim 19, wherein the available resource is at least one of (1) a microprocessor time and (2) microprocessor register space.
