# US 10,768,826 B2 · Disk detection method and apparatus

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

- Number: US 10,768,826 B2
- Document ID: US10768826B2
- Status: Granted
- Kind: B2
- Application number: 15/883,029
- Filed: 2018-01-29
- Published: 2018-05-31
- Granted: 2020-09-08
- Earliest claimed: 2015-07-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jinghui Li; Jindong Zhang; Cheng Huang
- Web page: https://patentgrep.com/patent/US10768826B2

## CPC

- G06F 3/0611: {in relation to response time}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F 11/22: Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- 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/3072: {where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting}
- G06F 11/3419: {by assessing time}
- G06F 11/3485: {for I/O devices}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention provides a disk detection method and apparatus. The method includes: collecting a set of N pieces of real-time data that are in a one-to-one correspondence with N input/output I/O-related counters of a disk, where the N I/O-related counters include an I/O response time of the disk and a counter affecting the I/O response time; the I/O response time is a time between delivery of an operation request by an application and reception of a response of the disk to the request; determining, according to the N pieces of real-time data, whether the I/O response time is abnormal; and outputting a detection result if the I/O response time is abnormal, where the detection result is used to represent that the I/O response time is abnormal.

## Claims

### Claim 1

A disk detection method, comprising:
collecting a set of N pieces of real-time data that are in a one-to-one correspondence with N I/O-related counters of a disk, wherein
the N I/O-related counters comprise an I/O response time of the disk and a counter affecting the I/O response time, the I/O response time being a time between delivery of an operation request by an application and reception of a response of the disk to the request; and
N is an integer greater than or equal to 2;
determining, according to the N pieces of real-time data, whether the I/O response time is abnormal, wherein the I/O response time being abnormal indicates that the disk is incapable of normally running a service, and the I/O response time being normal indicates that the disk is capable of normally running a service; and
outputting a detection result if the I/O response time is abnormal, wherein the detection result represents that the I/O response time is abnormal; and,
wherein determining, according to the N pieces of real-time data, whether the I/O response time is abnormal comprises:
determining, from at least two preset intervals of each I/O-related counter of remaining N−1 I/O-related counters other than the I/O response time counter, a preset interval that each of N−1 pieces of real-time data corresponding to the remaining N−1 I/O-related counters is in, wherein the N−1 pieces of real-time data corresponding to the remaining N−1 I/O-related counters are respectively in N−1 preset intervals, and the at least two preset intervals of each I/O-related counter of the N−1 I/O-related counters are at least two subinterval ranges obtained by dividing a large range between a first value and a second value, the first value and the second value that each of the N−1 I/O-related counters is capable of supporting;
determining whether real-time data corresponding to the I/O response time exceeds an I/O response time threshold corresponding to a combination of the N−1 preset intervals, wherein the I/O response time threshold is less than or equal to a maximum I/O response time value that enables the disk to normally run the service, when the N−1 pieces of real-time data are in respective preset intervals; and
if the real-time data corresponding to the I/O response time exceeds the I/O response time threshold, determining that the I/O response time is abnormal.

### Claim 2

A disk detection apparatus, comprising:
a data collection unit, configured to collect a set of N pieces of real-time data that are in a one-to-one correspondence with N input/output I/O-related counters of a disk, wherein
the N I/O-related counters comprise an I/O response time of the disk and a counter affecting the I/O response time;
the I/O response time is a time between delivery of an operation request by an application and reception of a response of the disk to the request; and
N is an integer greater than or equal to 2; and
a processing unit, configured to determine, according to the N pieces of real-time data, whether the I/O response time is abnormal, wherein the I/O response time being abnormal indicates that the disk is incapable of normally running a service, and the I/O response time being normal indicates that the disk is capable of normally running a service; and output a detection result if the I/O response time is abnormal, wherein the detection result represents that the I/O response time is abnormal; and
wherein the processing unit is configured to determine, from at least two preset intervals of each I/O-related counter of remaining N−1 I/O-related counters other than the I/O response time counter, a preset interval that each of N−1 pieces of real-time data corresponding to the remaining N−1 I/O-related counters is in, wherein the N−1 pieces of real-time data corresponding to the remaining N−1 I/O-related counters are respectively in N−1 preset intervals, and the at least two preset intervals of each I/O-related counter of the N−1 I/O-related counters are at least two subinterval ranges obtained by dividing a large range between a first value and a second value, the first value and the second value that each of the N−1 I/O-related counters is capable of supporting;
determine whether real-time data corresponding to the I/O response time exceeds an I/O response time threshold corresponding to a combination of the N−1 preset intervals, wherein the I/O response time threshold is less than or equal to a maximum I/O response time value that enables the disk to normally run the service, when the N−1 pieces of real-time data are in respective preset intervals; and
if the real-time data corresponding to the I/O response time exceeds the I/O response time threshold, determine that the I/O response time is abnormal.

