CN102945196A - Method and device for server IO (Input Output) diagnosis - Google Patents

Method and device for server IO (Input Output) diagnosis Download PDF

Info

Publication number
CN102945196A
CN102945196A CN2012104222492A CN201210422249A CN102945196A CN 102945196 A CN102945196 A CN 102945196A CN 2012104222492 A CN2012104222492 A CN 2012104222492A CN 201210422249 A CN201210422249 A CN 201210422249A CN 102945196 A CN102945196 A CN 102945196A
Authority
CN
China
Prior art keywords
time
bio
time period
variance
self
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
CN2012104222492A
Other languages
Chinese (zh)
Other versions
CN102945196B (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.)
Hangzhou Huawei Digital Technologies Co Ltd
Original Assignee
Hangzhou Huawei Digital 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 Hangzhou Huawei Digital Technologies Co Ltd filed Critical Hangzhou Huawei Digital Technologies Co Ltd
Priority to CN201210422249.2A priority Critical patent/CN102945196B/en
Publication of CN102945196A publication Critical patent/CN102945196A/en
Application granted granted Critical
Publication of CN102945196B publication Critical patent/CN102945196B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The invention discloses a method and a device for server IO (Input Output) diagnosis, and relates to the technical field of servers, which achieves tracking of each bio processing procedure and can directly determine an IO path with a problem without removing influence factors one by one so as to improve the efficiency of IO diagnosis. The embodiment of the invention comprises the steps as follows: obtaining variances of scheduling time ranges, storage equipment processing time ranges and callback time ranges, which correspond to multiple bios by calculating; and comparing the obtained variances and determining the IO path with the problem according to a comparison result. The method and the device are mainly applied to the server IO diagnosis process.

Description

