# US 9,436,391 B1 · Efficient scalable I/O scheduling

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

- Number: US 9,436,391 B1
- Document ID: US9436391B1
- Status: Granted
- Kind: B1
- Application number: 14/229,690
- Filed: 2014-03-28
- Granted: 2016-09-06
- Earliest claimed: 2014-03-28
- Assignees: Formation Data Systems, Inc.
- Applicants: Formation Data Systems, Inc.
- Inventors: Mark S. Lewis; Vinay P. Rao; Anna Povzner; Subramanian Lakshmanan
- Web page: https://patentgrep.com/patent/US9436391B1

## CPC

- G06F 3/0613: {in relation to throughput}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0674: {Disk device}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An input/output (I/O) request is dispatched. A determination is made regarding a storage volume to service. A determination is made regarding whether an actual disk throughput exceeds a first threshold rate. The first threshold rate exceeds a reserved disk throughput. Responsive to determining that the actual disk throughput exceeds the first threshold rate, a first storage volume is selected based on credits or based on priority. Responsive to determining that the actual disk throughput does not exceed the first threshold rate, a second storage volume is selected based on guaranteed minimum I/O rate. An I/O request queue associated with the determined storage volume is determined. An I/O request is retrieved from the determined I/O request queue. The retrieved I/O request is sent to a persistence layer that includes the selected storage volume.

## Claims

### Claim 1

A method of selecting and dispatching an input/output (I/O) request from a set of I/O requests for a plurality of clients, the I/O requests specifying read or write from storage volumes for the clients, the storage volumes stored on a shared storage device, the storage volumes further having guaranteed minimum I/O rate requirements, the method comprising:
determining a storage volume to service, which comprises:
determining whether an actual disk throughput of I/O requests for the shared storage device exceeds a first threshold rate that is based on and exceeds a reserved disk throughput for the shared storage device, wherein the reserved disk throughput is a rate of I/O requests necessary to meet the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device;
responsive to determining that the actual disk throughput exceeds the first threshold rate, selecting the storage volume to service based on credits for the storage volumes or based on priority for the storage volumes; and
responsive to determining that the actual disk throughput does not exceed the first threshold rate, selecting the storage volume to service based on the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device;
determining an I/O request queue associated with the determined storage volume;
retrieving an I/O request from the determined I/O request queue; and
sending the retrieved I/O request to a persistence layer that includes the shared storage device.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the storage volume to service further comprises:
determining whether an I/O request queue associated with the storage volume is empty; and
responsive to determining that the I/O request queue associated with the storage volume is empty:
adding a credit for the storage volume;
determining whether the actual disk throughput is less than a second threshold rate that is less than the reserved disk throughput;
responsive to determining that the actual disk throughput meets the second threshold rate, selecting another storage volume to service based on the credits for the storage volumes or based on the priority for the storage volumes; and
responsive to determining that the actual disk throughput is less than the second threshold rate, selecting the other storage volume to service based on the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device.

### Claim 3 (depends on 2)

The method of claim 2, wherein adding a credit for the storage volume is performed only if a number of credits associated with the storage volume is less than a maximum credit limit.

### Claim 4 (depends on 1)

The method of claim 1, wherein the actual disk throughput is based on a number of I/O requests dispatched based on rate and a number of storage volumes that were selected based on rate but had zero I/O requests in an associated I/O request queue.

### Claim 5 (depends on 1)

The method of claim 1, wherein selecting the storage volume to service based on the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device comprises selecting the storage volume according to a rate-based scheduling sequence, the rate-based scheduling sequence comprising a minimum number of slots per storage volume necessary to meet the guaranteed minimum I/O rate requirement for each storage volume stored on the shared storage device.

### Claim 6 (depends on 1)

The method of claim 1, wherein selecting the storage volume to service based on priority for the storage volumes comprises selecting the storage volume according to a priority-based scheduling sequence, the priority-based scheduling sequence comprising a minimum number of slots per storage volume necessary to satisfy weights associated with each storage volume.

### Claim 7 (depends on 6)

The method of claim 6, wherein a weight associated with a storage volume is based on a relative priority of the storage volume.

### Claim 8 (depends on 1)

The method of claim 1, wherein selecting the storage volume to service based on credits for the storage volumes or based on priority for the storage volumes comprises:
determining whether a storage volume with a non-empty I/O request queue and more than zero credits exists;
responsive to determining that the storage volume with a non-empty I/O request queue and more than zero credits exists, selecting the storage volume based on credits for the storage volumes; and
responsive to determining that the storage volume with a non-empty I/O request queue and more than zero credits does not exist, selecting the storage volume based on priority for the storage volumes.

### Claim 9 (depends on 8)

The method of claim 8, wherein selecting the storage volume based on credits for the storage volumes comprises selecting the storage volume with a highest number of credits.

### Claim 10

A non-transitory computer-readable storage medium storing computer program modules for selecting and dispatching an input/output (I/O) request from a set of I/O requests for a plurality of clients, the I/O requests specifying read or write from storage volumes for the clients, the storage volumes stored on a shared storage device, the storage volumes further having guaranteed minimum I/O rate requirements, the computer program modules executable to perform steps comprising:
determining a storage volume to service, which comprises:
determining whether an actual disk throughput of I/O requests for the shared storage device exceeds a first threshold rate that is based on and exceeds a reserved disk throughput for the shared storage device, wherein the reserved disk throughput is a rate of I/O requests necessary to meet the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device;
responsive to determining that the actual disk throughput exceeds the first threshold rate, selecting the storage volume to service based on credits for the storage volumes or based on priority for the storage volumes; and
responsive to determining that the actual disk throughput does not exceed the first threshold rate, selecting the storage volume to service based on the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device;
determining an I/O request queue associated with the determined storage volume;
retrieving an I/O request from the determined I/O request queue; and
sending the retrieved I/O request to a persistence layer that includes the shared storage device.

