# US 11,119,885 B2 · Latency measurement in an I/O operation of computer data storage

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

- Number: US 11,119,885 B2
- Document ID: US11119885B2
- Status: Granted
- Kind: B2
- Application number: 16/150,632
- Filed: 2018-10-03
- Published: 2020-04-09
- Granted: 2021-09-14
- Earliest claimed: 2018-10-03
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Denis Senin; Roderick G. C. Moore; Dan Critchley; Jonathan W. L. Short; Tim McCarthy
- Web page: https://patentgrep.com/patent/US11119885B2

## CPC

- G06F 11/3485: {for I/O devices}
- H04L 69/28: Timers or timing mechanisms used in protocols
- G06F 11/3034: {where the computing system component is a storage system, e.g. DASD based or network based (digital input from or digital output to record carriers G06F3/06; digital recording or reproducing G11B20/18; for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS], H04L67/1097)}
- G06F 11/3037: {where the computing system component is a memory, e.g. virtual memory, cache (accessing, addressing or allocating within memory systems or architectures G06F12/00; checking stores for correct operation G11C29/00)}
- G06F 11/3419: {by assessing time}
- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method and a computer program product for latency measurement in an I/O operation. A storage system measures time periods taken in a write I/O operation and, using the measures time periods in the write I/O operation, the storage system monitors a delay that is caused by at least one of a host and a storage area network. A storage system measures time periods taken in a read I/O operation and, using the measures time periods in the read I/O operation, the storage system monitors a delay that is caused by at least one of a host and a storage area network in the read I/O operation.

## Claims

### Claim 1

A method for latency measurement in a write I/O operation, the method comprising:
measuring from a storage system side, by a storage system connected to a host via a storage network, a first time period for sending a reply from the storage system to the host, in response to receiving a command of a write I/O operation, the first time period indicting performance of the storage system in its ability to process the command;
measuring from the storage system side, by the storage system, a second time period for starting data transfer by the host and the storage area network between the host and the storage system, the second time period indicating latency caused by the host and the storage area network before the data transfer;
measuring from the storage system side, by the storage system, a third time period for transferring each individual portion of data from the host to the storage system, the third time period indicating latency caused by the host and the storage area network during the data transfer;
measuring from the storage system side, by the storage system, a fourth time period for writing the data to cache memory, acknowledging the host of completion of the write I/O operation, and writing the data on the storage system, the fourth time period indicating latency caused by the storage system;
monitoring by the storage system using measured time periods taken in the write I/O operation, from the storage system side, whether a delay is caused by the host and the storage area network and caused by issues outside a scope of the storage system; and
notifying, by the storage system, the host of the delay caused by the issues outside the scope of the storage system.

### Claim 2 (depends on 1)

The method of claim 1, further comprises:
receiving, by the storage system, from the host, the command of the write I/O operation.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
logging, by the storage system, the measured time periods taken in the write I/O operation.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first time period is from a first time point to a second time point, the first time point is when the storage system receives from the host the command of the write I/O operation, and the second time point is when the storage system sends to the host an acknowledgement of being ready for the data transfer.

### Claim 5 (depends on 4)

The method of claim 4, wherein the second time period is from the second time point to a third time point, the third time point is when the storage system receives from the host a first individual portion of the data.

### Claim 6 (depends on 5)

The method of claim 5, wherein the third time period is from the third time point to a fourth time point, the fourth time point is when the storage system receives from the host all individual portions of the data.

### Claim 7 (depends on 6)

The method of claim 6, wherein the fourth time period is from the fourth time point to a fifth time point, the fifth time point is when the storage system sends to the host an acknowledgment of success of the write I/O operation.

### Claim 8

A method for latency measurement in a read I/O operation, the method comprising:
measuring from a storage system side, by a storage system connected to a host via a storage network, a first time period for reading data from a back end of the storage system, in response to receiving a command of a read I/O operation;
measuring from the storage system side, by the storage system, a second time period for transferring each individual portion of the data from the storage system to the host through the storage area network;
measuring from the storage system side, by the storage system, a third time period for acknowledging the host of completion of the read I/O operation;
monitoring by the storage system using measured time periods taken in the read I/O operation, from the storage system side, whether a delay is caused by at least one of hosts and the storage area network and caused by issues outside a scope of the storage system; and
notifying, by the storage system, the host of the delay caused by the issues outside the scope of the storage system.

### Claim 9 (depends on 8)

The method of claim 8, further comprises:
receiving, by the storage system, from the host, the command of the read I/O operation.

### Claim 10 (depends on 8)

The method of claim 8, further comprising:
logging, by the storage system, the measured time periods taken in the read I/O operation.

### Claim 11 (depends on 8)

The method of claim 8, wherein the first time period is from a first time point to a second time point, the first time point is when the storage system receives from the host the command of the read I/O operation, and the second time point is when the storage system sends to the host a first individual portion of the data.

### Claim 12 (depends on 11)

The method of claim 11, wherein the second time period is from the second time point to a third time point, the third time point is when the storage system completes data transfer for all individual portions of the data.

### Claim 13 (depends on 12)

The method of claim 12, wherein the third time period is from the third time point to a fourth time point, the fourth time point is when the storage system sends to the host an acknowledgment of success of the read I/O operation.

### Claim 14

A computer program product for latency measurement in a write I/O operation, the computer program product comprising one or more computer-readable tangible storage devices and program instructions stored on at least one of the one or more computer-readable tangible storage devices, the program instructions executable to:
measure from a storage system side, by a storage system connected to a host via a storage network, a first time period for sending a reply from the storage system to the host, in response to receiving a command of a write I/O operation, the first time period indicting performance of the storage system in its ability to process the command;
measure from the storage system side, by the storage system, a second time period for starting data transfer by the host and the storage area network between the host and the storage system, the second time period indicating latency caused by the host and the storage area network before the data transfer;
measure from the storage system side, by the storage system, a third time period for transferring each individual portion of data from the host to the storage system, the third time period indicating latency caused by the host and the storage area network during the data transfer;
measure from the storage system side, by the storage system, a fourth time period for writing the data to cache memory, acknowledge the host of completion of the write I/O operation, and write the data on the storage system, the fourth time period indicating latency caused by the storage system;
monitor by the storage system using measured time periods taken in the write I/O operation, from the storage system side, whether a delay is caused by the host and the storage area network and caused by issues outside a scope of the storage system; and
notify, by the storage system, the host of the delay caused by the issues outside the scope of the storage system.

### Claim 15 (depends on 14)

The computer program product of claim 14, further comprising the program instructions executable to:
receive, by the storage system, from the host, the command of the write I/O operation.

### Claim 16 (depends on 14)

The computer program product of claim 14, further comprising the program instructions executable to:
log, the storage system, the measured time periods taken in the write I/O operation.

### Claim 17 (depends on 14)

The computer program product of claim 14, wherein the first time period is from a first time point to a second time point, the first time point is when the storage system receives from the host the command of the write I/O operation, and the second time point is when the storage system sends to the host an acknowledgement of being ready for the data transfer.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the second time period is from the second time point to a third time point, the third time point is when the storage system receives from the host a first individual portion of the data.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the third time period is from the third time point to a fourth time point, the fourth time point is when the storage system receives from the host all individual portions of the data.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the fourth time period is from the fourth time point to a fifth time point, the fifth time point is when the storage system sends to the host an acknowledgment of success of the write I/O operation.
