CN108228420A - The method, apparatus of IO monitoring and the realization device of IO monitoring - Google Patents
The method, apparatus of IO monitoring and the realization device of IO monitoring Download PDFInfo
- Publication number
- CN108228420A CN108228420A CN201711388904.6A CN201711388904A CN108228420A CN 108228420 A CN108228420 A CN 108228420A CN 201711388904 A CN201711388904 A CN 201711388904A CN 108228420 A CN108228420 A CN 108228420A
- Authority
- CN
- China
- Prior art keywords
- sub
- time
- line journey
- monitoring
- record
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3419—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3041—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3485—Performance evaluation by tracing or monitoring for I/O devices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Present disclose provides a kind of method, apparatus of IO monitoring and the realization devices of IO monitoring, are related to IO monitoring technologies field, this method includes:In IO thread operational process, the sub-line journey of IO threads is monitored;When the time for monitoring sub-line journey processing IO being not less than the first given threshold, sub-line journey time-out is determined.The method, apparatus for the IO monitoring that disclosure embodiment provides and the realization device of IO monitoring, whether there is overtime IO in sub-line journey by monitoring IO threads, if there is, determine sub-line journey time-out, this monitor mode can be in IO thread time-out, the sub-line journey of time-out is determined in time, does not need to occupy excessive memory space and reappears problem again, improves the efficiency and performance of IO monitoring.
Description
Technical field
This disclosure relates to IO monitoring technologies field, the reality of method, apparatus and IO monitoring more particularly, to a kind of IO monitoring
Existing device.
Background technology
Client needs by much reading and writing IO (Input Output, input and output) read-write operation of storage device
It realizes, when only these read-writes IO feeds back completion, current read-write operation is just completed.Such as:Client will be write to storage device
The file of one 1G, the minimum memory unit of storage device is 4M, then 256 4M sizes of needs write IO, each write IO and exist
After being successfully written disk, be notified that storage IO is written successfully, storage device receive 256 write complete notice after, notice visitor
Write the success of 1G files in family end.
Usual client requires the time-consuming size of write operation, if write operation, meeting cannot be completed at the appointed time
Lead to the failure of this write operation or even cause operation system failure etc..Therefore it needs to carry out each IO overtime monitoring.At present,
The time-out monitoring of IO is frequently with daily record printing type, and which needs to add daily record for IO, and a large amount of IO log informations not only account for
With memory space, and analytic process relatively takes time and effort.
Invention content
In view of this, a kind of method, apparatus for being designed to provide IO monitoring of the disclosure and the realization device of IO monitoring,
To improve the efficiency and performance of IO monitoring.
To achieve these goals, the technical solution that the disclosure uses is as follows:
In a first aspect, present disclose provides a kind of method of IO monitoring, applied to storage device, including:It is transported in IO threads
During row, the sub-line journey of IO threads is monitored;Threshold is set not less than first when the time for monitoring sub-line journey processing IO
During value, sub-line journey time-out is determined.
Second aspect, present disclose provides a kind of device of IO monitoring, applied to storage device, including:Monitoring module is used
In in IO thread operational process, the sub-line journey of IO threads is monitored;Logging modle monitors sub-line journey processing for working as
When the time of IO is not less than the first given threshold, sub-line journey time-out is determined.
The third aspect, disclosure embodiment provide a kind of realization device of IO monitoring, can including processor and machine
Storage medium is read, machine readable storage medium is stored with the machine-executable instruction that can be executed by processor, and processor performs
Machine-executable instruction is to realize the above method.
Fourth aspect, disclosure embodiment provide a kind of machine readable storage medium, and machine readable storage medium is deposited
Machine-executable instruction is contained, when being called and being performed by processor, machine-executable instruction promotes to locate machine-executable instruction
It manages device and realizes the above method.
The above method, device, realization device and machine readable storage medium, in the sub-line journey by monitoring IO threads whether
There is overtime IO (i.e. whether the time of sub-line journey processing IO is not less than the first given threshold), if so, determine sub-line journey time-out,
This monitor mode in IO thread time-out, can determine the sub-line journey of time-out in time, not need to occupy excessive storage sky
Between and reappear problem again, improve IO monitoring efficiency and performance.
Other feature and advantage of the disclosure will illustrate in the following description, alternatively, Partial Feature and advantage can be with
Deduce from specification or unambiguously determine or by implement the disclosure above-mentioned technology it can be learnt that.
For the above-mentioned purpose of the disclosure, feature and advantage is enable to be clearer and more comprehensible, better embodiment cited below particularly, and match
Attached drawing appended by conjunction, is described in detail below.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of disclosure specific embodiment or technical solution of the prior art
Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below
Attached drawing is some embodiments of the disclosure, for those of ordinary skill in the art, before not making the creative labor
It puts, can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow chart of the method for a kind of IO monitoring that disclosure embodiment provides;
Fig. 2 is a kind of monitoring schematic diagram for writing IO threads that disclosure embodiment provides;
Fig. 3 is the flow chart of the method for another IO monitoring that disclosure embodiment provides;
Fig. 4 is the structure diagram of the device of a kind of IO monitoring that disclosure embodiment provides;
Fig. 5 is the structure diagram of the device of another IO monitoring that disclosure embodiment provides;
Fig. 6 is the structure diagram of the device of another IO monitoring that disclosure embodiment provides;
Fig. 7 is the structure diagram of the realization device of a kind of IO monitoring that disclosure embodiment provides.
Specific embodiment
Purpose, technical scheme and advantage to make disclosure embodiment are clearer, below in conjunction with attached drawing to this public affairs
The technical solution opened is clearly and completely described, it is clear that and described embodiment is a part of embodiment of the disclosure,
Rather than whole embodiment.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creation
Property labour under the premise of the every other embodiment that is obtained, belong to the range of disclosure protection.
It should be noted that above-mentioned each method embodiment is described by the way of progressive, each embodiment emphasis
What is illustrated is all the difference with other embodiment, and identical similar part is mutually referring to i.e. between each embodiment
It can.
It is whether overtime by daily record (log) printing type monitoring IO, it needs to add many log informations.In order to distinguish other
IO, it will usually use the information indicatings such as the filename of I/O operation, offset, length IO;Log information includes:It is chased after when generating IO
The daily record that adds, in daily record additional in the processing path of IO and the daily record added when IO is returned from disk.This mode has
Following problem:1. the IO enormous amounts of storage device, each IO will print many log informations, the property of storage device can be caused
It can decline to a great extent;When log information is excessive, a large amount of system resource can be occupied, it is unavailable to even result in storage device;It is 2. a large amount of
IO log informations, search time-out IO short time consumptions it is long;3. since IO log informations cannot be constantly in opening state, go out
During existing IO time-out, it is impossible to pinpoint the problems in time, influence the efficiency of positioning problems.
Disclosure embodiment provides a kind of method, apparatus of IO monitoring and the realization device of IO monitoring, to improve IO
The efficiency and performance of monitoring.
The method, apparatus for the IO monitoring that disclosure embodiment provides and the realization device of IO monitoring, set applied to storage
Standby, which can be the autonomous device or one or more of cluster-based storage equipment for having store function
The combination of equipment.The storage device can run storage system.
A kind of flow chart of the method for IO monitoring as shown in Figure 1, this method include the following steps:
Step S102 in IO thread operational process, is monitored the sub-line journey of IO threads.
Whether the problem of in order to find storage device needs monitoring IO overtime, and the processing procedure of IO is by very
Multithreading coordinates jointly to complete, i.e. IO threads.The IO threads can include:Read/write process sub-line journey, log processing sub-line
Journey, read/write disk processing sub-line journey etc..Since the processing procedure of IO threads is general for each IO, pass through monitoring
The processing procedure of these sub-line journeys, it is possible to complete the monitoring to IO.When these sub-line journeys processing time-out, it is meant that IO surpasses
When, therefore the sub-line journey monitored in IO threads can achieve the effect that monitoring IO is identical.
, can be to all sub-line range monitorings in IO threads when to sub-line range monitoring in IO threads, it can also be to IO
Which sub-line journey part sub-line range monitoring in thread, specifically monitor, according to practical application it needs to be determined that.Each sub-line journey
Identical or different given threshold can be pre-configured with, for judging whether the sub-line journey overtime phenomenon occurs.
Step S104 when the time for monitoring sub-line journey processing IO being not less than the first given threshold, determines the sub-line journey
Time-out.
The sub-line journey for monitoring IO threads whether time-out when, can monitor sub-line journey handle each IO time whether there is it is super
When, which can determine the sub-line journey time-out when being not less than the first given threshold of the sub-line journey, current IO is then time-out IO.
Whether the method for IO monitoring that disclosure embodiment provides, have time-out in the sub-line journey by monitoring IO threads
IO, if so, determining sub-line journey time-out, this monitor mode in IO thread time-out, can determine the son of time-out in time
Thread does not need to occupy excessive memory space and reappears problem again, improves the efficiency and performance of IO monitoring.
After above-mentioned sub-line journey time-out is determined, can record the sub-line journey time-out and/or, export the sub-line journey time-out.
Since IO number of threads is fewer in storage device, the number for the sub-line journey being monitored in IO threads is also limited, by only remembering
The information content for recording and/or exporting sub-line journey time-out also can be fewer, and not overtime situation is disregarded, is further reduced
Information content, so as in the case where not influencing storage device performance, achieve the purpose that find overtime reason.
In one of which embodiment, whether sub-line journey processing IO is overtime, can be IO in sub-line journey start to process IO
An initial time is recorded, is monitored by basic point of initial time.Based on this, the son to IO threads in above-mentioned steps S102
The step of thread is monitored may include steps of:
(1) initial time of above-mentioned sub-line journey start to process IO is recorded, which can be specific son in IO threads
Thread, such as:Read/write process sub-line journey etc.;If the sub-line journey has corresponding IO queues, then sub-line journey start to process IO
Initial time can be IO enter the IO queues time, can be recorded with the mode of timestamp.If the sub-line journey
There is no corresponding IO queues, then the initial time of sub-line journey start to process IO can be sub-line journey bring into operation the IO when
Between.
(2) time of IO is handled under current time using current time and the difference of initial time as sub-line journey.Such as
Under current time, sub-line journey handles time=current time-initial time of IO.
When monitoring sub-line journey, cycle monitoring may be used, such as with 1 second for cycle duration, in above-mentioned sub-line journey
Each IO is polled monitoring, and the initial time that the IO is subtracted with current time obtains difference, exists using the difference as sub-line journey
The time of IO is handled under current time, whether the difference is judged not less than the first given threshold, if so, illustrating at the sub-line journey
Manage the time time-out of IO.This monitor mode can determine currently to whether there is time-out IO at the first time, and each IO only needs
Record its initial time, when entering next sub-line journey, which can be updated the IO, therefore data record amount compared with
It is few.
In another implementation, the time and sub-line journey that can also record sub-line journey start to process IO have handled the IO
Time, using the difference of two time of record as the IO whether time-out basis for estimation.Based on this, in above-mentioned steps S102
The sub-line journey to IO threads the step of being monitored, can also include the following steps:
(1) initial time of above-mentioned sub-line journey start to process IO is recorded.
(2) end time that above-mentioned sub-line journey has handled above-mentioned IO is recorded.
(3) using the difference of above-mentioned end time and initial time as the time of the above-mentioned IO of sub-line journey processing.
Under this monitor mode, the initial time of sub-line journey start to process IO when IO enters sub-line journey, can be recorded,
When the sub-line journey completes the relevant operation to the IO, the end time that the sub-line journey has handled the IO is recorded, with the end time
With the difference of initial time as the IO in the sub-line journey whether the basis for estimation of time-out, such as:Judge the difference whether not
Less than the first given threshold, if so, illustrate that the sub-line journey handles the time time-out of the IO, after determining the sub-line journey time-out,
Can record the sub-line journey time-out and/or, export the sub-line journey time-out.If the IO is by next sub-line journey of the sub-line journey
During processing, the end time recorded before and initial time can be removed, repeats the process of above-mentioned steps (1) to (3).
In view of the needs to time-out classification processing, multiple and different timeout thresholds can also be set to a sub-line journey,
The above method further includes:If the time of above-mentioned sub-line journey processing IO is not less than the second given threshold, the alarm sub-line
Cheng Yanchong time-out, wherein, the second given threshold is more than the first given threshold.For example, the first given threshold can be set as 30 seconds,
Second given threshold can be set as 180 seconds, if sub-line journey handled the time of the IO more than 30 seconds, record or export the son
Thread time-out;If the time that sub-line journey handles the IO continued to increase more than 180 seconds, alarm is seriously overtime, may
Failure can be caused, need to carry out emergent management.
The method of IO monitoring that disclosure embodiment provides, by the sub-line journey in monitoring IO threads, at sub-line journey
The time of IO is managed as judging basis, if the time is more than the first given threshold of the sub-line journey, carries out shirtsleeve operation,
As recorded or exporting sub-line journey time-out, if the time has been more than the second given threshold of the sub-line journey, carries out alarm and carry
Show, failure caused by reduce time-out as far as possible, and then maintain the runnability of system.
For the ease of understanding the method that the above embodiment provides, disclosure embodiment provides a kind of IO prisons
The method of control, by IO threads to be illustrated for writing IO threads, in IO thread operational process is write, above-mentioned IO is properly termed as writing
IO, to be distinguished with the IO for performing read operation.
Each sub-line journey of above-mentioned IO threads can be shared with reading IO threads by writing IO threads, it can also be used respectively corresponding
Sub-line journey.The monitoring schematic diagram for writing IO threads shown in Figure 2, corresponding to each sub-line journey of above-mentioned IO threads, this reality
It applies and shows that writing IO threads includes writing I O process sub-line journey, log processing sub-line journey and write magnetic disk processing sub-line journey in mode, respectively
The queue of a sub-line journey is respectively to write IO queues, daily record IO queues, write disk I/O queue.
When receiving the writing data of the task or request, by data be converted into it is multiple write IO, each write IO and enter and write IO teams
In row.When IO queues are write in entrance, write IO and be coupled with a timestamp, which is to write I O process sub-line journey start to process
This writes the initial time of IO.It writes IO and is introduced into and write IO queues, write I O process sub-line journey and will write in IO queues and write IO according to advanced
The principle write-in daily record IO queues first gone out.
Similarly, enter daily record IO queues writing IO, be coupled with new timestamp and (entering time for writing and adding during IO queues
Stamp is eliminated at this time), that is, log processing sub-line journey handles the initial time for writing IO.Then log processing sub-line journey is by daily record
The IO that writes of IO queues writes disk I/O queue, be coupled with new timestamp (when entering daily record IO queues the timestamp that adds this
When be eliminated), that is, write magnetic disk processing sub-line journey handle the initial time for writing IO.Write magnetic disk handles sub-line journey to writing disk I/O
The IO that writes in queue performs disk write operation.
Because in each queue to write IO time-stamped when into enqueue, it is possible to regular check team
Each timestamp for writing IO in row if current time subtracts the difference of the timestamp not less than the first given threshold, illustrates this
IO time-out is write, then records sub-line journey time-out, that is, determines that the sub-line journey goes wrong.
In above method operational process, it whether overtime to above-mentioned sub-line journey can carry out loop cycle inspection or check in real time,
If loop cycle inspection, period size can be 1s, write I O process sub-line journey, log processing sub-line journey, the processing of write magnetic disk
Identical or different time threshold can be set separately in sub-line journey, according to current time and the difference of each initial time for writing IO
Value, monitor the processing of current sub-line journey write IO time it is whether overtime, and then determine whether the sub-line journey overtime.It, can if overtime
To record the identifier of the sub-line journey, the information such as at the time of overtime duration value and time-out occur subsequently are joined for staff
It examines.
This processing mode can provide more reasonably time threshold according to the corresponding normal handling duration of sub-line journey, use
In inspection, whether the sub-line journey is overtime, improves the reliability of inspection.
A kind of flow chart of the method for IO monitoring shown in Figure 3, continue by it is above-mentioned write IO threads for illustrate,
Include the following steps:
Step S302 receives the operation task for writing data.
After the operation task of data is write in reception, write IO threads and bring into operation, the data being first written into are converted into multiple write
IO can refer to the process that IO is write in each sub-line journey processing in above-mentioned schematic diagram shown in Fig. 2 and realize, be write writing IO entrance later
During IO queues, it can be that this writes the timestamp that IO stamps current time, the initial time for writing IO is handled as IO sub-line journeys are write.
And so on, the initial time that IO is write in other sub-line journey processing is similar.
The initial time of IO is write based on the processing of above-mentioned sub-line journey, this method focuses on to describe the monitoring process to writing IO, specifically
It is as follows:
Step S304 starts time-out check function.After the time-out check function starts, regular check can be triggered and write IO lines
Sub-line journey (such as writing I O process sub-line journey, log processing sub-line journey and write magnetic disk processing sub-line journey) in journey is with the presence or absence of time-out
Monitoring flow, in the monitoring flow, processing of the following step S306 to step S316 is performed both by for above-mentioned sub-line journey.
Step S306 obtains the initial time for writing IO of current sub-line journey.
Step S308 calculates the difference that current time subtracts initial time.
Step S310, judges whether the difference is more than the first given threshold of current sub-line journey.If so, perform step
S312;If not, terminate.
Step S312 records current sub-line journey time-out.The information of record can include the mark of the current sub-line journey and work as
The information such as preceding time.
Step S314, judges whether the difference is more than the second given threshold of current sub-line journey.If so, perform step
S316;If not, terminate.
Step S316, the current sub-line journey of alarm are seriously overtime.
Wherein, the second given threshold is more than the first given threshold.In present embodiment, each sub-line journey can be pre-set
Two given thresholds, for checking that the sub-line journey writes IO with the presence or absence of time-out, the second given threshold is used to examine the first given threshold
It looks into time-out and writes IO with the presence or absence of serious overtime phenomenon, to distinguish the degree of time-out, and then prompted accordingly.
On the basis of the above embodiment, the disclosure is applied to embodiment further provides the device that a kind of IO is monitored
Storage device, a kind of structure diagram of the device of IO as shown in Figure 4 monitoring, the device include:Monitoring module 10 and record
Module 20, the function of modules are as follows:
Monitoring module 10, in IO thread operational process, being monitored to the sub-line journey of IO threads;
Logging modle 20, for when the time for monitoring sub-line journey processing IO being not less than the first given threshold, determining should
Sub-line journey time-out.
Fig. 5 shows the structure diagram of the device of another IO monitoring, is further included on the basis of shown in Fig. 4:Record
Output module 30, for record sub-line journey time-out and/or, output sub-line journey time-out.
Above-mentioned monitoring module 10 is additionally operable to:Record the initial time of sub-line journey start to process IO;By the current time of monitoring
Handle the time of IO under current time as sub-line journey with the difference of initial time.
Above-mentioned monitoring module 10, is additionally operable to:Record the initial time of sub-line journey start to process IO;Record sub-line journey processing
The end time of complete IO;Using the difference of the end time and the initial time as the time of sub-line journey processing IO.
Fig. 6 shows the structure diagram of the device of another IO monitoring, is further included on the basis of shown in Fig. 4:Alarm
Module 40, if the time for sub-line journey processing IO is more than the second given threshold, the alarm sub-line journey is seriously overtime,
Wherein, the second given threshold is more than the first given threshold.
The device of IO monitoring that disclosure embodiment provides, the method for IO monitoring provided with the above embodiment have
Identical technical characteristic so can also solve the technical issues of identical, reaches identical technique effect.
Embodiment further provides the realization device that a kind of IO is monitored, the devices can be set to storage device for the disclosure,
A kind of structure diagram of the realization device of IO monitoring shown in Figure 7, the realization device of IO monitoring include processor 700
With machine readable storage medium 701, machine readable storage medium 701 is stored with the machine that can be performed by processor 700 and can hold
Row instruction, processor 700 perform machine-executable instruction to realize the above method.
The realization device of IO monitoring shown in Fig. 7 further includes bus 702 and communication interface 703, and processor 700, communication connect
Mouth 703 and machine readable storage medium 701 are connected by bus 802.
Wherein, machine readable storage medium 701 may include high-speed random access memory (RAM, Random Access
Memory), it is also possible to further include non-labile memory (non-volatile memory), a for example, at least disk is deposited
Reservoir.By at least one communication interface 703 (can be wired or wireless) realize the system network element with it is at least one other
Communication connection between network element can use internet, wide area network, local network, Metropolitan Area Network (MAN) etc..Bus 702 can be that ISA is total
Line, pci bus or eisa bus etc..Bus can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, figure
It is only represented in 7 with a four-headed arrow, it is not intended that an only bus or a type of bus.
Processor 700 may be a kind of IC chip, have the processing capacity of signal.It is above-mentioned during realization
Each step of method can be completed by the integrated logic circuit of the hardware in processor 700 or the instruction of software form.On
The processor 700 stated can be general processor, including central processing unit (Central Processing Unit, abbreviation
CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital
Signal Processing, abbreviation DSP), application-specific integrated circuit (Application Specific Integrated
Circuit, abbreviation ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or
Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.It can realize or perform sheet
Disclosed each method, step and logic diagram in disclosed embodiment.General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.The step of method with reference to disclosed in disclosure embodiment, can direct body
Now completion is performed for hardware decoding processor or perform completion with the hardware in decoding processor and software module combination.It is soft
Part module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically erasable programmable are deposited
In the storage medium of this fields such as reservoir, register maturation.The storage medium is located at machine readable storage medium 701, processor
Information in 700 read machine readable storage medium storing program for executing 701, with reference to its hardware complete aforementioned embodiments method the step of.
For the disclosure embodiment further provides a kind of machine readable storage medium, machine readable storage medium storage is organic
Device executable instruction, for machine-executable instruction when being called and being performed by processor, machine-executable instruction promotes processor real
The method of existing the above embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
With the specific work process of device, the corresponding process in preceding method embodiment can be referred to, details are not described herein.
In addition, in the description of disclosure embodiment unless specifically defined or limited otherwise, term " installation ", " phase
Even ", " connection " should be interpreted broadly, and may be fixed connection or may be dismantle connection, or integral connection;Can be
Mechanical connection or electrical connection;It can be directly connected, can also be indirectly connected by intermediary, can be two
Connection inside element.To those skilled in the art, the tool of above-mentioned term in the disclosure can be understood with concrete condition
Body meaning.
If above-mentioned function is realized in the form of SFU software functional unit and is independent product sale or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, the technical solution of the disclosure is substantially in other words
The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be
People's computer, server or network equipment etc.) perform all or part of step of each embodiment above method of the disclosure
Suddenly.And aforementioned storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), is deposited mobile hard disk at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic disc or CD.
Finally it should be noted that:The specific embodiment of embodiment of above, the only disclosure, to illustrate the disclosure
Technical solution, rather than its limitations, the protection domain of the disclosure are not limited thereto, although with reference to aforementioned embodiments to this public affairs
It opens and is described in detail, it should be understood by those skilled in the art that:Any one skilled in the art is in this public affairs
It opens in the technical scope of exposure, still can modify or can be thought easily to the technical solution recorded in aforementioned embodiments
Equivalent replacement is carried out to variation or to which part technical characteristic;And these modifications, variation or replacement, do not make corresponding
The essence of technical solution is detached from the spirit and scope of disclosure embodiment technical solution, should all cover the protection model in the disclosure
Within enclosing.Therefore, the protection domain of the disclosure should be subject to the protection scope in claims.
Claims (12)
1. a kind of method of IO monitoring, which is characterized in that applied to storage device, including:
In IO thread operational process, the sub-line journey of the IO threads is monitored;
When the time for monitoring the sub-line journey processing IO being not less than the first given threshold, the sub-line journey time-out is determined.
2. according to the method described in claim 1, it is characterized in that, it is described determine the sub-line journey time-out step after, institute
The method of stating further includes:
Record sub-line journey time-out and/or, export the sub-line journey time-out.
3. method according to claim 1 or 2, which is characterized in that the sub-line journey to the IO threads is monitored
The step of, including:
Record the initial time of IO described in the sub-line journey start to process;
The time of IO is handled under the current time using current time and the difference of the initial time as the sub-line journey.
4. method according to claim 1 or 2, which is characterized in that the sub-line journey to the IO threads is monitored
The step of, including:
Record the initial time of IO described in the sub-line journey start to process;
Record the end time that the sub-line journey has handled the IO;
Using the difference of the end time and the initial time as the time of the sub-line journey processing IO.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
If the time of the sub-line journey processing IO is not less than the second given threshold, sub-line journey described in alarm is seriously overtime,
Wherein, second given threshold is more than first given threshold.
6. a kind of device of IO monitoring, which is characterized in that applied to storage device, including:
Monitoring module, in IO thread operational process, being monitored to the sub-line journey of the IO threads;
Logging modle, for when the time for monitoring the sub-line journey processing IO being not less than the first given threshold, determining described
Sub-line journey time-out.
7. device according to claim 6, which is characterized in that described device further includes:
Record output module, for record sub-line journey time-out and/or, export the sub-line journey time-out.
8. the device described according to claim 6 or 7, which is characterized in that the monitoring module is additionally operable to:Record the sub-line
The initial time of IO described in journey start to process;Using current time and the difference of initial time as the sub-line journey described current
The time of IO is handled under time.
9. the device described according to claim 6 or 7, which is characterized in that the monitoring module is additionally operable to:
Record the initial time of IO described in the sub-line journey start to process;
Record the end time that the sub-line journey has handled the IO;
Using the difference of the end time and the initial time as the time of the sub-line journey processing IO.
10. device according to claim 6, which is characterized in that described device further includes:
Alarm module, if the time for sub-line journey processing IO is not less than the second given threshold, described in alarm
Sub-line journey is seriously overtime, wherein, second given threshold is more than first given threshold.
11. a kind of realization device of IO monitoring, which is characterized in that including processor and machine readable storage medium, the machine
Readable storage medium storing program for executing is stored with the machine-executable instruction that can be performed by the processor, and the processor performs the machine
Executable instruction is to realize method described in any one of claim 1 to 5.
12. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with machine and can perform finger
It enables, for the machine-executable instruction when being called and being performed by processor, the machine-executable instruction promotes the processor
Realize method described in any one of claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711388904.6A CN108228420A (en) | 2017-12-20 | 2017-12-20 | The method, apparatus of IO monitoring and the realization device of IO monitoring |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711388904.6A CN108228420A (en) | 2017-12-20 | 2017-12-20 | The method, apparatus of IO monitoring and the realization device of IO monitoring |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108228420A true CN108228420A (en) | 2018-06-29 |
Family
ID=62652564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711388904.6A Pending CN108228420A (en) | 2017-12-20 | 2017-12-20 | The method, apparatus of IO monitoring and the realization device of IO monitoring |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108228420A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109324945A (en) * | 2018-09-07 | 2019-02-12 | 郑州云海信息技术有限公司 | A kind of BMC reads RAID card temperature-time automatic obtaining method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004070458A (en) * | 2002-08-02 | 2004-03-04 | Yamatake Corp | Program with self-diagnostic function, program supervising device and method, and program with program supervising function |
US7398416B2 (en) * | 2005-02-02 | 2008-07-08 | Lsi Corporation | Proactive driver response to an operating system if a drive is removed from a RAID configuration |
CN104850460A (en) * | 2015-06-02 | 2015-08-19 | 上海斐讯数据通信技术有限公司 | Service program thread management method |
CN107239378A (en) * | 2016-03-29 | 2017-10-10 | 北京忆恒创源科技有限公司 | A kind of overtime monitoring method and system |
-
2017
- 2017-12-20 CN CN201711388904.6A patent/CN108228420A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004070458A (en) * | 2002-08-02 | 2004-03-04 | Yamatake Corp | Program with self-diagnostic function, program supervising device and method, and program with program supervising function |
US7398416B2 (en) * | 2005-02-02 | 2008-07-08 | Lsi Corporation | Proactive driver response to an operating system if a drive is removed from a RAID configuration |
CN104850460A (en) * | 2015-06-02 | 2015-08-19 | 上海斐讯数据通信技术有限公司 | Service program thread management method |
CN107239378A (en) * | 2016-03-29 | 2017-10-10 | 北京忆恒创源科技有限公司 | A kind of overtime monitoring method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109324945A (en) * | 2018-09-07 | 2019-02-12 | 郑州云海信息技术有限公司 | A kind of BMC reads RAID card temperature-time automatic obtaining method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6944796B2 (en) | Method and system to implement a system event log for system manageability | |
CN107992398A (en) | The monitoring method and monitoring system of a kind of operation system | |
CN105373899A (en) | Server asset management method and apparatus | |
CN109460343A (en) | System exception monitoring method, device, equipment and storage medium based on log | |
US10789148B2 (en) | Electronic device and method for event logging | |
CN109254922A (en) | A kind of automated testing method and device of server B MC Redfish function | |
CN106682162A (en) | Log management method and device | |
JP2007323193A (en) | System, method and program for detecting abnormality of performance load | |
US9916220B2 (en) | Smart logging of trace data for storage systems | |
US20140115112A1 (en) | Server system and message processing method thereof | |
US11093361B2 (en) | Bus monitoring system, method and apparatus | |
CN115098291A (en) | Method, system, storage medium and equipment for recording system restart reason | |
CN110543398A (en) | method and system for recording fault information | |
CN108228420A (en) | The method, apparatus of IO monitoring and the realization device of IO monitoring | |
CN113590405A (en) | Hard disk error detection method and device, storage medium and electronic device | |
CN108647124A (en) | A kind of method and its device of storage skip signal | |
CN116361111A (en) | Data acquisition method and device and electronic equipment | |
CN116627737A (en) | Hard disk testing method, device, equipment and medium | |
CN109542704A (en) | A kind of I/O request method for tracing, device and relevant device | |
CN115756309A (en) | Battery management equipment parameter storage method, battery management equipment and energy storage system | |
CN111984473B (en) | Memory snapshot data acquisition method and related device | |
CN107766216A (en) | It is a kind of to be used to obtain the method and apparatus using execution information | |
WO2019136914A1 (en) | Method for automatically recording field change, application server and computer-readable storage medium | |
CN111309403B (en) | Asynchronous dotting acquisition assembly for delay data of application layer | |
CN113722142B (en) | Method and device for analyzing reasons of insufficient memory, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180629 |