Method and the device of server I/O diagnosis
Technical field
The present invention relates to the server technology field, (English full name is: Input/Output Chinese full name is: I/O) method and the device of diagnosis to relate in particular to a kind of server I/O.
Background technology
IO subsystem in the server system comprises: in server apparatus with IO about hardware and software and the memory devices such as disk array that are connected with server apparatus.When the server I/O performance has problems, the technical scheme that prior art provides need to be analyzed factors such as CPU, internal memory, service application and the memory device that is connected with server that may affect the server I/O performance and storage networkings, and verifies one by one and get rid of the impact of each factor until the IO path that the location goes wrong.Owing to verify one by one and get rid of each factor to spend a large amount of time, therefore reduced the IO diagnosis efficiency.
Summary of the invention
Embodiments of the invention provide a kind of method and device of server I/O diagnosis, realized that (English full name is: block input output to each bio, the Chinese full name is: the input and output of the piece) tracking of processing procedure, can directly determine the IO path that goes wrong according to variance corresponding to each time period in the bio processing procedure, needn't go to get rid of one by one influence factor, thereby improve the efficient of IO diagnosis.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of method of server I/O diagnosis comprises:
Obtain input and output bio each section, storage device processes time period and the readjustment time period of several pieces self-corresponding scheduling time;
Calculate according to described several bio each section, storage device processes time period and readjustment time period self-corresponding scheduling time, obtain scheduling time section variance, storage device processes time period variance and readjustment time period variance;
With scheduling time section variance, storage device processes time period variance and readjustment time period variance compare, determine the IO path that goes wrong according to comparative result.
A kind of device of server I/O diagnosis comprises:
Acquiring unit is used for obtaining input and output bio each section, storage device processes time period and the readjustment time period of several pieces self-corresponding scheduling time;
Computing unit, be used for several bio of obtaining according to described acquiring unit each section, storage device processes time period and readjustment time period calculates self-corresponding scheduling time, obtains scheduling time section variance, storage device processes time period variance and readjustment time period variance;
Comparing unit, the scheduling time section variance, storage device processes time period variance and the readjustment time period variance that are used for described computing unit is obtained compare, and determine the IO path that goes wrong according to comparative result.
Method and the device of the diagnosis of server I/O that the embodiment of the invention provides, the variance of several bio that obtain by calculating each section, storage device processes time period and readjustment time period self-corresponding scheduling time; And compare according to the variance numerical value that obtains, determine the IO path that goes wrong according to comparative result.The impact of each factor such as CPU, internal memory, service application must be verified and get rid of to the prior art scheme one by one until the IO path that the location goes wrong.Will spend a large amount of time like this, therefore reduce the IO diagnosis efficiency.And technical scheme provided by the invention has realized the tracking to each bio processing procedure, can directly determine the IO path that goes wrong according to variance corresponding to each time period in the bio processing procedure, needn't go to get rid of one by one influence factor, thereby improve the efficient of IO diagnosis.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only 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 the process flow diagram of a kind of server I/O diagnostic method in the embodiment of the invention 1;
Fig. 2 is the process flow diagram of a kind of server I/O diagnostic method in the embodiment of the invention 2;
Fig. 3 is the process flow diagram of a kind of server I/O diagnostic method in the embodiment of the invention 3;
Fig. 4 is the composition frame chart of a kind of server I/O diagnostic device in the embodiment of the invention 4;
Fig. 5 is the composition frame chart of the another kind of server I/O diagnostic device in the embodiment of the invention 4;
Fig. 6 is the composition frame chart of a kind of server I/O diagnostic device in the embodiment of the invention 5.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment 1
The embodiment of the invention provides a kind of method of server I/O diagnosis, and as shown in Figure 1, the method comprises:
101, obtain input and output bio each section, storage device processes time period and the readjustment time period of several pieces self-corresponding scheduling time.
What deserves to be explained is, scheduling time section be bio from the IO dispatch layer to the main time that drives this flow process, the storage device processes time period is the processing time of bio in whole main the driving, the readjustment time period is that bio is from the main time that is driven into the flow process of IO dispatch layer.
102, calculate according to described several bio each section, storage device processes time period and readjustment time period self-corresponding scheduling time, obtain scheduling time section variance, storage device processes time period variance and readjustment time period variance.
103, with scheduling time section variance, storage device processes time period variance and readjustment time period variance compare, determine the IO path that goes wrong according to comparative result.
Wherein, the variance of time period is compared, namely the size of its numerical value relatively determines that according to comparative result time period corresponding to maximum variance value corresponding IO path is the IO path that goes wrong.
The method of server I/O that the embodiment of the invention provides diagnosis, the variance of several bio that obtain by calculating each section, storage device processes time period and readjustment time period self-corresponding scheduling time; And the variance numerical value that obtains compares, and determines the IO path that goes wrong according to comparative result.The impact of each factor such as CPU, internal memory, service application must be verified and get rid of to the prior art scheme one by one until the IO path that the location goes wrong.Will spend a large amount of time like this, therefore reduce the IO diagnosis efficiency.And technical scheme provided by the invention has realized the tracking to each bio processing procedure, can directly determine the IO path that goes wrong according to variance corresponding to each time period in the bio processing procedure, needn't go to get rid of one by one influence factor, thereby improve the efficient of IO diagnosis.
Embodiment 2
The method of the server I/O diagnosis that the embodiment of the invention provides, as shown in Figure 2, the method comprises:
201, obtain the time that the IO dispatch layer receives each bio, and described IO dispatch layer is received the time of each bio respectively as each self-corresponding very first time value of each bio.
Wherein, it is to be realized by the dependent instruction of stipulating in " submit_bio " function that bio is handed down to the IO dispatch layer by the generic block layer, what deserves to be explained is, the embodiment of the invention is set up printing function in this function, print respectively the system time that the IO dispatch layer receives each bio, be worth as the very first time with this time.
202, obtain the main time that begins to process each bio that drives, and described main the driving begun to process the time of each bio respectively as each self-corresponding second time value of each bio.
What deserves to be explained is, in this step, by the dependent instruction of stipulating in " scsi_dispatch_cmd " function bio is converted into scsi command, and scsi command is handed down to main the driving.What deserves to be explained is that the embodiment of the invention is set up printing function in this function, print respectively scsi command is handed down to the main system time that drives, and with this as each self-corresponding second time value of each bio.
203, obtain the main time of handling each bio that drives, and described main the driving handled the time of each bio respectively as each self-corresponding the 3rd time value of each bio.
What deserves to be explained is, in this step, after the bio operation is finished in main driving, carry out the dependent instruction of " scsi_io_completion " function.The present invention sets up printing function in this function, the system time of difference print execution described " scsi_io_completion " function is as each self-corresponding the 3rd time value of each bio.
204, obtain the time that the IO dispatch layer sends each bio, and described IO dispatch layer is sent the time of each bio respectively as each self-corresponding the 4th time value of each bio.
Wherein, the IO dispatch layer sends bio and represents that namely whole bio finishes, and after whole bio finishes, carries out " bio_endio " function.The present invention sets up printing function in this function, the system time of difference print execution described " bio_endio " function is as each self-corresponding the 4th time value of each bio.
205, each self-corresponding very first time value of each bio and described the second time value are made respectively additive operation, obtain each bio each section self-corresponding scheduling time.
206, each self-corresponding second time value of each bio and described the 3rd time value are made respectively additive operation, obtain each self-corresponding storage device processes time period of each bio.
207, each self-corresponding the 3rd time value of each bio and described the 4th time value are made respectively additive operation, obtain each self-corresponding readjustment time period of each bio.
What deserves to be explained is that the scheduling time section of mentioning among the above-mentioned steps 205-207, storage device processes time period, readjustment time period, the associated description among its each self-corresponding IO path and the embodiment 1 in the step 101 is identical, is not repeated.
208, calculate according to described several bio each section, storage device processes time period and readjustment time period self-corresponding scheduling time, obtain scheduling time section variance, storage device processes time period variance and readjustment time period variance.
209, more described scheduling time section variance, storage device processes time period variance and the size of readjustment time period variance, determine the maximum variance value according to comparative result.
210, determine described time period corresponding to maximum variance value, and determine that path corresponding to time period corresponding to described maximum variance value is the IO path that goes wrong.
What deserves to be explained is that wherein the time period is scheduling time section, storage device processes time period and the readjustment time period in the step 208.Time period is to be got by poor calculating of two time values, and the concrete acquisition of time period originally is being that step 205-207 has made related description among the embodiment, no longer is repeated in this description at this.
In addition, the IO path that the time period in this step is corresponding to be described in detail, is not repeated in the step 101 in embodiment 1.
In addition, what deserves to be explained is that the user can arrange time delay by postponing interface function in main the driving, thereby can make amendment to normal bio treatment scheme, to get rid of memory device to the impact of server I/O diagnosis.
Further, the method to set up of delay interface function specifically comprises:
1. define global variable delay_time, this variable represents time delay.
2. defining interface function, the content of definition is: the interface function name that offers the user; The title of function is set.Offer the interface that the user arranges time delay by definition.
3. definition arranges function, function is set sending global variable delay_time the time delay that is obtained by interface function to.
Particularly, be used for time delay simulating actual bio through the time delay of memory device.The time delay that delay function postpone to be set, wait and directly call " scsi_io_completion " function to change the bio treatment scheme after postponing to finish, make bio not need memory device through reality.Thereby can get rid of storer to the impact in IO path.
The method of server I/O that the embodiment of the invention provides diagnosis, the variance of several bio that obtain by calculating each section, storage device processes time period and readjustment time period self-corresponding scheduling time; And the variance numerical value that obtains compares, and determines the IO path that goes wrong according to comparative result.The impact of each factor such as CPU, internal memory, service application must be verified and get rid of to the prior art scheme one by one until the IO path that the location goes wrong.Will spend a large amount of time like this, therefore reduce the IO diagnosis efficiency.And technical scheme provided by the invention has realized the tracking to each bio processing procedure, can directly determine the IO path that goes wrong according to variance corresponding to each time period in the bio processing procedure, needn't go to get rid of one by one influence factor, thereby improve the efficient of IO diagnosis.
Embodiment 3
The invention provides a kind of method of server I/O diagnosis, the method can be used for following example.This example is to obtain 5 bio as the concrete method flow of example introduction.Very first time value can be expressed as sub-time in this example, and the second time value can be expressed as dis-time, and the 3rd time value can be expressed as com-time, and the 4th time value can be expressed as end-time.Scheduling time, segment table was shown sub-dis-time, and the storage device processes time period is expressed as dis--com-time, and the readjustment time period is expressed as com-end-time.What deserves to be explained is, just the method for expressing of time value and time period title has been done change herein, there is no other practical significance.In addition, very first time value, the second time value, the 3rd time value, the 4th time value are identical with the associated description of step 201-204 among the embodiment 2; Scheduling time section, storage device processes time period, readjustment time period are identical with the associated description of step 205-207 among the embodiment 2, then in the present embodiment no longer repeat specification.As shown in Figure 3, the method comprises:
301, obtain each self-corresponding very first time value of 5 bio, the second time value, the 3rd time value, the 4th time value.
What deserves to be explained is that the implementation method of this step is corresponding with step 201-204 among the embodiment 2, just be converted into by the uncertain number among the embodiment 2 and determine number 5, so be not repeated.In addition, such as following table 1, this example describes as an example of the concrete numerical value of four kinds of times example.
Table 1
bio1 bio2 bio3 bio4 bio5
sub-time(μs) 300 301 302 303 303
dis-time(μs) 302 305 307 310 320
com-time(μs) 402 406 407 412 422
cmd-time(μs) 410 416 417 419 430
302, the very first time value in the step 301, the second time value, the 3rd time value, the 4th time value are carried out additive operation.
Wherein, this step additive operation is corresponding with step 205-207 among the embodiment 2, and concrete methods of realizing is identical, no longer describes in detail at this.
In addition, the concrete time value of 5 bio that will provide for step 301 obtains its corresponding difference, shown in following table table 2:
Table 2
bio1 bio2 bio3 bio4 bio5
sub-dis-time(μs) 2 4 5 7 17
dis-com-time(μs) 100 101 100 102 102
com-end-time(μs) 8 10 10 8 9
The sub-dis-time that remembers respectively bio1-bio5 is s1-s5, and the dis--com-time that remembers respectively bio1-bio5 is d1-d5, and the com-end-time that remembers respectively bio1-bio5 is c1-c5.
303, calculate according to described 5 bio each self-corresponding sub-dis-time, dis--com-time and com-end-time, obtain variance separately.
Wherein, calculate variance and need to calculate first above-mentioned each self-corresponding mean value of three kinds of time periods, the mean value that sub-dis-time is corresponding is designated as, and the mean value that dis--com-time is corresponding is designated as ad, and the mean value that com-end-time is corresponding is designated as ac.The occurrence of three kinds of time periods of 5 bio that obtain according to step 302 in the present embodiment obtains its corresponding mean value, and is as shown in table 3 below:
Table 3
as (μs) 7
ad (μs) 101
ac (μs) 9
As follows according to mean value calculation variance process:
Scheduling time, the section variance was:
1/5[(s1-as) 2+ (s2-as) 2+ (s3-as) 2+ (s4-as) 2+ (s5-as) 2]=27.6 storage device processes time period variance is:
1/5[(d1-ad) 2+ (d2-ad) 2+ (d3-ad) 2+ (d4-ad) 2+ (d5-ad) 2]=0.8 readjustment time period variance is:
1/5[(c1-ac) 2+ (c2-ac) 2+ (c 3-ac) 2+ (c4-ac) 2+ (c5-ac) 2]=0.8304, determine the maximum variance value.
Wherein, maximum variance value position scheduling time section variance, namely by 27.6 maximums in three variance yields that obtain in the above-mentioned steps 303, correspondence scheduling time section variance.
305, determine that according to comparative result the IO path that goes wrong is that the IO dispatch layer drives to main.
The method of server I/O that the embodiment of the invention provides diagnosis is obtained the variance of 5 bio each section, storage device processes time period and readjustment time period self-corresponding scheduling time by calculating; And the variance numerical value that obtains compares, and determines the IO path that goes wrong according to comparative result.The impact of each factor such as CPU, internal memory, service application must be verified and get rid of to the prior art scheme one by one until the IO path that the location goes wrong.Will spend a large amount of time like this, therefore reduce the IO diagnosis efficiency.And technical scheme provided by the invention has realized the tracking to each bio processing procedure, can directly determine the IO path that goes wrong needn't go to get rid of one by one influence factor according to comparative result, thereby improve the efficient of IO diagnosis.
Embodiment 4
The invention provides a kind of device of server I/O diagnosis, as shown in Figure 4, this device comprises: acquiring unit 41, computing unit 42, comparing unit 43.
Acquiring unit 41 is used for obtaining input and output bio each section, storage device processes time period and the readjustment time period of several pieces self-corresponding scheduling time.
Computing unit 42, be used for several bio of obtaining according to described acquiring unit 41 each section, storage device processes time period and readjustment time period calculates self-corresponding scheduling time, obtains scheduling time section variance, storage device processes time period variance and readjustment time period variance.
Comparing unit 43, the scheduling time section variance, storage device processes time period variance and the readjustment time period variance that are used for described computing unit 42 is obtained compare, and determine the IO path that goes wrong according to comparative result.
Optionally, as shown in Figure 5, described acquiring unit 41 also comprises: acquisition module 411, computing module 412; Described comparing unit 43 also comprises: comparison module 431, determination module 432.
Acquisition module 411 is used for obtaining the time that the IO dispatch layer receives each bio, and described IO dispatch layer is received the time of each bio respectively as each self-corresponding very first time value of each bio; Be used for obtaining the main time that begins to process each bio that drives, and described main the driving begun to process the time of each bio respectively as each self-corresponding second time value of each bio; Be used for obtaining the main time of handling each bio that drives, and described main the driving handled the time of each bio respectively as each self-corresponding the 3rd time value of each bio; Obtain the IO dispatch layer and send time of each bio, and described IO dispatch layer is sent the time of each bio respectively as each self-corresponding the 4th time value of each bio.
Computing module 412 is used for each self-corresponding very first time value of each bio and described the second time value that described acquisition module 411 gets access to are made respectively additive operation, obtains each bio each section self-corresponding described scheduling time; Be used for each self-corresponding second time value of each bio and described the 3rd time value are made respectively additive operation, obtain each self-corresponding storage device processes time period of each bio; Also be used for each self-corresponding the 3rd time value of each bio and described the 4th time value are made respectively additive operation, obtain each self-corresponding readjustment time period of each bio.
Comparison module 431 is used for the size of more described scheduling time section variance, storage device processes time period variance and readjustment time period variance.
Determination module 432 is used for determining the maximum variance value according to the comparative result that described comparison module 431 obtains; Determine described time period corresponding to maximum variance value, and determine that path corresponding to time period corresponding to described maximum variance value is the IO path that goes wrong.
The device of server I/O that the embodiment of the invention provides diagnosis, the variance of several bio that obtain by calculating each section, storage device processes time period and readjustment time period self-corresponding scheduling time; And the variance numerical value that obtains compares, and determines the IO path that goes wrong according to comparative result.The impact of each factor such as CPU, internal memory, service application must be verified and get rid of to the prior art scheme one by one until the IO path that the location goes wrong.Will spend a large amount of time like this, therefore reduce the IO diagnosis efficiency.And technical scheme provided by the invention has realized the tracking to each bio processing procedure, can directly determine the IO path that goes wrong needn't go to get rid of one by one influence factor according to comparative result, thereby improve the efficient of IO diagnosis.
Embodiment 5
The invention provides a kind of device of server I/O diagnosis, as shown in Figure 6, this device comprises: processor 01, storer 02.
Processor 01 is used for obtaining the time that the IO dispatch layer receives each bio, and described IO dispatch layer is received the time of each bio respectively as each self-corresponding very first time value of each bio.
Storer 02 is used for storing each self-corresponding very first time value of described each bio.
Processor 01 is used for obtaining the main time that begins to process each bio that drives, and described main the driving begun to process the time of each bio respectively as each self-corresponding second time value of each bio.
Storer 02 is used for storing each self-corresponding second time value of described each bio.
Processor 01 is used for obtaining the main time of handling each bio that drives, and described main the driving handled the time of each bio respectively as each self-corresponding the 3rd time value of each bio.
Storer 02 is used for storing each self-corresponding the 3rd time value of described each bio.
Processor 01 is used for obtaining the time that the IO dispatch layer sends each bio, and described IO dispatch layer is sent the time of each bio respectively as each self-corresponding the 4th time value of each bio.
Storer 02 is used for storing each self-corresponding the 4th time value of described each bio.
Processor 01 is used for each self-corresponding very first time value of each bio and described the second time value are made respectively additive operation, obtains each bio each section self-corresponding scheduling time.
Storer 02 is used for storing described each bio each section self-corresponding scheduling time.
Processor 01 is used for each self-corresponding second time value of each bio and described the 3rd time value are made respectively additive operation, obtains each self-corresponding storage device processes time period of each bio.
Storer 02 is used for storing each self-corresponding storage device processes time period of described each bio.
Processor 01 is used for each self-corresponding the 3rd time value of each bio and described the 4th time value are made respectively additive operation, obtains each self-corresponding readjustment time period of each bio.
Storer 02 is used for storing each self-corresponding readjustment time period of described each bio.
Processor 01 is used for calculating according to described several bio each section, storage device processes time period and readjustment time period self-corresponding scheduling time, obtains scheduling time section variance, storage device processes time period variance and readjustment time period variance.
Storer 02 is used for storing described scheduling time section variance, storage device processes time period variance and readjustment time period variance.
Processor 01 is used for the size of more described scheduling time section variance, storage device processes time period variance and readjustment time period variance, determines the maximum variance value according to comparative result.
Storer 02 is used for storing described maximum variance value.
Processor 01 is used for determining described time period corresponding to maximum variance value, and determines that path corresponding to time period corresponding to described maximum variance value is the IO path that goes wrong.
Storer 02 is used for storing the described IO path that goes wrong.
Optionally, processor 01 also is used for arranging the delay interface function.
Storer 02 also is used for storing described delay interface function.
The device of server I/O that the embodiment of the invention provides diagnosis, the variance of several bio that obtain by calculating each section, storage device processes time period and readjustment time period self-corresponding scheduling time; And the variance numerical value that obtains compares, and determines the IO path that goes wrong according to comparative result.The impact of each factor such as CPU, internal memory, service application must be verified and get rid of to the prior art scheme one by one until the IO path that the location goes wrong.Will spend a large amount of time like this, therefore reduce the IO diagnosis efficiency.And technical scheme provided by the invention has realized the tracking to each bio processing procedure, can directly determine the IO path that goes wrong needn't go to get rid of one by one influence factor according to comparative result, thereby improve the efficient of IO diagnosis.
Through the above description of the embodiments, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but the former is better embodiment in a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium that can read, floppy disk such as computing machine, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (6)