### Claim 3

An electronic device, comprising:
a memory, configured to store data used by a processor; and
the processor, configured to collect a set of N pieces of real-time data that are in a one-to-one correspondence with N I/O-related counters of a disk, wherein
the N I/O-related counters comprise an I/O response time of the disk and a counter affecting the I/O response time, the I/O response time being a time between delivery of an operation request by an application and reception of a response of the disk to the request;
and N is an integer greater than or equal to 2, wherein
the processor is further configured to
determine, according to the N pieces of real-time data, whether the I/O response time is abnormal, wherein the I/O response time being abnormal indicates that the disk is incapable of normally running a service, and the I/O response time being normal indicates that the disk is capable of normally running a service; and
output a detection result if the I/O response time is abnormal, wherein the detection result represents that the I/O response time is abnormal;
wherein the processor is configured to determine, from at least two preset intervals of each I/O-related counter of remaining N−1 I/O-related counters other than the I/O response time counter, a preset interval that each of N−1 pieces of real-time data corresponding to the remaining N−1 I/O-related counters is in, wherein the N-1 pieces of real-time data corresponding to the remaining N−1 I/O-related counters are respectively in N−1 preset intervals, and the at least two preset intervals of each I/O-related counter of the N−1 I/O-related counters are at least two subinterval ranges obtained by dividing a large range between a first value and a second value, the first value and the second value that each of the N−1 I/O-related counters is capable of supporting;
determine whether real-time data corresponding to the I/O response time exceeds an I/O response time threshold corresponding to a combination of the N−1 preset intervals, wherein the I/O response time threshold is less than or equal to a maximum I/O response time value that enables the disk to normally run the service, when the N−1 pieces of real-time data are in respective preset intervals; and
if the real-time data corresponding to the I/O response time exceeds the I/O response time threshold, determine that the I/O response time is abnormal.

### Claim 4

A disk system, comprising:
a disk; and
a disk controller, configured to collect a set of N pieces of real-time data that are in a one-to-one correspondence with N I/O-related counters of the disk, wherein
the N I/O-related counters comprise an I/O response time of the disk and a counter affecting the I/O response time, the I/O response time being a time between delivery of an operation request by an application and reception of a response of the disk to the request; and
N is an integer greater than or equal to 2, wherein
the disk controller is further configured to determine, according to the N pieces of real-time data, whether the I/O response time is abnormal, wherein the I/O response time being abnormal indicates that the disk is incapable of normally running a service, and the I/O response time being normal indicates that the disk is capable of normally running a service; and output a detection result if the I/O response time is abnormal, wherein the detection result represents that the I/O response time is abnormal; and
wherein the disk controller is configured to determine, form at least two preset intervals of each I/O-related counter of remaining N−1 I/O-related counters other than the I/O response time counter, a preset interval that each of N−1 pieces of real-time data corresponding to the remaining N−1 I/O-related counters is in, wherein the N−1 pieces of real-time data corresponding to the remaining N−1 I/O-related counters are respectively in N−1 preset intervals, and the at least two preset intervals of each I/O-related counter of the N−1 I/O-related counters are at least two subinterval ranges obtained by dividing a large range between a first value and a second value, the first value and the second value that each of the N−1 I/O-related counters is capable of supporting;
determine whether real-time data corresponding to the I/O response time exceeds an I/O response time threshold corresponding to a combination of the N−1 preset intervals, wherein the I/O response time threshold is less than or equal to a maximum I/O response time value that enables the disk to normally run the service, when the N−1 pieces of real-time data are in respective preset intervals; and
if the real-time data corresponding to the I/O response time exceeds the I/O response time threshold, determine that the I/O response time is abnormal.
