CN103488544A - Processing method and device for detecting slow disk - Google Patents

Processing method and device for detecting slow disk Download PDF

Info

Publication number
CN103488544A
CN103488544A CN201310445133.5A CN201310445133A CN103488544A CN 103488544 A CN103488544 A CN 103488544A CN 201310445133 A CN201310445133 A CN 201310445133A CN 103488544 A CN103488544 A CN 103488544A
Authority
CN
China
Prior art keywords
time interval
request
time
hard disk
slowly
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310445133.5A
Other languages
Chinese (zh)
Other versions
CN103488544B (en
Inventor
叶丞
李元
毛长生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Haining Warp Knitting Industrial Park Development Co., Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310445133.5A priority Critical patent/CN103488544B/en
Publication of CN103488544A publication Critical patent/CN103488544A/en
Application granted granted Critical
Publication of CN103488544B publication Critical patent/CN103488544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

An embodiment of the invention provides a processing method and device for detecting a slow disk. The method includes acquiring an I/O delay of each input/output I/O request of a hard disk from the start of the pre-detection period; determining relative relation between each I/O request and each time interval according to the I/O delay of each I/O request; acquiring the time intervals by dividing time length of the pre-detection period into a plurality of intervals; at the end of the pre-detection period, determining the number of the I/O requests corresponding to each time interval according to relative relation of each I/O request and each time interval; determining the hard disk is a slow disk according to the number of the I/O requests corresponding to each time interval and a preset threshold corresponding to each time interval. By the aid of the processing method and device for detecting the slow disk, the relative relation between the number of the I/O requests and the I/O delay, the slow disk can be detected accurately and removed, and unexpected influences of the slow disc on businesses can be avoided.

Description

Detect disposal route and the device of dish slowly
Technical field
The embodiment of the present invention relates to computer technology, relates in particular to disposal route and device that a kind of detection is coiled slowly.
Background technology
In order to meet the treatment effeciency of the business that improves constantly, a plurality of hard disks are set on equipment usually, but hard disk is due to reasons such as bad track and extraneous vibrations, process I/O(Input/Output, while I/O) asking, can spend the more time to carry out error correction, cause the request to I/O to respond slow, thereby on this hard disk, the treatment effeciency of handled business reduces, when serious, cause host service to interrupt, affected the performance of equipment, wherein thisly I/O request respond slow, the hard disk that affects business processing efficiency is called slowly and coils.Therefore, at equipment during by a plurality of hard disk processing business, real-time is detected each hard disk, concrete, the I/O that records on each hard disk each I/O request postpones, and described I/O postpones for the I/O request from the initial time that is handed down to hard disk to this hard disk for I/O, asking to be responded the required time; Add up subsequently I/O within a period of time and postpone the I/O request quantity over the Preset Time threshold value, if on a hard disk, I/O postpones to surpass the I/O request quantity of Preset Time threshold value over certain predetermined threshold value, determine that this hard disk is for coiling slowly, just this is coiled slowly to the RAID(Redundant Arrays of Inexpensive Disks from disk array, disk array) in group, remove, with the efficiency of the processing business of support equipment.
But find in actual applications, on hard disk, I/O postpones to ask with I/O the incidence relation of quantity, within a period of time, the quantity that on hard disk, the lower I/O of I/O delay asks is more, and I/O postpones the negligible amounts of higher I/O request, therefore, if on hard disk, I/O postpones to be less than the 300ms(millisecond) I/O request quantity be 60, and the I/O request quantity that I/O postpones between 300ms~400ms is 2, if the now judgement Rule of judgment of dish slowly is that " I/O postponed to surpass the I/O request quantity of 300ms over 50 o'clock, this hard disk is for coiling slowly ", according to this Rule of judgment, can confirm that above-mentioned hard disk is not to coil slowly, but equipment is when the business of processing, although the quantity that on hard disk, the higher I/O of I/O delay asks seldom, but the harmful effect that the efficiency of hard disk processing business is produced is larger, therefore, adopt detection scheme of the prior art, can accurately not detect dish slowly, can not will coil and remove slowly timely, cause the hydraulic performance decline of equipment.
Summary of the invention
Disposal route and device that the embodiment of the present invention provides a kind of detection to coil slowly, for optimizing the process that dish detects slowly, so that the connection and reasonable arrangement of hard disk on equipment.
First aspect, the disposal route that the embodiment of the present invention provides a kind of detection to coil slowly comprises:
From preset detection time, the initial time I/O that starts to obtain each I/O I/O request hard disk of section postpones;
Postpone according to the I/O of each described I/O request, determine the corresponding relation of each described I/O request and each time interval; Described each time interval be by described preset detection time section time span be divided into a plurality of intervals and obtain;
In the finish time of described preset detection time of section, the corresponding relation according to each described I/O request with each described time interval, determine the I/O request quantity that each described time interval is corresponding;
The I/O corresponding according to each described time interval asks quantity and predetermined threshold value corresponding to each described time interval, determines that described hard disk is for coiling slowly.
In conjunction with first aspect, in the first embodiment, the described I/O according to each described I/O request postpones, and determines the corresponding relation of each time interval in each described I/O request and described preset detection time section, comprising:
The I/O of more described I/O request postpones starting point and the terminal with each described time interval;
If the I/O of described I/O request postpones to be greater than the starting point in very first time interval in described each described time interval, and be less than the terminal in described very first time interval, determine that described I/O request is corresponding to described very first time interval.
In conjunction with first aspect the first embodiment, in the second embodiment, described I/O request quantity and predetermined threshold value corresponding to each described time interval corresponding according to each described time interval, determine that described hard disk, for coiling slowly, comprising:
If the I/O request quantity that described time interval is corresponding is more than or equal to the predetermined threshold value that described time interval is corresponding, determine that described time interval is the interval of transfiniting;
In described each time interval, if there is the interval of transfiniting, determine that described hard disk is for coiling slowly; Perhaps
Each time interval in described each time interval is the described interval of transfiniting, and determines that described hard disk is for coiling slowly;
In conjunction with first aspect to any one embodiment in first aspect the second embodiment, in the 3rd embodiment, described preset detection time section initial time with issue issuing of each I/O request to described hard disk constantly identical.
Second aspect, the treating apparatus that the embodiment of the present invention provides a kind of detection to coil slowly comprises:
Acquisition module, for from preset detection time section the initial time I/O that starts to obtain each I/O I/O request hard disk postpone;
The first determination module, postpone for the I/O according to each described I/O request, determines the corresponding relation of each described I/O request and each time interval; Described each time interval be by described preset detection time section time span be divided into a plurality of intervals and obtain;
The second determination module, for the finish time in described preset detection time of section, the corresponding relation according to each described I/O request with each described time interval, determine the I/O request quantity that each described time interval is corresponding;
The 3rd determination module, for I/O request quantity and predetermined threshold value corresponding to each described time interval corresponding according to each described time interval, determine that described hard disk is for coiling slowly.
In conjunction with second aspect, in the first embodiment, the first determination module is specifically for the I/O delay of more described I/O request and starting point and the terminal of each described time interval;
If the I/O of described I/O request postpones to be greater than the starting point in very first time interval in described each described time interval, and be less than the terminal in described very first time interval, determine that described I/O request is corresponding to described very first time interval.
In conjunction with second aspect the first embodiment, in the second embodiment, if the I/O request quantity that the 3rd determination module is corresponding specifically for described time interval is more than or equal to the predetermined threshold value that described time interval is corresponding, determine that described time interval is the interval of transfiniting;
In described each time interval, if there is the interval of transfiniting, determine that described hard disk is for coiling slowly; Perhaps
Each time interval in described each time interval is the described interval of transfiniting, and determines that described hard disk is for coiling slowly;
In conjunction with second aspect to any one embodiment in second aspect the second embodiment, in the 3rd embodiment, described preset detection time section initial time with issue issuing of each I/O request to described hard disk constantly identical.
The disposal route that the detection that the embodiment of the present invention provides is coiled slowly and device, by by preset detection time section time span be divided into a plurality of time intervals, and be provided with predetermined threshold value to each time interval, thereby I/O that can be corresponding according to each time interval request quantity and predetermined threshold value corresponding to each time interval, determine accurately dish slowly, taken into full account the incidence relation that I/O request quantity and I/O postpone, considered the regularity of distribution of I/O request on time domain, thereby detect accurately to coil slowly and remove this, coil slowly, avoid the processing of coiling slowly business to cause harmful effect, to improve the performance of equipment.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is that the present invention detects the process flow diagram of the disposal route embodiment mono-of dish slowly;
Fig. 2 is that the present invention detects the process flow diagram of the disposal route embodiment bis-of dish slowly;
Fig. 3 is that the present invention detects the structural drawing of the treating apparatus embodiment mono-of dish slowly;
Fig. 4 is that the present invention detects the structural drawing of the treating apparatus embodiment bis-of dish slowly.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Fig. 1 is that the present invention detects the process flow diagram of the disposal route embodiment mono-of dish slowly.As shown in Figure 1, the executive agent of the present embodiment is for detecting the treating apparatus of dish slowly, and this device can adopt the mode of hardware and/or software to realize, preferably, this treating apparatus can be arranged on the equipment that has loaded hard disk, is convenient to the hard disk in equipment is detected, concrete, the method comprises:
S101, from preset detection time section the initial time I/O that starts to obtain each I/O request hard disk postpone.
As a rule, equipment issues the I/O request by driver, I/O interface etc. to the hard disk in equipment, and equipment is when each I/O request issued to hard disk, can stamp timestamp to each I/O request, this timestamp has recorded the moment that the I/O request issues, As time goes on, when when hard disk, to I/O, response is made in request, above-mentioned treating apparatus can ask to make the moment of response and issuing constantly of the record of the timestamp in this I/O request to I/O according to hard disk, calculates the I/O delay of each I/O request.
Wherein preset detection time section initial time with issue issuing of each I/O request to hard disk constantly identical, be current need to the detection hard disk, when equipment issues each I/O request to hard disk, above-mentioned treating apparatus starts the preset time period timing, and this Startup time is the initial time of preset detection time of section.Wherein the concrete time span of preset time period can arrange according to actual needs flexibly, and usually according to practical experience, the time span that the highest I/O that occurred of usining on equipment postpones is as the time span of preset time period.
S102, the I/O asked according to each I/O postpone, and determine the corresponding relation of each I/O request and each time interval.
Above-mentioned each time interval be by described preset detection time section time span be divided into a plurality of intervals and obtain; Concrete, preset time period be that time span is T, this time span T is divided into to [X 1, X 2), [X 2, X 3) ... [X i, X i+1) ... [X n-1, X n), wherein, X n=T, i is positive integer, and n>i>=1, and X i<X i+1.
The I/O that obtains an I/O request when treating apparatus postpones, and the I/O that relatively this I/O asks postpones starting point and the terminal with each described time interval; If the I/O of I/O request postpones to be greater than starting point (the above-mentioned X in very first time interval in each time interval i), and be less than the terminal (X in very first time interval i+1), determine that described I/O request is corresponding to described very first time interval, this very first time interval can be any one time interval in above-mentioned each time interval, for an I/O request, if the I/O that exists the starting point of a time interval to be less than this I/O request postpones, and the I/O that the terminal of this time interval is greater than this I/O request postpones, this time interval is very first time interval for this I/O request.
For instance, preset time period T=400ms, this preset time period be divided into [0,100ms), [100ms, 200ms), [200ms, 300ms), [300ms, 400ms); When the I/O of an I/O request postpones for 250ms, by the I/O delay of relatively this I/O request and starting point and the terminal of each described time interval, determine interval [200ms of the very first time, starting point 200ms 300ms) is less than 250ms, and terminal 300ms is greater than 250ms, determine this I/O request corresponding to the very first time interval [200ms, 300ms).
S103, in the finish time of preset detection time of section, the corresponding relation according to each I/O request with each described time interval, determine the I/O request quantity that each time interval is corresponding;
Described in S101, treating apparatus starts to carry out timing when equipment issues the I/O request, and the moment that each I/O request is responded is also different, As time goes on, whenever an I/O request is responded, treating apparatus is carried out S101 and S102, determine the corresponding relation of each I/O request and each time interval, when clock, arrive the finish time of preset detection time of section, corresponding relation according to each I/O request with each time interval, determine the I/O request quantity that each time interval is corresponding, for example, in preset detection time section, there is successively I/O request 1 to I/O request 5 to be responded, by S101 and S102, determine I/O request 1, I/O request 2 and I/O request 5 totally 3 I/O are asked corresponding to time interval [200ms, 300ms), and I/O request 3 and I/O request 4 are corresponding to [300ms, 400ms), pass through S103, determine time interval [200ms, 300ms) corresponding I/O request number is 3, and time interval [300ms, 400ms) corresponding I/O request number is 2.
S104, the I/O corresponding according to each time interval ask quantity and predetermined threshold value corresponding to each time interval, determine that described hard disk is for coiling slowly.
In the present embodiment, each time interval for the treatment of apparatus subtend is provided with predetermined threshold value, at definite hard disk whether when coiling slowly, I/O request quantity and predetermined threshold value corresponding to each described time interval corresponding according to each described time interval, determine that whether hard disk is for coiling slowly, taken into full account the incidence relation that I/O request quantity and I/O postpone, on time domain, considered the regularity of distribution of I/O request, thereby can determine accurately that whether hard disk is for coiling slowly.
In the present embodiment, by by preset detection time section time span be divided into a plurality of time intervals, and be provided with predetermined threshold value to each time interval, thereby I/O that can be corresponding according to each time interval request quantity and predetermined threshold value corresponding to each time interval, determine accurately dish slowly, taken into full account the incidence relation that I/O request quantity and I/O postpone, considered the regularity of distribution of I/O request on time domain, thereby can detect accurately and coil slowly and remove this and coil slowly, avoid the processing of coiling slowly business to cause harmful effect, to improve the performance of equipment.
Fig. 2 is that the present invention detects the process flow diagram of the disposal route embodiment bis-of dish slowly.As shown in Figure 2, the method is on the basis of the embodiment mono-shown in Fig. 1, further describes the disposal route that detection is coiled slowly, and concrete, the method comprises:
S201, from preset detection time section the initial time I/O that starts to obtain each I/O I/O request hard disk postpone.
Specifically, as described in S101, do not repeat them here.
The I/O of S202, comparison I/O request postpones starting point and the terminal with each time interval.
By described in S201 preset detection time section initial time rise, just carry out S201 after an I/O request is by response, according to the I/O of this I/O request, postpone subsequently, with starting point and the terminal of each time interval, compare.
If the I/O of S203 I/O request postpones to be greater than the starting point in very first time interval in each described time interval, and be less than the terminal in very first time interval, determine that the I/O request is corresponding to described very first time interval.
Concrete, suppose that I/O request 5 is responded, according to the I/O of I/O request 5, postpone, successively with preset time period in the starting point of each time interval and terminal relatively, for example the I/O delay of I/O request 5 is greater than a time interval [X i, X i+1) starting point X iand be less than this time interval [X i, X i+1) terminal X i+1, i.e. this time interval [X i, X i+1) concerning I/O request 5, be very first time interval, determine that this I/O request is corresponding to this very first time interval, concrete, can be by this time interval [X i, X i+1) corresponding counter adds 1; Certainly can understand, if the I/O of I/O request 5 postpones not satisfy condition " to be not more than a time interval [X i, X i+1) starting point X iand be less than this time interval [X i, X i+1) terminal X i+1", this time interval [X i, X i+1) corresponding counter remains unchanged, the I/O of I/O request 5 postpones to continue to go comparison with the other times interval; Optionally, determining I/O request and certain time interval at once, can, in the time interval table, this I/O request be recorded in the form at corresponding time interval place.
S204, in the finish time of preset detection time of section, the corresponding relation according to each I/O request with each time interval, determine the I/O request quantity that each time interval is corresponding.
Description based in S203, each I/O request can be passed through the counter of each time interval with the corresponding relation of each time interval, or in the time interval table, the I/O of the interior record of form at each time interval place asks to characterize, in finish time of preset detection time of section, treating apparatus is when carrying out S204, can check the counter of each time interval, the quantity that perhaps in the timing statistics interval table, in the form at each time interval place, the I/O of record asks, with the I/O request quantity of determining that each time interval is corresponding.
S205, the I/O corresponding according to each time interval ask quantity and predetermined threshold value corresponding to each described time interval, determine that described hard disk is for coiling slowly.
Concrete, I/O request quantity and predetermined threshold value corresponding to each time interval that relatively time interval is corresponding, if the I/O request quantity that a time interval in described each time interval is corresponding is more than or equal to the predetermined threshold value that this time interval is corresponding, determine that this time interval is the interval of transfiniting; Subsequently at definite hard disk whether when coiling slowly, the first Rule of judgment that can foundation is:
In each time interval, if there is the interval of transfiniting, determine that hard disk is for coiling slowly;
In actual applications, coil slowly the impact of certain equipment greatlyr, when coiling slowly for this equipment Inspection, can detect with stricter condition,, in each time interval, once there be the interval of transfiniting, just determine that this hard disk is for coiling slowly.Time interval with above-mentioned division is given an example, time interval [0, 100ms) corresponding I/O request quantity be 60 and predetermined threshold value be 100, time interval [100ms, 200ms) corresponding I/O request quantity be 80 and predetermined threshold value be 80, [200ms, 300ms) corresponding I/O request quantity be 30 and predetermined threshold value be 50, [300ms, 400ms) corresponding I/O request quantity be 2 and predetermined threshold value be 2, wherein transfiniting interval is [100ms, 200ms) with [300ms, 400ms), there have been two intervals of transfiniting in four time intervals, determine that this hard disk is for coiling slowly, wherein the predetermined threshold value of each time interval is to have considered to occur that the I/O postponed asks the regularity of distribution of quantity, for example I/O postpones higher I/O request negligible amounts, but I/O postpones higher I/O request negligible amounts, so corresponding, characterize the time interval [300ms of higher delay, predetermined threshold value 400ms) arranged is less, in order to can detect accurately dish slowly,
Flexibly, can also adopt the second Rule of judgment:
Each time interval in each time interval is the interval of transfiniting, and determines that hard disk is for coiling slowly.In practice, some hard disk is from fact, not to coil slowly, but in testing process, sometimes equipment can, because the extreme cases such as deadlock appear in other reasons, so that the request of the I/O in certain time interval quantity surpasses the predetermined threshold value of this time interval, cause occurring the interval of transfiniting, but the other times interval is not the interval of transfiniting, treating apparatus can not be mistaken for this hard disk dish slowly.
It should be noted that, due to a plurality of hard disks being arranged in equipment, described treating apparatus can go to carry out each step in above-described embodiment for each hard disk for each hard disk open detection process, to determine dish slowly in each hard disk.
In the present embodiment, by by preset detection time section time span be divided into a plurality of time intervals, and be provided with predetermined threshold value to each time interval, thereby I/O that can be corresponding according to each time interval request quantity and predetermined threshold value corresponding to each time interval, determine accurately dish slowly, taken into full account the incidence relation that I/O request quantity and I/O postpone, considered the regularity of distribution of I/O request on time domain, thereby detect accurately to coil slowly and remove this, coil slowly, avoid the processing of coiling slowly business to cause harmful effect, , to improve the performance of equipment.
Fig. 3 is that the present invention detects the structural drawing of the treating apparatus embodiment mono-of dish slowly.As shown in Figure 3, this device comprises:
Acquisition module 31, for from preset detection time section the initial time I/O that starts to obtain each I/O I/O request hard disk postpone;
The first determination module 32, postpone for the I/O according to each described I/O request, determines the corresponding relation of each described I/O request and each time interval; Described each time interval by described preset detection time section be divided into a plurality of intervals and obtain;
The second determination module 33, for the finish time in described preset detection time of section, the corresponding relation according to each described I/O request with each described time interval, determine the I/O request quantity that each described time interval is corresponding;
The 3rd determination module 34, for I/O request quantity and predetermined threshold value corresponding to each described time interval corresponding according to each described time interval, determine that described hard disk is for coiling slowly.
Further, above-mentioned the first determination module 32 is specifically for the I/O delay of more described I/O request and starting point and the terminal of each described time interval;
If the I/O of described I/O request postpones to be greater than the starting point in very first time interval in described each described time interval, and be less than the terminal in described very first time interval, determine that described I/O request is corresponding to described very first time interval.
Further, if the 3rd determination module 34 I/O request quantity corresponding specifically for described time interval is more than or equal to the predetermined threshold value that described time interval is corresponding, determine that described time interval is the interval of transfiniting;
In described each time interval, if there is the interval of transfiniting, determine that described hard disk is for coiling slowly; Perhaps
Each time interval in described each time interval is the described interval of transfiniting, and determines that described hard disk is for coiling slowly;
Wherein, above-mentioned preset detection time section initial time with issue issuing of each I/O request to described hard disk constantly identical.
It should be noted that, corresponding each step carried out in aforementioned each embodiment of the method for above-mentioned modules, do not repeat them here.
The treating apparatus that the detection that the embodiment of the present invention provides is coiled slowly, by by preset detection time section time span be divided into a plurality of time intervals, and be provided with predetermined threshold value to each time interval, thereby I/O that can be corresponding according to each time interval request quantity and predetermined threshold value corresponding to each time interval, determine accurately dish slowly, taken into full account the incidence relation that I/O request quantity and I/O postpone, considered the regularity of distribution of I/O request on time domain, thereby detect accurately to coil slowly and remove this, coil slowly, avoid the processing of coiling slowly business to cause harmful effect, to improve the performance of equipment.
Fig. 4 is that the present invention detects the structural drawing of the treating apparatus embodiment bis-of dish slowly.As shown in Figure 4, this device is specifically for carrying out each step in aforementioned each embodiment of the method, and specifically this device comprises:
Storer 41, for storing data information, this data message comprise from preset detection time section the initial time I/O that starts to obtain each I/O I/O request hard disk postpone;
Processor 42, postpone for the I/O according to each described I/O request, determines the corresponding relation of each described I/O request and each time interval; Described each time interval be by described preset detection time section time span be divided into a plurality of intervals and obtain;
Processor 42, for the finish time in described preset detection time of section, the corresponding relation according to each described I/O request with each described time interval, determine the I/O request quantity that each described time interval is corresponding;
Processor 42, for I/O request quantity and predetermined threshold value corresponding to each described time interval corresponding according to each described time interval, determine that described hard disk is for coiling slowly.
Further, above-mentioned processor 42 is specifically for the I/O delay of more described I/O request and starting point and the terminal of each described time interval;
If the I/O of described I/O request postpones to be greater than the starting point in very first time interval in described each described time interval, and be less than the terminal in described very first time interval, determine that described I/O request is corresponding to described very first time interval.
Further, if the processor 42 I/O request quantity corresponding specifically for described time interval is more than or equal to the predetermined threshold value that described time interval is corresponding, determine that described time interval is the interval of transfiniting;
In described each time interval, if there is the interval of transfiniting, determine that described hard disk is for coiling slowly; Perhaps
Each time interval in described each time interval is the described interval of transfiniting, and determines that described hard disk is for coiling slowly;
Detailed, described preset detection time section initial time with to described hard disk, issue each I/O request to issue the moment identical.
The treating apparatus that the detection that the embodiment of the present invention provides is coiled slowly, by by preset detection time section time span be divided into a plurality of time intervals, and be provided with predetermined threshold value to each time interval, thereby I/O that can be corresponding according to each time interval request quantity and predetermined threshold value corresponding to each time interval, determine accurately dish slowly, taken into full account the incidence relation that I/O request quantity and I/O postpone, considered the regularity of distribution of I/O request on time domain, thereby detect accurately to coil slowly and remove this, coil slowly, avoid the processing of coiling slowly business to cause harmful effect, to improve the performance of equipment.
One of ordinary skill in the art will appreciate that: realize that the hardware that all or part of step of above-mentioned each embodiment of the method can be relevant by programmed instruction completes.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to aforementioned each embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: its technical scheme that still can put down in writing aforementioned each embodiment is modified, or some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.

Claims (8)

1. the disposal route that detection is coiled slowly, is characterized in that, comprising:
From preset detection time, the initial time I/O that starts to obtain each I/O I/O request hard disk of section postpones;
Postpone according to the I/O of each described I/O request, determine the corresponding relation of each described I/O request and each time interval; Described each time interval be by described preset detection time section time span be divided into a plurality of intervals and obtain;
In the finish time of described preset detection time of section, the corresponding relation according to each described I/O request with each described time interval, determine the I/O request quantity that each described time interval is corresponding;
The I/O corresponding according to each described time interval asks quantity and predetermined threshold value corresponding to each described time interval, determines that described hard disk is for coiling slowly.
2. disposal route according to claim 1, is characterized in that, the described I/O according to each described I/O request postpones, and determines the corresponding relation of each time interval in each described I/O request and described preset detection time section, comprising:
The I/O of more described I/O request postpones starting point and the terminal with each described time interval;
If the I/O of described I/O request postpones to be greater than the starting point in very first time interval in described each described time interval, and be less than the terminal in described very first time interval, determine that described I/O request is corresponding to described very first time interval.
3. disposal route according to claim 2, is characterized in that, described I/O request quantity and predetermined threshold value corresponding to each described time interval corresponding according to each described time interval determine that described hard disk, for coiling slowly, comprising:
If the I/O request quantity that described time interval is corresponding is more than or equal to the predetermined threshold value that described time interval is corresponding, determine that described time interval is the interval of transfiniting;
In described each time interval, if there is the interval of transfiniting, determine that described hard disk is for coiling slowly; Perhaps
Each time interval in described each time interval is the described interval of transfiniting, and determines that described hard disk is for coiling slowly.
4. according to the described disposal route of claim 1~3 any one, it is characterized in that, described preset detection time section initial time with issue issuing of each I/O request to described hard disk constantly identical.
5. the treating apparatus that detection is coiled slowly, is characterized in that, comprising:
Acquisition module, for from preset detection time section the initial time I/O that starts to obtain each I/O I/O request hard disk postpone;
The first determination module, postpone for the I/O according to each described I/O request, determines the corresponding relation of each described I/O request and each time interval; Described each time interval be by described preset detection time section time span be divided into a plurality of intervals and obtain;
The second determination module, for the finish time in described preset detection time of section, the corresponding relation according to each described I/O request with each described time interval, determine the I/O request quantity that each described time interval is corresponding;
The 3rd determination module, for I/O request quantity and predetermined threshold value corresponding to each described time interval corresponding according to each described time interval, determine that described hard disk is for coiling slowly.
6. treating apparatus according to claim 5, is characterized in that, the first determination module is specifically for the I/O delay of more described I/O request and starting point and the terminal of each described time interval;
If the I/O of described I/O request postpones to be greater than the starting point in very first time interval in described each described time interval, and be less than the terminal in described very first time interval, determine that described I/O request is corresponding to described very first time interval.
7. treating apparatus according to claim 6, is characterized in that, if the 3rd determination module I/O request quantity corresponding specifically for described time interval is more than or equal to the predetermined threshold value that described time interval is corresponding, determines that described time interval is the interval of transfiniting;
In described each time interval, if there is the interval of transfiniting, determine that described hard disk is for coiling slowly; Perhaps
Each time interval in described each time interval is the described interval of transfiniting, and determines that described hard disk is for coiling slowly.
8. according to the described treating apparatus of claim 5~7 any one, it is characterized in that, described preset detection time section initial time with issue issuing of each I/O request to described hard disk constantly identical.
CN201310445133.5A 2013-09-26 2013-09-26 Detect the treating method and apparatus of slow dish Active CN103488544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310445133.5A CN103488544B (en) 2013-09-26 2013-09-26 Detect the treating method and apparatus of slow dish

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310445133.5A CN103488544B (en) 2013-09-26 2013-09-26 Detect the treating method and apparatus of slow dish

Publications (2)

Publication Number Publication Date
CN103488544A true CN103488544A (en) 2014-01-01
CN103488544B CN103488544B (en) 2016-08-17

Family

ID=49828799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310445133.5A Active CN103488544B (en) 2013-09-26 2013-09-26 Detect the treating method and apparatus of slow dish

Country Status (1)

Country Link
CN (1) CN103488544B (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810062A (en) * 2014-03-05 2014-05-21 华为技术有限公司 Slow disk detection method and device
WO2016029481A1 (en) * 2014-08-30 2016-03-03 华为技术有限公司 Method and device for isolating disk regions
CN105573888A (en) * 2015-12-14 2016-05-11 曙光信息产业股份有限公司 Method and apparatus for detecting disk performance in distributed file system
CN105630416A (en) * 2015-12-24 2016-06-01 创新科存储技术(深圳)有限公司 Disc kicking method and device in cloud storage system
WO2017012392A1 (en) * 2015-07-17 2017-01-26 中兴通讯股份有限公司 Disk check method and apparatus
WO2017020747A1 (en) * 2015-07-31 2017-02-09 华为技术有限公司 Method and device for detecting slow disk
CN106407052A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Disk detection method and apparatus
CN106557389A (en) * 2015-09-29 2017-04-05 成都华为技术有限公司 A kind of slow disk detection method and device
CN106802847A (en) * 2015-11-26 2017-06-06 伊姆西公司 Method and apparatus for simulating storage dish at a slow speed
CN106970851A (en) * 2016-01-14 2017-07-21 阿里巴巴集团控股有限公司 Method and apparatus for disk detection process in distributed file system
WO2017173927A1 (en) * 2016-04-07 2017-10-12 阿里巴巴集团控股有限公司 Method and device for detecting and processing hard disk hanging fault in distributed storage system
CN107329710A (en) * 2017-07-06 2017-11-07 郑州云海信息技术有限公司 A kind of method of storage performance optimization, system and storage software
CN107391042A (en) * 2017-07-28 2017-11-24 郑州云海信息技术有限公司 The design method and system of a kind of disk array
CN107797893A (en) * 2016-09-07 2018-03-13 华为数字技术(成都)有限公司 A kind of method and apparatus for the duration for calculating hard disk processing read write command
CN109753223A (en) * 2017-11-03 2019-05-14 伊姆西Ip控股有限责任公司 Manage the storage equipment in storage system
US10289472B2 (en) 2014-08-26 2019-05-14 Huawei Technologies Co., Ltd. Resource leak detection method, apparatus, and system
CN110083515A (en) * 2019-04-24 2019-08-02 苏州元核云技术有限公司 Quick judgment method, device and the storage medium of slow disk in distributed memory system
CN112241343A (en) * 2019-07-19 2021-01-19 深信服科技股份有限公司 Slow disk detection method and device, electronic equipment and readable storage medium
CN113312218A (en) * 2021-03-31 2021-08-27 阿里巴巴新加坡控股有限公司 Method and device for detecting magnetic disk
CN114706720A (en) * 2022-06-06 2022-07-05 南京鹏云网络科技有限公司 Method, system, equipment and storage medium for judging slow disk of distributed storage system
CN116149557A (en) * 2023-02-21 2023-05-23 北京志凌海纳科技有限公司 Manufacturing-oriented slow disk detection strategy system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040243732A1 (en) * 2001-04-09 2004-12-02 Akira Yamamoto Direct access storage system having plural interfaces which permit receipt of block and file I/O requests
CN1955940A (en) * 2005-10-28 2007-05-02 富士通株式会社 RAID system, RAID controller and rebuilt/copy back processing method thereof
CN101625629A (en) * 2008-07-08 2010-01-13 日立环球储存科技荷兰有限公司 Techniques for scheduling requests for accessing storage devices using sliding windows
CN101770346A (en) * 2010-01-04 2010-07-07 浪潮电子信息产业股份有限公司 Method for dispatching multi-controller disk array coordination

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040243732A1 (en) * 2001-04-09 2004-12-02 Akira Yamamoto Direct access storage system having plural interfaces which permit receipt of block and file I/O requests
CN1955940A (en) * 2005-10-28 2007-05-02 富士通株式会社 RAID system, RAID controller and rebuilt/copy back processing method thereof
CN101625629A (en) * 2008-07-08 2010-01-13 日立环球储存科技荷兰有限公司 Techniques for scheduling requests for accessing storage devices using sliding windows
CN101770346A (en) * 2010-01-04 2010-07-07 浪潮电子信息产业股份有限公司 Method for dispatching multi-controller disk array coordination

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810062A (en) * 2014-03-05 2014-05-21 华为技术有限公司 Slow disk detection method and device
CN103810062B (en) * 2014-03-05 2015-12-30 华为技术有限公司 Slow dish detection method and device
US10289472B2 (en) 2014-08-26 2019-05-14 Huawei Technologies Co., Ltd. Resource leak detection method, apparatus, and system
WO2016029481A1 (en) * 2014-08-30 2016-03-03 华为技术有限公司 Method and device for isolating disk regions
US10585592B2 (en) 2014-08-30 2020-03-10 Huawei Technologies Co., Ltd. Disk area isolation method and device
WO2017012392A1 (en) * 2015-07-17 2017-01-26 中兴通讯股份有限公司 Disk check method and apparatus
CN106407051A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Slow disk detection method and device
EP3321807A4 (en) * 2015-07-31 2018-06-20 Huawei Technologies Co., Ltd. Disk detection method and device
WO2017020747A1 (en) * 2015-07-31 2017-02-09 华为技术有限公司 Method and device for detecting slow disk
CN106407051B (en) * 2015-07-31 2019-01-11 华为技术有限公司 A kind of method and device detecting slow disk
CN106407052A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Disk detection method and apparatus
US10768826B2 (en) 2015-07-31 2020-09-08 Huawei Technologies Co., Ltd. Disk detection method and apparatus
CN106407052B (en) * 2015-07-31 2019-09-13 华为技术有限公司 A kind of method and device detecting disk
CN106557389A (en) * 2015-09-29 2017-04-05 成都华为技术有限公司 A kind of slow disk detection method and device
CN106557389B (en) * 2015-09-29 2019-03-08 成都华为技术有限公司 A kind of slow disk detection method and device
CN106802847A (en) * 2015-11-26 2017-06-06 伊姆西公司 Method and apparatus for simulating storage dish at a slow speed
US11068371B2 (en) 2015-11-26 2021-07-20 EMC IP Holding Company LLC Method and apparatus for simulating slow storage disk
CN106802847B (en) * 2015-11-26 2022-05-13 伊姆西Ip控股有限责任公司 Method and apparatus for emulating a slow storage disk
CN105573888A (en) * 2015-12-14 2016-05-11 曙光信息产业股份有限公司 Method and apparatus for detecting disk performance in distributed file system
CN105573888B (en) * 2015-12-14 2018-09-04 曙光信息产业股份有限公司 A kind of disk performance detection method and device in distributed file system
CN105630416A (en) * 2015-12-24 2016-06-01 创新科存储技术(深圳)有限公司 Disc kicking method and device in cloud storage system
CN106970851A (en) * 2016-01-14 2017-07-21 阿里巴巴集团控股有限公司 Method and apparatus for disk detection process in distributed file system
WO2017173927A1 (en) * 2016-04-07 2017-10-12 阿里巴巴集团控股有限公司 Method and device for detecting and processing hard disk hanging fault in distributed storage system
CN107797893A (en) * 2016-09-07 2018-03-13 华为数字技术(成都)有限公司 A kind of method and apparatus for the duration for calculating hard disk processing read write command
CN107329710A (en) * 2017-07-06 2017-11-07 郑州云海信息技术有限公司 A kind of method of storage performance optimization, system and storage software
CN107391042A (en) * 2017-07-28 2017-11-24 郑州云海信息技术有限公司 The design method and system of a kind of disk array
CN109753223A (en) * 2017-11-03 2019-05-14 伊姆西Ip控股有限责任公司 Manage the storage equipment in storage system
CN109753223B (en) * 2017-11-03 2022-07-08 伊姆西Ip控股有限责任公司 Method and system for detecting slow storage device operation in storage system
CN110083515A (en) * 2019-04-24 2019-08-02 苏州元核云技术有限公司 Quick judgment method, device and the storage medium of slow disk in distributed memory system
CN112241343A (en) * 2019-07-19 2021-01-19 深信服科技股份有限公司 Slow disk detection method and device, electronic equipment and readable storage medium
CN112241343B (en) * 2019-07-19 2024-02-23 深信服科技股份有限公司 Slow disk detection method and device, electronic equipment and readable storage medium
CN113312218A (en) * 2021-03-31 2021-08-27 阿里巴巴新加坡控股有限公司 Method and device for detecting magnetic disk
CN114706720A (en) * 2022-06-06 2022-07-05 南京鹏云网络科技有限公司 Method, system, equipment and storage medium for judging slow disk of distributed storage system
CN116149557A (en) * 2023-02-21 2023-05-23 北京志凌海纳科技有限公司 Manufacturing-oriented slow disk detection strategy system and method
CN116149557B (en) * 2023-02-21 2023-07-18 北京志凌海纳科技有限公司 Manufacturing-oriented slow disk detection strategy system and method

Also Published As

Publication number Publication date
CN103488544B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN103488544A (en) Processing method and device for detecting slow disk
CN106354590B (en) Disk detection method and device
CN103309775B (en) A kind of fault-tolerance approach of high-reliability disk array
CN106354583B (en) A kind of heat backup method and system of MySQL database
CN106547635B (en) Operation retry method and device for operation
CN108536548B (en) Method and device for processing bad track of disk and computer storage medium
US20170242744A1 (en) Method and apparatus for performing data scrubbing management in storage system
CN104516471A (en) Method and device for managing power supply of storage system
CN102004693A (en) System performance test method and device
CN112416670B (en) Hard disk testing method, device, server and storage medium
CN104850480A (en) Method and device for testing performance of hard disk of high-density storage server
CN106372115A (en) Data reading/writing method and system, and database system
CN110704287B (en) RAID card abnormal log collection method and system under Linux system and storage medium
CN103810060A (en) Data backup method and system thereof based on distributed database
CN106126421A (en) A kind of automatic test the method contrasting PCIE SSD performance
CN102222033B (en) A kind of method and device for preserving small computer system interface access error
CN114415973B (en) Slow disk detection method and device, electronic equipment and storage medium
CN103049345B (en) Based on Disk State transition detection method and the device of asynchronous mechanism
CN104077192A (en) Test system and method
CN111124303B (en) Data storage method, device and system
CN105630653A (en) CPU vacancy rate determination method and device for Docker container
CN113655970A (en) IO scheduling method, device, equipment and computer readable storage medium
CN106708445B (en) Link selecting method and device
CN109582513B (en) JBOD test method and system based on general server
CN104598844A (en) Power failure protection method and device for preventing corruption of system files of solid-state disk

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191225

Address after: 314413 No.2, Fengshou Avenue, Haining Economic and knitting industrial park, Jiaxing City, Zhejiang Province

Patentee after: Zhejiang Haining Warp Knitting Industrial Park Development Co., Ltd

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.