1. the method for a server I/O IO diagnosis is characterized in that, comprising:
Obtain input and output bio each section, storage device processes time period and the readjustment time period of several pieces self-corresponding scheduling time;
Calculate according to described several bio each section, storage device processes time period and readjustment time period self-corresponding scheduling time, obtain scheduling time section variance, storage device processes time period variance and readjustment time period variance;
With scheduling time section variance, storage device processes time period variance and readjustment time period variance compare, determine the IO path that goes wrong according to comparative result.
2. the method for server I/O according to claim 1 diagnosis is characterized in that, described obtaining several bio each section, storage device processes time period and readjustment time period specifically comprises self-corresponding scheduling time:
Obtain the IO dispatch layer and receive time of each bio, and described IO dispatch layer is received the time of each bio respectively as each self-corresponding very first time value of each bio;
Obtain the main time that begins to process each bio that drives, and described main the driving begun to process the time of each bio respectively as each self-corresponding second time value of each bio;
Obtain the main time of handling each bio that drives, and described main the driving handled the time of each bio respectively as each self-corresponding the 3rd time value of each bio;
Obtain the IO dispatch layer and send time of each bio, and described IO dispatch layer is sent the time of each bio respectively as each self-corresponding the 4th time value of each bio;
Each self-corresponding very first time value of each bio and described the second time value are made respectively additive operation, obtain each bio each section self-corresponding scheduling time;
Each self-corresponding second time value of each bio and described the 3rd time value are made respectively additive operation, obtain each self-corresponding storage device processes time period of each bio;
Each self-corresponding the 3rd time value of each bio and described the 4th time value are made respectively additive operation, obtain each self-corresponding readjustment time period of each bio.
3. the method for server I/O according to claim 1 diagnosis, it is characterized in that, described with scheduling time section variance, storage device processes time period variance and readjustment time period variance compare, determine the IO path that goes wrong specifically to comprise according to comparative result:
More described scheduling time section variance, storage device processes time period variance and the size of readjustment time period variance, determine the maximum variance value according to comparative result;
Determine described time period corresponding to maximum variance value, and determine that path corresponding to time period corresponding to described maximum variance value is the IO path that goes wrong.
4. the device of a server I/O diagnosis is characterized in that, comprising:
Acquiring unit is used for obtaining input and output bio each section, storage device processes time period and the readjustment time period of several pieces self-corresponding scheduling time;
Computing unit, be used for several bio of obtaining according to described acquiring unit each section, storage device processes time period and readjustment time period calculates self-corresponding scheduling time, obtains scheduling time section variance, storage device processes time period variance and readjustment time period variance;
Comparing unit, the scheduling time section variance, storage device processes time period variance and the readjustment time period variance that are used for described computing unit is obtained compare, and determine the IO path that goes wrong according to comparative result.
5. device according to claim 4 is characterized in that, described acquiring unit comprises:
Acquisition module is used for obtaining the time that the IO dispatch layer receives each bio, and described IO dispatch layer is received the time of each bio respectively as each self-corresponding very first time value of each bio; Be used for obtaining the main time that begins to process each bio that drives, and described main the driving begun to process the time of each bio respectively as each self-corresponding second time value of each bio; Be used for obtaining the main time of handling each bio that drives, and described main the driving handled the time of each bio respectively as each self-corresponding the 3rd time value of each bio; Obtain the IO dispatch layer and send time of each bio, and described IO dispatch layer is sent the time of each bio respectively as each self-corresponding the 4th time value of each bio;
Computing module is used for each self-corresponding very first time value of each bio and described the second time value that described acquisition module gets access to are made respectively additive operation, obtains each bio each section self-corresponding described scheduling time; Be used for each self-corresponding second time value of each bio and described the 3rd time value are made respectively additive operation, obtain each self-corresponding storage device processes time period of each bio; Also be used for each self-corresponding the 3rd time value of each bio and described the 4th time value are made respectively additive operation, obtain each self-corresponding readjustment time period of each bio.
6. the device of server I/O according to claim 4 diagnosis is characterized in that described comparing unit comprises:
Comparison module is used for the size of more described scheduling time section variance, storage device processes time period variance and readjustment time period variance;
Determination module is used for determining the maximum variance value according to the comparative result that described comparison module obtains; Determine described time period corresponding to maximum variance value, and determine that path corresponding to time period corresponding to described maximum variance value is the IO path that goes wrong.
CN201210422249.2A 2012-10-29 2012-10-29 Method and device for server IO (Input Output) diagnosis Expired - Fee Related CN102945196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210422249.2A CN102945196B (en) 2012-10-29 2012-10-29 Method and device for server IO (Input Output) diagnosis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210422249.2A CN102945196B (en) 2012-10-29 2012-10-29 Method and device for server IO (Input Output) diagnosis