### Claim 11 (depends on 10)

The computer-readable storage medium of claim 10, wherein
determining the storage volume to service further comprises:
determining whether an I/O request queue associated with the storage volume is empty; and
responsive to determining that the I/O request queue associated with the storage volume is empty:
adding a credit for the storage volume;
determining whether the actual disk throughput is less than a second threshold rate that is less than the reserved disk throughput;
responsive to determining that the actual disk throughput meets the second threshold rate, selecting another storage volume to service based on the credits for the storage volumes or based on the priority for the storage volumes; and
responsive to determining that the actual disk throughput is less than the second threshold rate, selecting the other storage volume to service based on the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device.

### Claim 12 (depends on 10)

The computer-readable storage medium of claim 10, wherein the actual disk throughput is based on a number of I/O requests dispatched based on rate and a number of volumes that were selected based on rate but had zero I/O requests in an associated I/O request queue.

### Claim 13 (depends on 10)

The computer-readable storage medium of claim 10, wherein selecting the storage volume to service based on the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device comprises selecting the storage volume according to a rate-based scheduling sequence, the rate-based scheduling sequence comprising a minimum number of slots per storage volume necessary to meet the guaranteed minimum I/O rate requirement for each storage volume stored on the shared storage device.

### Claim 14 (depends on 10)

The computer-readable storage medium of claim 10, wherein selecting the storage volume to service based on priority for the storage volumes comprises selecting the storage volume according to a priority-based scheduling sequence, the priority-based scheduling sequence comprising a minimum number of slots per storage volume necessary to satisfy weights associated with each storage volume.

### Claim 15 (depends on 10)

The computer-readable storage medium of claim 10, wherein selecting the storage volume to service based on credits for the storage volumes or based on priority for the storage volumes comprises:
determining whether a storage volume with a non-empty I/O request queue and more than zero credits exists;
responsive to determining that the storage volume with a non-empty I/O request queue and more than zero credits exists, selecting the storage volume based on credits for the storage volumes; and
responsive to determining that the storage volume with a non-empty I/O request queue and more than zero credits does not exist, selecting the storage volume based on priority for the storage volumes.

### Claim 16

A system for selecting and dispatching an input/output (I/O) request from a set of I/O requests for a plurality of clients, the I/O requests specifying read or write from storage volumes for the clients, the storage volumes stored on a shared storage device, the storage volumes further having guaranteed minimum I/O rate requirements, comprising:
a non-transitory computer-readable storage medium storing computer program modules executable to perform steps comprising:
determining a storage volume to service, which comprises:
determining whether an actual disk throughput of I/O requests for the shared storage device exceeds a first threshold rate that is based on and exceeds a reserved disk throughput for the shared storage device, wherein the reserved disk throughput is a rate of I/O requests necessary to meet the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device;
responsive to determining that the actual disk throughput exceeds the first threshold rate, selecting the storage volume to service based on credits for the storage volumes or based on priority for the storage volumes; and
responsive to determining that the actual disk throughput does not exceed the first threshold rate, selecting the storage volume to service based on the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device;
determining an I/O request queue associated with the determined storage volume;
retrieving an I/O request from the determined I/O request queue; and
sending the retrieved I/O request to a persistence layer that includes the shared storage device; and
a computer processor for executing the computer program modules.

### Claim 17 (depends on 16)

The system of claim 16, wherein determining the storage volume to service further comprises:
determining whether an I/O request queue associated with the storage volume is empty; and
responsive to determining that the I/O request queue associated with the storage volume is empty:
adding a credit for the storage volume;
determining whether the actual disk throughput is less than a second threshold rate that is less than the reserved disk throughput;
responsive to determining that the actual disk throughput meets the second threshold rate, selecting another storage volume to service based on the credits for the storage volumes or based on the priority for the storage volumes; and
responsive to determining that the actual disk throughput is less than the second threshold rate, selecting the other storage volume to service based on the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device.

### Claim 18 (depends on 16)

The system of claim 16, wherein selecting the storage volume to service based on the guaranteed minimum I/O rate requirements for the storage volumes stored on the shared storage device comprises selecting the storage volume according to a rate-based scheduling sequence, the rate-based scheduling sequence comprising a minimum number of slots per storage volume necessary to meet the guaranteed minimum I/O rate requirement for each storage volume stored on the shared storage device.

### Claim 19 (depends on 16)

The system of claim 16, wherein selecting the storage volume to service based on priority for the storage volumes comprises selecting the storage volume according to a priority-based scheduling sequence, the priority-based scheduling sequence comprising a minimum number of slots per storage volume necessary to satisfy weights associated with each storage volume.

### Claim 20 (depends on 16)

The system of claim 16, wherein selecting the storage volume to service based on credits for the storage volumes or based on priority for the storage volumes comprises:
determining whether a storage volume with a non-empty I/O request queue and more than zero credits exists;
responsive to determining that the storage volume with a non-empty I/O request queue and more than zero credits exists, selecting the storage volume based on credits for the storage volumes; and
responsive to determining that the storage volume with a non-empty I/O request queue and more than zero credits does not exist, selecting the storage volume based on priority for the storage volumes.
