CN103488544B - Detect the treating method and apparatus of slow dish - Google Patents
Detect the treating method and apparatus of slow dish Download PDFInfo
- Publication number
- CN103488544B CN103488544B CN201310445133.5A CN201310445133A CN103488544B CN 103488544 B CN103488544 B CN 103488544B CN 201310445133 A CN201310445133 A CN 201310445133A CN 103488544 B CN103488544 B CN 103488544B
- Authority
- CN
- China
- Prior art keywords
- time interval
- time
- request
- interval
- hard disk
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the present invention provides a kind for the treatment of method and apparatus detecting slow dish, and this includes: starts to obtain the I/O of each input/output I/O request hard disk from the initial time of preset detection time period and postpones;Postpone according to the I/O that each I/O asks, determine the corresponding relation of each I/O request and each time interval;Each time interval is the time span of preset detection time period to be divided into multiple interval obtain;In the finish time of preset detection time period, according to each I/O request and the corresponding relation of each time interval, determine the I/O number of requests that each time interval is corresponding;According to the predetermined threshold value that the I/O number of requests that each time interval is corresponding is corresponding with each time interval, determine that hard disk is slow dish.By the treating method and apparatus of the slow dish of this detection, take into full account the incidence relation that I/O number of requests postpones with I/O, thus slow dish can have been detected accurately and remove this slow dish, it is to avoid the process of business has been had undesirable effect by slow dish.
Description
Technical field
The present embodiments relate to computer technology, particularly relate to a kind of processing method detecting slow dish and dress
Put.
Background technology
Improve constantly the treatment effeciency of business to meet, equipment generally arranges multiple hard disk, but hard disk
Due to the reason such as bad track and extraneous vibration, process I/O(Input/Output, input/output) request time meeting
Spend the more time to carry out error correction, cause responding slow to I/O request, thus industry handled on this hard disk
The treatment effeciency of business reduces, and causes host computer service interruption time serious, have impact on the performance of equipment, wherein this
Planting and responded slow to I/O request, the hard disk affecting Business Processing efficiency is referred to as slow dish.Therefore, lead at equipment
When crossing multiple hard disk processing business, real-time detects each hard disk, concrete, records each hard
On dish, the I/O of each I/O request postpones, and described I/O postpones to ask from the initial time being handed down to hard disk for I/O
The required time is responded to for I/O request to this hard disk;Add up I/O within a period of time subsequently and postpone super
Cross the I/O number of requests of Preset Time threshold value, if I/O is delayed over Preset Time threshold value on a hard disk
I/O number of requests exceed certain predetermined threshold value, it is determined that this hard disk is slow dish, the most just by this slow dish from
The RAID(Redundant Arrays of Inexpensive Disks of disk array, disk array) group is moved
Remove, to ensure the efficiency of the process business of equipment.
But finding in actual applications, on hard disk, I/O postpones the incidence relation with I/O number of requests, i.e. one
In the section time, on hard disk, the quantity of the I/O request that I/O delay is relatively low is more, and I/O postpones higher I/O and asks
The negligible amounts asked, therefore, if I/O postpones less than 300ms(millisecond on a hard disk) I/O number of request
Amount is 60, and the I/O number of requests that I/O postpones to be between 300ms~400ms is 2, if now judging slow
The Rule of judgment of dish is that " when I/O is delayed over the I/O number of requests of 300ms more than 50, this hard disk is slow
Dish ", then according to this Rule of judgment, can confirm that above-mentioned hard disk is not slow dish;But equipment is when the business of process,
Although on hard disk, I/O postpones the quantity of higher I/O request seldom, but is produced the efficiency of hard disk processing business
Raw harmful effect is the biggest, therefore, uses detection scheme of the prior art, it is impossible to detect accurately
Go out slow dish, it is impossible to removed by slow dish timely, cause the hydraulic performance decline of equipment.
Summary of the invention
The embodiment of the present invention provides a kind for the treatment of method and apparatus detecting slow dish, is used for optimizing the detection of slow dish
Process so that the connection and reasonable arrangement of hard disk on equipment.
First aspect, the embodiment of the present invention provides a kind of processing method detecting slow dish, including:
Start to obtain each input/output I/O request hard disk from the initial time of preset detection time period
I/O postpones;
Postpone according to the I/O of I/O request each described, determine each described I/O request and each time zone
Between corresponding relation;Each time interval described is the time span of described preset detection time period to be divided
Obtain for multiple intervals;
In the finish time of described preset detection time period, according to I/O request each described and each
The corresponding relation of time interval, determines the I/O number of requests that each described time interval is corresponding;
Corresponding with time interval each described according to the I/O number of requests that time interval each described is corresponding
Predetermined threshold value, determines that described hard disk is slow dish.
In conjunction with first aspect, in the first embodiment, the described I/O asked according to I/O each described prolongs
Late, determine that each described I/O request is corresponding with each time interval in the described preset detection time period
Relation, including:
The I/O of relatively described I/O request postpones the beginning and end with each described time interval;
If the I/O of described I/O request postpones interval more than the very first time in each described time interval described
Starting point, and the terminal interval less than the described very first time, it is determined that described I/O request is corresponding to described the
One time interval.
In conjunction with first aspect the first embodiment, in this second embodiment, described according to time each described
Between the interval corresponding I/O number of requests predetermined threshold value corresponding with time interval each described, determine described in
Hard disk is slow dish, including:
If pre-corresponding more than or equal to described time interval of I/O number of requests corresponding to described time interval
If threshold value, it is determined that described time interval is interval of transfiniting;
In each time interval described, if there is interval of transfiniting, it is determined that described hard disk is slow dish;Or
Person
Each time interval in each time interval described transfinites interval described in being, it is determined that described
Hard disk is slow dish;
In conjunction with any one embodiment in first aspect to first aspect the second embodiment, real the 3rd
Executing in mode, the initial time of described preset detection time period issues each I/O request with to described hard disk
To issue the moment identical.
Second aspect, the embodiment of the present invention provides a kind of processing means detecting slow dish, including:
Acquisition module, for from the initial time of preset detection time period start to obtain hard disk each input/
The I/O of output I/O request postpones;
First determines module, for postponing according to the I/O of I/O request each described, determines described in each
I/O request and the corresponding relation of each time interval;When each time interval described is by described preset detection
Between the time span of section be divided into what multiple interval obtained;
Second determines module, for the finish time in the described preset detection time period, according to described in each
I/O request and the corresponding relation of each described time interval, determine the I/O that each described time interval is corresponding
Number of requests;
3rd determines module, for according to I/O number of requests corresponding to time interval each described and each
The predetermined threshold value that described time interval is corresponding, determines that described hard disk is slow dish.
In conjunction with second aspect, in the first embodiment, first determines that module is specifically for relatively described I/O
The I/O of request postpones the beginning and end with each described time interval;
If the I/O of described I/O request postpones interval more than the very first time in each described time interval described
Starting point, and the terminal interval less than the described very first time, it is determined that described I/O request is corresponding to described the
One time interval.
In conjunction with second aspect the first embodiment, in this second embodiment, the 3rd determines that module is specifically used
If in preset corresponding more than or equal to described time interval of the I/O number of requests that described time interval is corresponding
Threshold value, it is determined that described time interval is interval of transfiniting;
In each time interval described, if there is interval of transfiniting, it is determined that described hard disk is slow dish;Or
Person
Each time interval in each time interval described transfinites interval described in being, it is determined that described
Hard disk is slow dish;
In conjunction with any one embodiment in second aspect to second aspect the second embodiment, real the 3rd
Executing in mode, the initial time of described preset detection time period issues each I/O request with to described hard disk
To issue the moment identical.
The treating method and apparatus detecting slow dish that the embodiment of the present invention provides, by by the preset detection time
The time span of section is divided into multiple time interval, and is provided with predetermined threshold value to each time interval,
Such that it is able to according to preset corresponding with each time interval of the I/O number of requests that each time interval is corresponding
Threshold value, determines slow dish accurately, has taken into full account the incidence relation that I/O number of requests postpones with I/O, i.e.
Time domain considers the regularity of distribution of I/O request, thus detects slow dish accurately and remove this
Slow dish, it is to avoid the process of business is had undesirable effect, to improve the performance of equipment by slow dish.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under,
Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart that the present invention detects the processing method embodiment one of slow dish;
Fig. 2 is the flow chart that the present invention detects the processing method embodiment two of slow dish;
Fig. 3 is the structure chart that the present invention detects the processing means embodiment one of slow dish;
Fig. 4 is the structure chart that the present invention detects the processing means embodiment two of slow dish.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Fig. 1 is the flow chart that the present invention detects the processing method embodiment one of slow dish.As it is shown in figure 1, this
The executive agent of embodiment is the processing means detecting slow dish, and this device can use hardware and/or software
Mode realizes, it is preferred that this processing means can be arranged on the equipment being loaded with hard disk, it is simple to setting
Hard disk in Bei detects, concrete, and the method includes:
S101, initial time from the preset detection time period start to obtain the I/O of each I/O request hard disk
Postpone.
As a rule, equipment issues I/O by the hard disk in equipment such as driver, I/O interface and asks,
And equipment issue to hard disk each I/O request time, can to each I/O request stamp timestamp, this time
Between stamp have recorded I/O and ask moment of issuing, As time goes on, when I/O request is made sound by hard disk
At once, above-mentioned processing means can be according to hard disk on the I/O moment that respond of request and this I/O request
Timestamp record issue the moment, calculate each I/O request I/O postpone.
Wherein preset detection the time period initial time with to hard disk issue each I/O request when issuing
Carve identical, be i.e. currently needed for detecting hard disk, then equipment issues the same of each I/O request to hard disk
Time, above-mentioned processing means starts preset time period timing, and this Startup time is the preset detection time period
Initial time.Wherein the concrete time span of preset time period can be arranged, generally the most flexibly
According to practical experience, the time span that the highest I/O occurred on equipment postpones is as preset time period
Time span.
S102, the I/O delay asked according to each I/O, determine each I/O request and each time interval
Corresponding relation.
Each time interval above-mentioned is that the time span of described preset detection time period is divided into multiple interval
Obtain;Concrete, preset time period be time span be T, then this time span T is divided into
[X1, X2)、[X2, X3)……[Xi, Xi+1)……[Xn-1, Xn), wherein, Xn=T, i
For positive integer, and n > i >=1, and Xi<Xi+1。
When processing means obtains the I/O delay of an I/O request, then the I/O comparing this I/O request postpones
With the beginning and end of time interval each described;If the I/O of I/O request postpones more than each time interval
Starting point (the above-mentioned X that the interior very first time is intervali), and the terminal (X interval less than the very first timei+1), then
Determine that described I/O request is interval corresponding to the described very first time, this very first time interval can be above-mentioned respectively
, for an I/O request, if there is a time in any one time interval in individual time interval
Interval starting point postpones less than the I/O of this I/O request, and the terminal of this time interval is asked more than this I/O
I/O postpone, then this time interval for this I/O ask for be the very first time interval.
For example, preset time period T=400ms, this preset time period be divided into [0,100ms),
[100ms, 200ms), [200ms, 300ms), [300ms, 400ms);When an I/O request
When I/O postpones as 250ms, postpone and each described time interval by comparing the I/O of this I/O request
Beginning and end, determine the very first time interval [200ms, 300ms) starting point 200ms less than 250ms,
And terminal 300ms is more than 250ms, it is determined that this I/O request corresponding to the very first time interval [200ms,
300ms)。
S103, preset detection the time period finish time, according to each I/O request with each described time
Between interval corresponding relation, determine the I/O number of requests that each time interval is corresponding;
As described in S101, processing means proceeds by timing, and each when equipment issues I/O request
The moment that I/O request is responded is the most different, the most As time goes on, whenever an I/O request is responded,
Then processing means performs S101 and S102, determines that each I/O request is corresponding with each time interval and closes
System, then arrive the finish time of preset detection time period when clock, during according to each I/O request with each
Between interval corresponding relation, determine the I/O number of requests that each time interval is corresponding, such as, preset
In the detection time period, there is I/O request 1 to I/O request 5 to be responded successively, then by S101 and S102,
Determine I/O request 1, I/O request 2 and I/O request 5 totally 3 I/O request corresponding to time interval [200ms,
300ms), and I/O request 3 and I/O request 4 corresponding to [300ms, 400ms), then by 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, according to pre-corresponding with each time interval of the I/O number of requests that each time interval is corresponding
If threshold value, determine that described hard disk is slow dish.
In the present embodiment, processing means is provided with predetermined threshold value to each time interval, then determining firmly
When whether dish is slow dish, it is according to described in I/O number of requests corresponding to time interval each described and each
The predetermined threshold value that time interval is corresponding, determines whether hard disk is slow dish, has taken into full account I/O number of requests
The incidence relation postponed with I/O, i.e. considers the regularity of distribution of I/O request on time domain, thus can
To determine whether hard disk is slow dish accurately.
In the present embodiment, by the time span of preset detection time period is divided into multiple time interval,
And be provided with predetermined threshold value to each time interval, such that it is able to according to I/O corresponding to each time interval
The predetermined threshold value that number of requests is corresponding with each time interval, determines slow dish accurately, has taken into full account I/O
The incidence relation that number of requests postpones with I/O, i.e. considers the regularity of distribution of I/O request on time domain,
Such that it is able to detect slow dish accurately and remove this slow dish, it is to avoid the process of business is caused bad by slow dish
Impact, to improve the performance of equipment.
Fig. 2 is the flow chart that the present invention detects the processing method embodiment two of slow dish.As in figure 2 it is shown, should
Method is on the basis of the embodiment one shown in Fig. 1, further describes the processing method detecting slow dish,
Concrete, the method includes:
S201, from preset detection the time period initial time start to obtain each input/output I/O hard disk
The I/O of request postpones.
Specifically as described in S101, do not repeat them here.
S202, the I/O delay comparing I/O request and the beginning and end of each time interval.
I.e. by the initial time of the preset detection time period described in S201, whenever an I/O asks quilt
Just perform S201 after response, postpone according to the I/O that this I/O asks subsequently, with rising of each time interval
Point and terminal compare.
If the I/O of S203 I/O request postpones interval more than the very first time in each described time interval
Starting point, and the terminal interval less than the very first time, it is determined that I/O asks corresponding to district of the described very first time
Between.
Concrete, it is assumed that I/O request 5 is responded, and postpones according to the I/O of I/O request 5, successively with in advance
The beginning and end putting each time interval in the time period compares, and the I/O of such as I/O request 5 postpones big
In a time interval [Xi, Xi+1) starting point XiAnd less than this time interval [Xi, Xi+1) terminal Xi+1,
I.e. this time interval [Xi, Xi+1) it is that the very first time is interval for I/O request 5, it is determined that this I/O please
Ask interval corresponding to this very first time, concrete, can be by this time interval [Xi, Xi+1) corresponding meter
Number device adds 1;Will be understood, if the I/O of I/O request 5 postpones to be unsatisfactory for condition " no more than
Individual time interval [Xi, Xi+1) starting point XiAnd less than this time interval [Xi, Xi+1) terminal Xi+1",
Then this time interval [Xi, Xi+1) corresponding counter keeps constant, then the I/O of I/O request 5 postpones to continue
Continue and go to compare with other times interval;Optionally, determine I/O request with certain time interval to time corresponding
Can be in time interval table, by this I/O request record in the form at corresponding time interval place.
S204, preset detection the time period finish time, according to each I/O request with each time zone
Between corresponding relation, determine the I/O number of requests that each time interval is corresponding.
Based on the description in S203, each I/O asks the corresponding relation with each time interval to pass through
Record in the form at each time interval place in the counter of each time interval, or time interval table
I/O request characterize, then preset detection the time period finish time, processing means perform S204 time,
Each time interval place in the counter of each time interval, or timing statistics interval table can be checked
Form in record I/O request quantity, the I/O number of requests corresponding to determine each time interval.
S205, corresponding with time interval each described according to the I/O number of requests that each time interval is corresponding
Predetermined threshold value, determine that described hard disk is slow dish.
Concrete, compare preset corresponding with each time interval of I/O number of requests corresponding to time interval
Threshold value, if I/O number of requests corresponding to a time interval in each time interval described more than or etc.
In the predetermined threshold value that this time interval is corresponding, it is determined that this time interval is interval of transfiniting;Determining subsequently
When whether hard disk is slow dish, can the first Rule of judgment of foundation be:
In each time interval, if there is interval of transfiniting, it is determined that hard disk is slow dish;
In actual applications, slow dish is relatively big, then for the slow dish of this Equipment Inspection on the impact of certain equipment
Time, can be with stricter condition detection, i.e. in each time interval, once there is interval of transfiniting, just
Determine that this hard disk is slow dish.Illustrate with the time interval of above-mentioned division, and time interval [0,100ms) corresponding
I/O number of requests be 60 and predetermined threshold value is 100, time interval [100ms, 200ms) corresponding
I/O number of requests be 80 and predetermined threshold value be 80, [200ms, 300ms) corresponding I/O number of requests
Be 30 and predetermined threshold value be 50, [300ms, 400ms) corresponding I/O number of requests is 2 and presets
Threshold value is 2, wherein transfinite interval for [100ms, 200ms) and [300ms, 400ms), i.e. when four
Between there are two intervals of transfiniting in interval, it is determined that this hard disk is slow dish, wherein each time interval
Predetermined threshold value is the regularity of distribution considering I/O number of requests delay occur, and such as I/O postpones higher
I/O number of requests is less, but I/O to postpone higher I/O number of requests less, therefore corresponding, characterize
The time interval of higher delay [300ms, 400ms) predetermined threshold value that arranges is the least, in order to can be accurately
Detect slow dish;
Flexibly, it is also possible to employing the second Rule of judgment:
Each time interval in each time interval is interval of transfiniting, it is determined that hard disk is slow dish.
In practice, some hard disk for substantially, is not slow dish, but during detection, equipment sometimes
Because of other reasons, the extreme cases such as deadlock can occur, so that the I/O number of requests in certain time interval
Exceed the predetermined threshold value of this time interval, cause that an interval of transfiniting occurs, but other times interval is the most not
Be interval of transfiniting, then this hard disk will not be mistaken for slow dish by processing means.
It should be noted that owing to there being multiple hard disk in equipment, described processing means can be for each hard disk
Open detection process, i.e. goes to perform each step in above-described embodiment, with at each for each hard disk
Hard disk is determined slow dish.
In the present embodiment, by the time span of preset detection time period is divided into multiple time interval,
And be provided with predetermined threshold value to each time interval, such that it is able to according to I/O corresponding to each time interval
The predetermined threshold value that number of requests is corresponding with each time interval, determines slow dish accurately, has taken into full account I/O
The incidence relation that number of requests postpones with I/O, i.e. considers the regularity of distribution of I/O request on time domain,
Thus detect slow dish accurately and remove this slow dish, it is to avoid the process of business is caused bad shadow by slow dish
Ring, to improve the performance of equipment.
Fig. 3 is the structure chart that the present invention detects the processing means embodiment one of slow dish.As it is shown on figure 3, should
Device includes:
Acquisition module 31, defeated for starting to obtain hard disk each from the initial time of preset detection time period
The I/O entering/export I/O request postpones;
First determines module 32, for postponing according to the I/O of I/O request each described, determines each institute
State the corresponding relation of I/O request and each time interval;Each time interval described is by described preset inspection
The survey time period is divided into what multiple interval obtained;
Second determines module 33, for the finish time in the described preset detection time period, according to each institute
State I/O request and the corresponding relation of each described time interval, determine that each described time interval is corresponding
I/O number of requests;
3rd determines module 34, for the I/O number of requests corresponding according to time interval each described with each
The predetermined threshold value that individual described time interval is corresponding, determines that described hard disk is slow dish.
Further, above-mentioned first determines that module 32 postpones specifically for the I/O of relatively described I/O request
With the beginning and end of time interval each described;
If the I/O of described I/O request postpones interval more than the very first time in each described time interval described
Starting point, and the terminal interval less than the described very first time, it is determined that described I/O request is corresponding to described the
One time interval.
Further, if the 3rd determines that module 34 is specifically for I/O number of request corresponding to described time interval
The predetermined threshold value that amount is corresponding more than or equal to described time interval, it is determined that described time interval is district of transfiniting
Between;
In each time interval described, if there is interval of transfiniting, it is determined that described hard disk is slow dish;Or
Person
Each time interval in each time interval described transfinites interval described in being, it is determined that described
Hard disk is slow dish;
Wherein, the initial time of above-mentioned preset detection time period issues each I/O request with to described hard disk
To issue the moment identical.
It should be noted that above-mentioned modules correspondence performs each step in each embodiment of the method aforementioned
Suddenly, do not repeat them here.
The embodiment of the present invention provide detect slow dish processing means, by by preset detection the time period time
Between length be divided into multiple time interval, and be provided with predetermined threshold value to each time interval, thus can
With the predetermined threshold value that the I/O number of requests corresponding according to each time interval is corresponding with each time interval,
Determine slow dish accurately, take into full account the incidence relation that I/O number of requests postpones with I/O, i.e. in the time
Consider the regularity of distribution of I/O request on category, thus detect slow dish accurately and remove this slow dish,
Avoid slow dish that the process of business is had undesirable effect, to improve the performance of equipment.
Fig. 4 is the structure chart that the present invention detects the processing means embodiment two of slow dish.As shown in Figure 4, should
Device is specifically for performing each step in each embodiment of the method aforementioned, and specifically this device includes:
Memory 41, is used for storing data message, and this data message included from the preset detection time period
Moment beginning starts to obtain the I/O of each input/output I/O request on hard disk and postpones;
Processor 42, for postponing according to the I/O of I/O request each described, determines each described I/O
Request and the corresponding relation of each time interval;Each time interval described is by the described preset detection time
The time span of section is divided into what multiple interval obtained;
Processor 42, for the finish time in the described preset detection time period, according to I/O each described
Request and the corresponding relation of each described time interval, determine that the I/O that each described time interval is corresponding please
Seek quantity;
Processor 42, for described in the I/O number of requests corresponding according to time interval each described and each
The predetermined threshold value that time interval is corresponding, determines that described hard disk is slow dish.
Further, above-mentioned processor 42 postpones and each specifically for the I/O of relatively described I/O request
The beginning and end of described time interval;
If the I/O of described I/O request postpones interval more than the very first time in each described time interval described
Starting point, and the terminal interval less than the described very first time, it is determined that described I/O request is corresponding to described the
One time interval.
Further, if processor 42 is more than specifically for the I/O number of requests that described time interval is corresponding
Or the predetermined threshold value corresponding equal to described time interval, it is determined that described time interval is interval of transfiniting;
In each time interval described, if there is interval of transfiniting, it is determined that described hard disk is slow dish;Or
Person
Each time interval in each time interval described transfinites interval described in being, it is determined that described
Hard disk is slow dish;
Detailed, the initial time of described preset detection time period with issue each I/O to described hard disk please
Ask to issue the moment identical.
The embodiment of the present invention provide detect slow dish processing means, by by preset detection the time period time
Between length be divided into multiple time interval, and be provided with predetermined threshold value to each time interval, thus can
With the predetermined threshold value that the I/O number of requests corresponding according to each time interval is corresponding with each time interval,
Determine slow dish accurately, take into full account the incidence relation that I/O number of requests postpones with I/O, i.e. in the time
Consider the regularity of distribution of I/O request on category, thus detect slow dish accurately and remove this slow dish,
Avoid slow dish that the process of business is had undesirable effect, to improve the performance of equipment.
One of ordinary skill in the art will appreciate that: realize all or part of step of above-mentioned each method embodiment
Suddenly can be completed by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer can
Read in storage medium.This program upon execution, performs to include the step of above-mentioned each method embodiment;And
Aforesaid storage medium includes: ROM, RAM, magnetic disc or CD etc. are various can store program code
Medium.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, rather than right
It limits;Although the present invention being described in detail with reference to foregoing embodiments, this area common
Skilled artisans appreciate that the technical scheme described in foregoing embodiments still can be modified by it,
Or the most some or all of technical characteristic is carried out equivalent;And these amendments or replacement, and
The essence not making appropriate technical solution departs from the scope of various embodiments of the present invention technical scheme.
Claims (6)
1. the processing method detecting slow dish, it is characterised in that including:
Start to obtain each input/output I/O request hard disk from the initial time of preset detection time period
I/O postpones;
Postpone according to the I/O of I/O request each described, determine each described I/O request and each time zone
Between corresponding relation;Each time interval described is the time span of described preset detection time period to be divided
Obtain for multiple intervals;
In the finish time of described preset detection time period, according to I/O request each described and each
The corresponding relation of time interval, determines the I/O number of requests that each described time interval is corresponding;
Corresponding with time interval each described according to the I/O number of requests that time interval each described is corresponding
Predetermined threshold value, determines that described hard disk is slow dish;
The described I/O delay according to I/O request each described, determines that each described I/O request is pre-with described
Put the corresponding relation of each time interval detected in the time period, including:
The I/O of relatively described I/O request postpones the beginning and end with each described time interval;
If the I/O of described I/O request postpones interval more than the very first time in each described time interval described
Starting point, and the terminal interval less than the described very first time, it is determined that described I/O request is corresponding to described the
One time interval.
Processing method the most according to claim 1, it is characterised in that described according to time each described
Between the interval corresponding I/O number of requests predetermined threshold value corresponding with time interval each described, determine described in
Hard disk is slow dish, including:
If pre-corresponding more than or equal to described time interval of I/O number of requests corresponding to described time interval
If threshold value, it is determined that described time interval is interval of transfiniting;
In each time interval described, if there is interval of transfiniting, it is determined that described hard disk is slow dish;Or
Person
Each time interval in each time interval described transfinites interval described in being, it is determined that described
Hard disk is slow dish.
Processing method the most according to claim 1 and 2, it is characterised in that during described preset detection
Between section initial time with to described hard disk issue each I/O request to issue the moment identical.
4. the processing means detecting slow dish, it is characterised in that including:
Acquisition module, for from the initial time of preset detection time period start to obtain hard disk each input/
The I/O of output I/O request postpones;
First determines module, for postponing according to the I/O of I/O request each described, determines described in each
I/O request and the corresponding relation of each time interval;When each time interval described is by described preset detection
Between the time span of section be divided into what multiple interval obtained;
Second determines module, for the finish time in the described preset detection time period, according to described in each
I/O request and the corresponding relation of each described time interval, determine the I/O that each described time interval is corresponding
Number of requests;
3rd determines module, for according to I/O number of requests corresponding to time interval each described and each
The predetermined threshold value that described time interval is corresponding, determines that described hard disk is slow dish;
First determines that module postpones and each described time interval specifically for the I/O of relatively described I/O request
Beginning and end;
If the I/O of described I/O request postpones interval more than the very first time in each described time interval described
Starting point, and the terminal interval less than the described very first time, it is determined that described I/O request is corresponding to described the
One time interval.
Processing means the most according to claim 4, it is characterised in that the 3rd determines that module is specifically used
If in preset corresponding more than or equal to described time interval of the I/O number of requests that described time interval is corresponding
Threshold value, it is determined that described time interval is interval of transfiniting;
In each time interval described, if there is interval of transfiniting, it is determined that described hard disk is slow dish;Or
Person
Each time interval in each time interval described transfinites interval described in being, it is determined that described
Hard disk is slow dish.
6. according to the processing means described in claim 4 or 5, it is characterised in that during described preset detection
Between section initial time with to described hard disk issue each I/O request to issue the moment identical.
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 CN103488544A (en) | 2014-01-01 |
CN103488544B true 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) |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103810062B (en) * | 2014-03-05 | 2015-12-30 | 华为技术有限公司 | Slow dish detection method and device |
CN105446871B (en) | 2014-08-26 | 2018-08-17 | 华为技术有限公司 | A kind of resource leakage detection method, apparatus and system |
EP3182267B1 (en) | 2014-08-30 | 2022-08-24 | Huawei Technologies Co., Ltd. | Method and device for isolating disk regions |
CN106354590B (en) * | 2015-07-17 | 2020-04-24 | 中兴通讯股份有限公司 | Disk detection method and device |
CN106407051B (en) * | 2015-07-31 | 2019-01-11 | 华为技术有限公司 | A kind of method and device detecting slow disk |
CN106407052B (en) * | 2015-07-31 | 2019-09-13 | 华为技术有限公司 | A kind of method and device detecting disk |
CN106557389B (en) * | 2015-09-29 | 2019-03-08 | 成都华为技术有限公司 | A kind of slow disk detection method and device |
CN106802847B (en) * | 2015-11-26 | 2022-05-13 | 伊姆西Ip控股有限责任公司 | Method and apparatus for emulating a slow storage disk |
CN105573888B (en) * | 2015-12-14 | 2018-09-04 | 曙光信息产业股份有限公司 | A kind of disk performance detection method and device in distributed file system |
CN105630416B (en) * | 2015-12-24 | 2018-10-26 | 创新科存储技术(深圳)有限公司 | Disk method and device is kicked in a kind of cloud storage system |
CN106970851A (en) * | 2016-01-14 | 2017-07-21 | 阿里巴巴集团控股有限公司 | Method and apparatus for disk detection process in distributed file system |
CN107273231A (en) * | 2016-04-07 | 2017-10-20 | 阿里巴巴集团控股有限公司 | Distributed memory system hard disk tangles fault detect, processing method and processing device |
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 |
CN109753223B (en) * | 2017-11-03 | 2022-07-08 | 伊姆西Ip控股有限责任公司 | Method and system for detecting slow storage device operation in storage system |
CN110083515B (en) * | 2019-04-24 | 2023-06-20 | 苏州元核云技术有限公司 | Method and device for quickly judging slow disk in distributed storage system and 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 |
CN114706720B (en) * | 2022-06-06 | 2022-09-06 | 南京鹏云网络科技有限公司 | Method, system, equipment and storage medium for judging slow disk of distributed storage system |
CN116149557B (en) * | 2023-02-21 | 2023-07-18 | 北京志凌海纳科技有限公司 | Manufacturing-oriented slow disk detection strategy system and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6779063B2 (en) * | 2001-04-09 | 2004-08-17 | Hitachi, Ltd. | Direct access storage system having plural interfaces which permit receipt of block and file I/O requests |
-
2013
- 2013-09-26 CN CN201310445133.5A patent/CN103488544B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103488544A (en) | 2014-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103488544B (en) | Detect the treating method and apparatus of slow dish | |
CN106354590B (en) | Disk detection method and device | |
CN106354583B (en) | A kind of heat backup method and system of MySQL database | |
US9304856B2 (en) | Implementing ECC control for enhanced endurance and data retention of flash memories | |
CN106547635B (en) | Operation retry method and device for operation | |
US20160124681A1 (en) | Tracking hot areas of disk drive | |
CN104850480A (en) | Method and device for testing performance of hard disk of high-density storage server | |
CN108536548B (en) | Method and device for processing bad track of disk and computer storage medium | |
CN103713981A (en) | Database server performance detection and early warning method | |
CN104516471A (en) | Method and device for managing power supply of storage system | |
CN106372115A (en) | Data reading/writing method and system, and database system | |
CN103576835A (en) | Data manipulation method and device for sleep disk | |
CN104503781A (en) | Firmware upgrading method for hard disk and storage system | |
WO2023185767A1 (en) | Slow disk drive detection method and apparatus, and electronic device and storage medium | |
CN103279408B (en) | The method of testing of raid-array RAID performance | |
CN102841894A (en) | Data storage method of file allocation table | |
JP2017508391A (en) | Method for matching data and event gap transmitted / received in network using different communication technologies | |
CN102243610A (en) | Operating system test method and test system | |
CN106708445B (en) | Link selecting method and device | |
CN105487953A (en) | Bus performance analysis method and apparatus | |
CN105068903A (en) | Hard disk detection and repair system and apparatus | |
CN104572380B (en) | A kind of method and apparatus for detecting disk | |
CN103064803B (en) | A kind of data read-write method of NAND Flash storage device and device | |
CN109358815B (en) | NAND flash memory data management method and device | |
CN112416639A (en) | Slow disk detection method, device, equipment and storage medium |
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 |
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. |
|
TR01 | Transfer of patent right |