Publications (2)

Publication Number Publication Date
CN102945196A true CN102945196A (en) 2013-02-27
CN102945196B CN102945196B (en) 2015-02-04

Family

ID=47728144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210422249.2A Expired - Fee Related CN102945196B (en) 2012-10-29 2012-10-29 Method and device for server IO (Input Output) diagnosis

Country Status (1)

Country Link
CN (1) CN102945196B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1127578A (en) * 1993-07-19 1996-07-24 英国电讯有限公司 Detecting errors in video images
CN1744049A (en) * 2004-09-02 2006-03-08 国际商业机器公司 Method and apparatus for regulating input/output fault
CN101616174A (en) * 2009-07-09 2009-12-30 浪潮电子信息产业股份有限公司 A kind of storage system IO handles the method that the path dynamic tracking realizes the optimization system performance
CN201540532U (en) * 2009-11-27 2010-08-04 英业达股份有限公司 Server system
CN102073605A (en) * 2010-12-27 2011-05-25 深圳市创新科信息技术有限公司 Method for storage interface bypassing Bio layer to access disk drive
JP2012173201A (en) * 2011-02-23 2012-09-10 Fujitsu Semiconductor Ltd Method and device of failure diagnosis, test system and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1127578A (en) * 1993-07-19 1996-07-24 英国电讯有限公司 Detecting errors in video images
CN1744049A (en) * 2004-09-02 2006-03-08 国际商业机器公司 Method and apparatus for regulating input/output fault
CN101616174A (en) * 2009-07-09 2009-12-30 浪潮电子信息产业股份有限公司 A kind of storage system IO handles the method that the path dynamic tracking realizes the optimization system performance
CN201540532U (en) * 2009-11-27 2010-08-04 英业达股份有限公司 Server system
CN102073605A (en) * 2010-12-27 2011-05-25 深圳市创新科信息技术有限公司 Method for storage interface bypassing Bio layer to access disk drive
JP2012173201A (en) * 2011-02-23 2012-09-10 Fujitsu Semiconductor Ltd Method and device of failure diagnosis, test system and program

Also Published As

Publication number Publication date
CN102945196B (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN102279766B (en) Method and system for concurrently simulating processors and scheduler
US20070078641A1 (en) Method for performing dynamic simulations within virtualized environment
US20200379748A1 (en) Upgrading method and apparatus
EP2930611A1 (en) Method and device for swapping data into memory
CN110737594A (en) Database standard conformance testing method and device for automatically generating test cases
US7783927B2 (en) Intelligent processing tools
US20130013283A1 (en) Distributed multi-pass microarchitecture simulation
CN102243506B (en) Method and device for acquiring system time
CN103885980A (en) Bookmark adding method and browser
CN105488692A (en) Method and device for computing number of online users
CN110955390A (en) Data processing method and device and electronic equipment
CN110569230A (en) Method, system and equipment for interconversion between database design model and design document
CN109243518A (en) A kind of test method for solid state hard disk, device and computer storage medium
CN102945196A (en) Method and device for server IO (Input Output) diagnosis
CN110674044B (en) Coverage rate acquisition method, system, equipment and medium for function automation test
CN111324653B (en) Method, device and equipment for acquiring offline data and storage medium
CN106843822B (en) Execution code generation method and equipment
CN111913858A (en) Pressure testing system and method
CN109165027B (en) Virtual machine operating system installation method, device, equipment and readable storage medium
US11443191B2 (en) Computing device and parameter synchronization method implemented by computing device
CN105761119A (en) On-line number of people distribution calculation method and device
CN111984624B (en) Method and system for data migration through correction migration model
CN114385496A (en) Test method, test device, electronic equipment and computer readable storage medium
WO2018228528A1 (en) Batch circuit simulation method and system
CN107066235B (en) Calculation method and device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150204

Termination date: 20191029

CF01 Termination of patent right due to non-payment of annual fee