CN106547478A - The I/O throughput monitoring method of process and device - Google Patents
The I/O throughput monitoring method of process and device Download PDFInfo
- Publication number
- CN106547478A CN106547478A CN201510614361.XA CN201510614361A CN106547478A CN 106547478 A CN106547478 A CN 106547478A CN 201510614361 A CN201510614361 A CN 201510614361A CN 106547478 A CN106547478 A CN 106547478A
- Authority
- CN
- China
- Prior art keywords
- moment
- throughput
- destination service
- total
- pid
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses the I/O throughput monitoring method and device of a kind of process, are related to computer realm.Methods described includes:Obtain the process identification (PID) of each destination service;According to each process identification (PID), at predetermined time intervals, IO total throughouts are obtained in the IO instance documents of each process identification (PID) of correspondence from system kernel file;According to the corresponding IO total throughouts of current acquisition moment for corresponding to each destination service, and the IO total throughouts at the current at least one acquisition moment obtained before the moment, calculate the real-time I/O throughput of each destination service.The present invention can be monitored to the access situation of disk to each destination service, and it is possible to flexible monitoring objective service is to the reading of disk and writes respective access situation.
Description
Technical field
The present invention relates to computer realm, and in particular to a kind of I/O throughput monitoring method of process and dress
Put.
Background technology
IOPS (Input/Output Per Second, input and output amount per second), is to weigh disk performance
One of leading indicator.IOPS refers to the treatable I/O number of requests of system in the unit interval, typically with every
Second process I/O number of requests be unit, I/O request be usually read or write data operation request, IOPS
Can be understood as the handling capacity of IO.
At present, the I/O throughput of the entirety that the monitoring for IOPS is both for disk is monitored, its
All processes are included to the I/O throughput produced by the read-write operation of disk.Such as iostat orders are obtained
Disk I/O throughput, be just the I/O throughput of the disk, which cannot know concrete which service
I/O throughput situation, it is impossible to which destination service is monitored.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes the problems referred to above or at least part of to provide one kind
The I/O throughput supervising device of process that solves the above problems and corresponding process I/O throughput monitoring
Method.
According to one aspect of the present invention, there is provided a kind of I/O throughput monitoring method of process, including:
Obtain the process identification (PID) of each destination service;
According to each process identification (PID), at predetermined time intervals, each process identification (PID) of correspondence from system kernel file
IO total throughouts are obtained in IO instance documents;
According to the corresponding IO total throughouts of current acquisition moment for corresponding to each destination service, and currently
The IO total throughouts at least one acquisition moment before the moment are obtained, the reality of each destination service is calculated
When I/O throughput.
Preferably, it is described according to each process identification (PID), at predetermined time intervals, the correspondence from system kernel file
IO total throughouts are obtained in the IO instance documents of each process identification (PID), including:
At predetermined time intervals, each process mark of acquisition correspondence from system kernel file path/proc/ $ pid/io
Know corresponding IO instance documents;Wherein described pid is process identification (PID);
From the IO instance documents, the IO total throughouts at corresponding moment are extracted.
Preferably, the corresponding IO of current acquisition moment according to corresponding each destination service always handles up
Amount, and the IO total throughouts at the current at least one acquisition moment obtained before the moment, calculate each
The real-time I/O throughput of destination service, including:
For each destination service, moment corresponding IO total throughouts will be currently obtained, is deducted and is currently obtained
The IO total throughouts at the previous acquisition moment at moment are taken, is gulped down with the real-time IO for obtaining each destination service
The amount of telling.
Preferably, the corresponding IO of current acquisition moment according to corresponding each destination service always handles up
Amount, and the IO total throughouts at the current at least one acquisition moment obtained before the moment, calculate each
The real-time I/O throughput of destination service, including:
For each destination service, for each acquisition moment, will be corresponding at acquisition moment IO total
Handling capacity, deducts the IO total throughouts for obtaining the previous acquisition moment at moment, obtains an IO and gulp down
The amount of telling;
The moment is obtained for current, will be from the current acquisition moment, at least two the oneth nearest IO are gulped down
The amount of telling is weighted, to obtain the real-time I/O throughput of each destination service.
Preferably, the IO total throughouts at corresponding moment from the IO instance documents, are extracted, including:
Total IO is extracted from the syscr fields of the IO instance documents and reads number of times, and/or from the IO
Total IO is extracted in the syscw fields of instance document and writes number of times;
The IO is read number of times as IO total throughouts, or the IO is write number of times always to gulp down as IO
The amount of telling, or IO reading number of times is write into number of times sum as IO total throughouts with IO.
Preferably, in the corresponding IO total throughouts of current acquisition moment according to each destination service of correspondence,
And the IO total throughouts at the current at least one acquisition moment obtained before the moment, calculate each target
After the real-time I/O throughput of service, also include:
Each destination service is ranked up according to real-time I/O throughput size.
Preferably, in the corresponding IO total throughouts of current acquisition moment according to each destination service of correspondence,
And the IO total throughouts at the current at least one acquisition moment obtained before the moment, calculate each target
After the real-time I/O throughput of service, also include:
For the real-time I/O throughput of each destination service, judge whether the I/O throughput exceedes threshold value;
If the I/O throughput exceedes threshold value, remote alarm interface is called to report to the police the destination service.
According to another aspect of the present invention, the invention also discloses a kind of I/O throughput prison of process
Control device, including:
Process identification (PID) acquisition module, is suitable to obtain the process identification (PID) of each destination service;
IO total throughout acquisition modules, are suitable to according to each process identification (PID), at predetermined time intervals, from system
IO total throughouts are obtained in the IO instance documents of each process identification (PID) of correspondence in kernel file;
I/O throughput computing module, is suitable to the current acquisition moment according to each destination service of correspondence in real time
The IO at least one acquisition moment before corresponding IO total throughouts, and current acquisition moment is always gulped down
The amount of telling, calculates the real-time I/O throughput of each destination service.
Preferably, the IO total throughouts acquisition module, including:
IO instance document acquisition submodules, are suitable at predetermined time intervals, from system kernel file path
The corresponding IO instance documents of each process identification (PID) of correspondence are obtained in/proc/ $ pid/io;Wherein described pid be into
Journey is identified;
IO total throughout acquisition submodules, are suitable to from the IO instance documents, extract the corresponding moment
IO total throughouts.
Preferably, the real-time I/O throughput computing module, including:
First real-time I/O throughput calculating sub module, is suitable to, for each destination service, currently to obtain
Moment corresponding IO total throughouts, the IO for deducting the current previous acquisition moment for obtaining the moment are always handled up
Amount, to obtain the real-time I/O throughput of each destination service.
Preferably, the real-time I/O throughput computing module, including:
Independent I/O throughput calculating sub module, is suitable to for each destination service, when obtaining for each
Carve, by the acquisition moment corresponding IO total throughouts, when deducting the acquisition moment previous acquisition
The IO total throughouts at quarter, obtain the first I/O throughput;
Second real-time I/O throughput calculating sub module, is suitable to obtain the moment for current, will obtain from currently
Take and rise constantly, at least two first nearest I/O throughputs are weighted, to obtain each target
The real-time I/O throughput of service.
Preferably, the IO total throughouts acquisition submodule, including:
Number of times extraction module, is suitable to from the syscr fields of the IO instance documents extract total IO readings
Number of times, and/or extract total IO from the syscw fields of the IO instance documents and write number of times;
Handling capacity confirms module, is suitable to for the IO to read number of times as IO total throughouts, or will be described
IO writes number of times as IO total throughouts, or IO reading number of times is write number of times sum as IO with IO
Total throughout.
Preferably, after real-time I/O throughput computing module, also include:
Order module, is suitable to each destination service is ranked up according to real-time I/O throughput size.
Preferably, after real-time I/O throughput computing module, also include:
Alarm module, is suitable to the real-time I/O throughput for each destination service, judges that the IO handles up
Whether amount exceedes threshold value;If the I/O throughput exceedes threshold value, remote alarm interface is called to the mesh
Mark service is reported to the police.
The I/O throughput monitoring method of process of the invention and device, can obtain each destination service
Process identification (PID), according to each process identification (PID), at predetermined time intervals, each process of correspondence from system kernel file
IO total throughouts are obtained in the IO instance documents of mark, then according to the current of corresponding each destination service
Moment corresponding IO total throughouts are obtained, and the current at least one acquisition moment obtained before the moment
IO total throughouts, calculate the real-time I/O throughput of each destination service, such as service A, when
The front total I/O throughput for obtaining the moment is read for 10000 times, and total I/O throughput at previous acquisition moment is
9500 readings, then the current real-time I/O throughput for obtaining the moment of correspondence can be thought
10000-9500=500 time, thus solving first technology cannot be for specific certain destination service, nothing
Method monitors the problem of the real-time I/O throughput of the service, achieves and specific destination service can be supervised
Control its real-time I/O throughput, the convenient beneficial effect that management and control is subsequently carried out to the destination service.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the skill of the present invention
Art means, and being practiced according to the content of description, and in order to allow, the present invention's is above and other
Objects, features and advantages can become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred implementation, various other advantages and benefit are for this
Field those of ordinary skill will be clear from understanding.Accompanying drawing is only used for the purpose for illustrating preferred implementation,
And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals
Identical part.In the accompanying drawings:
Fig. 1 shows a kind of I/O throughput monitoring method of process according to an embodiment of the invention
Schematic flow sheet;
Fig. 2 shows a kind of I/O throughput monitoring method of process in accordance with another embodiment of the present invention
Schematic flow sheet;
Fig. 3 shows a kind of I/O throughput monitoring method of process in accordance with another embodiment of the present invention
Schematic flow sheet;
Fig. 4 shows a kind of I/O throughput monitoring method of process in accordance with another embodiment of the present invention
Schematic flow sheet;
Fig. 5 shows a kind of I/O throughput supervising device of process according to an embodiment of the invention
Structural representation;
Fig. 6 shows a kind of I/O throughput supervising device of process in accordance with another embodiment of the present invention
Structural representation;
Fig. 7 shows a kind of I/O throughput supervising device of process in accordance with another embodiment of the present invention
Structural representation;
Fig. 8 shows a kind of I/O throughput supervising device of process in accordance with another embodiment of the present invention
Structural representation.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing in accompanying drawing
The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and not
Should be limited by embodiments set forth here.On the contrary, there is provided these embodiments are able to more thoroughly
Understand the disclosure, and the scope of the present disclosure complete can be conveyed to those skilled in the art.
Embodiment one
With reference to Fig. 1, a kind of schematic flow sheet of the I/O throughput monitoring method of process is it illustrates, had
Body can include:
Step 110, obtains the process identification (PID) of each destination service.
For computer system, service is a process in itself.And the embodiment of the present invention is at one
Multiple services may be set in server, to process the request of different application, be provided for different business
Support, it can be understood as the server of the present invention is the server of a unit multiple entity, and each entity is
One service.
In embodiments of the present invention, the process mark of each destination service started in server can be obtained
Know, the process identification (PID) in actual applications is pid.
Step 120, according to each process identification (PID), at predetermined time intervals, from system kernel file, correspondence is each
IO total throughouts are obtained in the IO instance documents of process identification (PID).
In actual applications, the system such as Linux system is for the I/O throughput of disk, from process initiation when,
As time goes on, can be in the IO instance documents in its system kernel file always in the way of accumulative
Record the I/O throughput of the process read/write.Such as destination service A, its Startup time is 12:00:00,
A disk read operation or write operation are often performed so, its number of times can be accumulated to corresponding IO examples
In file.
Said system kernel file such as/proc file system, records each target in this document system
The IO instance documents of the I/O throughput relevant information of service./ proc file system is a kind of kernel and interior
Core module is for the mechanism to process (process) transmission information.The pseudo file system allows using can be with
Kernel internal data structure is interacted, and obtains the useful information about process, in operation (on the fly)
Change and (by changing kernel parameter) is set.It is different from alternative document system ,/proc be present in internal memory it
In rather than hard disk on./ proc does not have the equipment of carrying/proc by interior nuclear control.Because/proc is masters
Deposit by the status information of interior nuclear control, so the logical place of most of these information is located at kernel
The internal memory of control.
Certainly, in embodiments of the present invention, can be such as per second at predetermined time intervals, just from above-mentioned system
In system kernel file, according to the IO instance documents of the process identification (PID) of each destination service of correspondence.Certainly between being somebody's turn to do
Every the scheduled time can be set as other values, such as 2 seconds etc., the present invention was not any limitation as to which.
Certainly, the root in the embodiment of the present invention, before step 110 firstly the need of the system that gets
Authority, the root authority can access the random file system of system.Because system kernel file is for general
It is transparent for the user of logical authority, user cannot operate these files, so as to also cannot be from internal memory
These files are read, information is got.By taking Linux system as an example, su order acquisition systems can be adopted
Authority, such as
[beinan@localhost~] $ su
Password:
[root@localhost beinan]#pwd
/home/beinan
The false code represents that acquiescence is switched to root user, and the environment changed to root user.
Step 130, according to the corresponding IO total throughouts of current acquisition moment of each destination service of correspondence,
And the IO total throughouts at the current at least one acquisition moment obtained before the moment, calculate each target
The real-time I/O throughput of service.
It is appreciated that above-mentioned per second it can be understood that to obtain the moment.Such as from the IO of process of the invention
Handling capacity monitoring step is performed after starting, 10:00:00 first time obtained the IO realities of each process identification (PID)
IO total throughouts are obtained in example text part, 10:00:Obtain the IO realities of each process identification (PID) for 01 second second
IO total throughouts are obtained in example text part, 10:00:02 third time obtains the IO examples of each process identification (PID)
IO total throughouts etc. are obtained in file, then the above-mentioned moment that was located every 1 second as obtains the moment, should
The acquisition moment can be understood as monitoring the moment.
Certainly, IO total throughouts are obtained in getting the IO instance documents of each process identification (PID) for the first time, this
When step 130 also do not calculate the real-time I/O throughput of each destination service.When each from getting for the second time
After IO total throughouts are obtained in the IO instance documents of process identification (PID), step 130 can just calculate each mesh
The real-time I/O throughput of mark service.
For the monitoring of process, in order to ensure its real-time, the embodiment of the present invention is with newest one
Based on IO total throughouts in the IO instance documents of secondary acquisition, with reference to the last or nearest many
Secondary aforementioned IO total throughouts, calculate corresponding real-time IO total throughouts of current acquisition moment.In the present invention
In embodiment, IO total throughouts can be understood as destination service to the reading of disk and the total degree write, or
It can be appreciated that total degree of the destination service to the reading of disk, or it can be appreciated that destination service pair
The total degree write of disk.
In such as previous example, 10:00:Destination service A obtained when 00, its total degree read of record
For 100, and 10:00:01, the total degree for obtaining the reading of destination service A is 200.It is assumed that with current
Moment and the last acquisition moment are obtained to calculate object, then for 10:00:01, correspondence target clothes
The real-time reading number of times of business A is 200-100=100.Further, 10:00:02 obtains destination service A
The total degree of reading is 400, then the real-time reading number of times of corresponding destination service A is 400-200=200 time.
Assume currently to obtain moment and multiple before which, then can sequentially latter total I/O throughput
Subtract previous total I/O throughput, obtain multiple values, be then based on these values calculate averages as it is current when
The real-time I/O throughput carved.Than it has been observed that 10:00:01 total I/O throughput deducts 10:00:00 it is total
I/O throughput, obtains 100;10:00:02 total I/O throughput deducts 10:00:01 total I/O throughput,
Obtain 200, then 10:00:02 corresponding real-time I/O throughput is (100+200)/2=150 time.
Thus solving first technology cannot be for specific certain destination service, it is impossible to monitor the service
The problem of I/O throughput, achieves and specific destination service can be monitored its real-time IO and be handled up in real time
Amount, the convenient beneficial effect that management and control is subsequently carried out to the destination service.
In embodiments of the present invention, technical staff is found that system kernel file can be recorded in the form of accumulative
All processes are accessing the access times of disk process, then the embodiment of the present invention then can first find target
The process identification (PID) of service, then goes each process identification (PID) of correspondence is searched in system kernel file with process identification (PID)
IO instance documents, therefrom to obtain IO total throughouts, and then always handle up above-mentioned IO is got every time
After amount, the real-time I/O throughput of each destination service with reference to previous record, can be calculated.So as to
Each destination service can be monitored to the access situation of disk, it is to avoid can only be with first technology
Disk is the problem of total access situation that main body monitors outer bound pair disk.
Embodiment two
With reference to Fig. 2, a kind of schematic flow sheet of the I/O throughput monitoring method of process is it illustrates, had
Body can include:
Step 210, obtains the process identification (PID) of each destination service;
The process mark of destination service can be obtained in embodiments of the present invention by proc/ $ pid/cmdline
Know.The present invention can be traveled through in proc file system, and root is in the file of proc/ $ pid/cmdline
The process relevant information of record, wherein pid are process identification (PID), are remembered in proc/ $ pid/cmdline files
Recorded the relevant information of the process of the pid, than such as whether be subprocess, if subprocess, Qi Fujin
The process relevant informations such as the process identification (PID) of journey, the corresponding process handles of the pid.Then by entering for getting
Journey information is compared with destination service, you can confirm the process identification (PID) pid of destination service process.
Step 220, at predetermined time intervals, obtains correspondence from system kernel file path/proc/ $ pid/io
The corresponding IO instance documents of each process identification (PID);Wherein described pid is process identification (PID).
In embodiments of the present invention, system kernel file, i.e., according to its root in/proc file system
/ proc/ $ pid/io can have access to the IO instance documents for recording each destination service.Such as destination service
Pid is 719116688, then the path of its IO instance document is /proc/ $ 19573/io.
Certainly, in actual applications, also systematic root before/proc, such as Linux system,
Its complete path can be " root/proc/ $ 19573/io ", and the concrete form of root is according to system feelings
Depending on condition.So 19573 IO can be read under " root/proc/ $ 19573/io " path
Instance document.
Step 230, from the IO instance documents, extracts the IO total throughouts at corresponding moment.
In embodiments of the present invention, in the IO instance documents of system kernel file, it is that magnetic is accessed to process
The number of times of disk is added up, and what is obtained is the IO total throughouts that each destination service obtains the moment at which.
Preferably, the IO total throughouts at corresponding moment from the IO instance documents, are extracted, including:
Sub-step 231, extracts total IO from the syscr fields of the IO instance documents and reads number of times. and/
Or extract total IO from the syscw fields of the IO instance documents and write number of times;
Sub-step 232, the IO is read number of times and writes secondary as IO total throughouts, or by the IO
Count as IO total throughouts, or IO reading number of times is write into number of times sum with IO and always handle up as IO
Amount.
In actual applications, the corresponding instance documents of/proc/19573/io, its content are as follows:
rchar:867994155
wchar:2352795453
syscr:243617
syscw:1299355
read_bytes:171048960
write_bytes:2199875584
cancelled_write_bytes:51793920
Wherein, rchar is the total bytes read from disk, and the length parameter in read or pread is total
With which is that the middle statistics of pagecache (page cache) is come, and does not represent the reading of actual disk;wchar
Be to disk write total bytes, the length parameter summation in write or pwrite;Syscr is right
The total degree of the reading of disk;Syscr is the total degree write to disk;Read_bytes is for actual from disk
The total amount of byte of middle reading;Write_bytes is to actual write to the total amount of byte in disk;
Cancelled_write_bytes is the write for causing to occur without generation due to blocking pagecache
Byte number.
So the present invention by the reading to disk and/or can be writing for its IO to count IO total throughouts
Total throughout.Such as above-mentioned example, then can extract total from the syscr fields from the IO instance documents
IO read number of times 243617, and/or extract total IO from the syscw fields of the IO instance documents
Write number of times 1299355.So can be handled up using 1299355+243617 as total IO of correspondence destination service
Amount, it is also possible to by 243617 separately as the I/O throughput for corresponding to destination service, it is also possible to by 1299355
Separately as the I/O throughput of correspondence destination service.Make the present invention can be with more flexible monitoring objective service
Reading and the number of times write to disk.
Step 240, for each destination service, will currently obtain moment corresponding IO total throughouts,
The IO total throughouts at the current previous acquisition moment for obtaining the moment are deducted, to obtain each destination service
Real-time I/O throughput.
Such as aforementioned 19573 IO instance documents, which is 10:00:What 00 moment obtained, Cong Zhongti
Syscr is taken:243617, syscw:1299355.And 10:00:01 moment obtain again this 19573
Previous examples file, be therefrom extracted syscr:243700, syscw:1299800.So correspond to
10:00:At 01 moment, the real-time reading number of times of 19573 destination service is (243700-243617)=83,
The number of times write in real time is (1299800-1299355)=445, and the number of times read in real time+write is 528.
Certainly, if in embodiments of the present invention the scheduled time at interval be more than 1 second, can will be above-mentioned
Subtract each other the result for obtaining divided by the scheduled time, obtain real-time I/O throughput per second.
In embodiments of the present invention, technical staff is found that system kernel file can be recorded in the form of accumulative
All processes are accessing the access times of disk process, then the embodiment of the present invention then can first find target
The process identification (PID) of service, then goes each process identification (PID) of correspondence is searched in system kernel file with process identification (PID)
IO instance documents, therefrom to obtain IO total throughouts, and then always handle up above-mentioned IO is got every time
After amount, the real-time I/O throughput of each destination service with reference to previous record, can be calculated.So as to
Each destination service can be monitored to the access situation of disk, and it is possible to flexibly monitor mesh
Mark services the reading to disk and writes respective access situation.
Embodiment three
With reference to Fig. 3, a kind of schematic flow sheet of the I/O throughput monitoring method of process is it illustrates, had
Body can include:
Step 310, obtains the process identification (PID) of each destination service;
Step 320, at predetermined time intervals, obtains correspondence from system kernel file path/proc/ $ pid/io
The corresponding IO instance documents of each process identification (PID);Wherein described pid is process identification (PID).
Step 330, from the IO instance documents, extracts the IO total throughouts at corresponding moment.
Step 340, for each destination service, for each acquisition moment, by the acquisition moment pair
The IO total throughouts answered, deduct the IO total throughouts for obtaining the previous acquisition moment at moment, obtain
First I/O throughput;
Step 350, obtains the moment for current, will from it is current obtain the moment, nearest at least two
First I/O throughput is weighted, to obtain the real-time I/O throughput of each destination service.
Such as aforementioned 19573 IO instance documents, which is 10:00:What 00 moment obtained, Cong Zhongti
Syscr is taken:243617, syscw:1299355.And 10:00:01 moment obtain again this 19573
Previous examples file, be therefrom extracted syscr:243700, syscw:1299800.And 10:00:02
Moment obtains the 19573 previous examples file again, is therefrom extracted syscr:243800, syscw:
1299900。
So by 10:00:01 moment deducted 10:00:00 data have:The reading time of 19573 destination service
Number is (243700-243617)=83, and the number of times write is (1299800-1299355)=445, reads+writes
Number of times be 528.
So by 10:00:02 moment deducted 10:00:01 data have:The reading time of 19573 destination service
Number is (243800-243700)=100, and it is (1299900-1299800)=100 to write number of times, reads+writes
Number of times be 200.
So the moment 10 is obtained for current:00:02, can be (100+83)/2 for number of times is read in real time,
It can be (100+445)/2 to write number of times in real time, and the number of times read in real time+write is (200+528)/2.
Certainly, from it is current obtain the moment more close to record, its weight could be arranged to higher.Such as by
10:00:02 moment deducted 10:00:01 data weighting is set to 0.7, by 10:00:01 moment deducted
10:00:The weight of 00 data is set to 0.3, then as a example by the number of times read by real time+write, which is
200*0.7+528*0.3。
Certainly, if in embodiments of the present invention the scheduled time at interval be more than 1 second, can will be above-mentioned
Subtract each other the result for obtaining divided by the scheduled time, obtain real-time I/O throughput per second.
In embodiments of the present invention, technical staff is found that system kernel file can be recorded in the form of accumulative
All processes are accessing the access times of disk process, then the embodiment of the present invention then can first find target
The process identification (PID) of service, then goes each process identification (PID) of correspondence is searched in system kernel file with process identification (PID)
IO instance documents, therefrom to obtain IO total throughouts, and then always handle up above-mentioned IO is got every time
After amount, the real-time I/O throughput of each destination service with reference to previous record, can be calculated.So as to
Each destination service can be monitored to the access situation of disk, and it is possible to flexibly monitor mesh
Mark services the reading to disk and writes respective access situation, furthermore it is possible to pass through multiple record, smooths
The data of the real-time I/O throughput at current time so as to which abnormity is lower.
Example IV
With reference to Fig. 4, a kind of schematic flow sheet of the I/O throughput monitoring method of process is it illustrates, had
Body can include:
Step 410, obtains the process identification (PID) of each destination service.
Step 420, according to each process identification (PID), at predetermined time intervals, from system kernel file, correspondence is each
IO total throughouts are obtained in the IO instance documents of process identification (PID).
Step 430, according to the corresponding IO total throughouts of current acquisition moment of each destination service of correspondence,
And the IO total throughouts at the current at least one acquisition moment obtained before the moment, calculate each target
The real-time I/O throughput of service.
Step 440, each destination service is ranked up according to real-time I/O throughput size.
In embodiments of the present invention, for each destination service, at the same acquisition moment, can be by which
It is ranked up according to its real-time I/O throughput size, such that it is able to easily judge which may surpass
Threshold value is crossed, and which does not have.
Step 450, for the real-time I/O throughput of each destination service, judges that the I/O throughput is
It is no more than threshold value;If the I/O throughput exceedes threshold value, remote alarm interface is called to take the target
Business is reported to the police.
In embodiments of the present invention, after being monitored for the magnetic disc access times of destination service, for side
Just technical staff processes the service that may affect server performance in time, then can pre-set one for real
When I/O throughput threshold value, an and preset remote alarm interface, the remote alarm interface can be to technical staff
Warning information is sent, such as alarm mail is sent to technical staff's mailbox, send to the mobile phone of technical staff
Note etc..At each acquisition moment, by the real-time I/O throughput of each destination service for obtaining and the threshold
Value is compared, if it does, this illustrates that the destination service is likely to occur problem, occupies too many resource,
Needs are reported to the police, and the warning message can include that the history to disk of the target process accesses data,
And the present invention obtain each obtain the moment real-time I/O throughput.
Certainly, while reporting to the police, also continue to monitoring.
If without departing from threshold value, do not reported to the police, continue monitoring.
Certainly, in the embodiment of the present invention, for the real-time I/O throughput of each destination service, judge institute
State after whether I/O throughput exceed threshold value, destination service can also be temporarily reduced to treating capacity for asking etc.
Operation.The present invention is not any limitation as to which.
In embodiments of the present invention, technical staff is found that system kernel file can be recorded in the form of accumulative
All processes are accessing the access times of disk process, then the embodiment of the present invention then can first find target
The process identification (PID) of service, then goes each process identification (PID) of correspondence is searched in system kernel file with process identification (PID)
IO instance documents, therefrom to obtain IO total throughouts, and then always handle up above-mentioned IO is got every time
After amount, the real-time I/O throughput of each destination service with reference to previous record, can be calculated.So as to
Each destination service can be monitored to the access situation of disk, and it is possible to flexibly monitor mesh
Mark services the reading to disk and writes respective access situation;Furthermore it is possible to pass through multiple record, smooth
The data of the real-time I/O throughput at current time so as to which abnormity is lower;Furthermore, can be by real-time IO
Handling capacity exceedes the destination service of threshold value, generates warning message to which and informs technical staff, makes technical staff
Can know that concrete which destination service takes IO in time especially many, such that it is able to targetedly go into
Row is processed.
Embodiment five
With reference to Fig. 5, a kind of structural representation of the I/O throughput supervising device of process is it illustrates, had
Body can include:
Process identification (PID) acquisition module 510, is suitable to obtain the process identification (PID) of each destination service;
IO total throughouts acquisition module 520, is suitable to according to each process identification (PID), at predetermined time intervals, from being
IO total throughouts are obtained in the IO instance documents of each process identification (PID) of correspondence in system kernel file;
I/O throughput computing module 530, is suitable to the current acquisition according to each destination service of correspondence in real time
Moment corresponding IO total throughouts, and the IO at the current at least one acquisition moment obtained before the moment
Total throughout, calculates the real-time I/O throughput of each destination service.
In embodiments of the present invention, technical staff is found that system kernel file can be recorded in the form of accumulative
All processes are accessing the access times of disk process, then the embodiment of the present invention then can first find target
The process identification (PID) of service, then goes each process identification (PID) of correspondence is searched in system kernel file with process identification (PID)
IO instance documents, therefrom to obtain IO total throughouts, and then always handle up above-mentioned IO is got every time
After amount, the real-time I/O throughput of each destination service with reference to previous record, can be calculated.So as to
Each destination service can be monitored to the access situation of disk, it is to avoid can only be with first technology
Disk is the problem of total access situation that main body monitors outer bound pair disk.
Embodiment six
With reference to Fig. 6, a kind of structural representation of the I/O throughput supervising device of process is it illustrates, had
Body can include:
Process identification (PID) acquisition module 610, is suitable to obtain the process identification (PID) of each destination service;
IO total throughouts acquisition module 620, is suitable to according to each process identification (PID), at predetermined time intervals, from being
IO total throughouts are obtained in the IO instance documents of each process identification (PID) of correspondence in system kernel file, is specifically included:
IO instance documents acquisition submodule 621, is suitable at predetermined time intervals, from system kernel file
The corresponding IO instance documents of each process identification (PID) of correspondence are obtained in path/proc/ $ pid/io;Wherein described pid
For process identification (PID).
IO total throughouts acquisition submodule 622, is suitable to from the IO instance documents, extracts corresponding
The IO total throughouts at moment.
I/O throughput computing module 630, is suitable to the current acquisition according to each destination service of correspondence in real time
Moment corresponding IO total throughouts, and the IO at the current at least one acquisition moment obtained before the moment
Total throughout, calculates the real-time I/O throughput of each destination service, specifically includes:
First real-time I/O throughput calculating sub module 631, is suitable to for each destination service, will be current
Moment corresponding IO total throughouts are obtained, the IO for deducting the current previous acquisition moment for obtaining the moment is total
Handling capacity, to obtain the real-time I/O throughput of each destination service.
Preferably, the IO total throughouts acquisition submodule, including:
Number of times extraction module, is suitable to from the syscr fields of the IO instance documents extract total IO readings
Number of times, and/or extract total IO from the syscw fields of the IO instance documents and write number of times;
Handling capacity confirms module, is suitable to for the IO to read number of times as IO total throughouts, or will be described
IO writes number of times as IO total throughouts, or IO reading number of times is write number of times sum as IO with IO
Total throughout.
In embodiments of the present invention, technical staff is found that system kernel file can be recorded in the form of accumulative
All processes are accessing the access times of disk process, then the embodiment of the present invention then can first find target
The process identification (PID) of service, then goes each process identification (PID) of correspondence is searched in system kernel file with process identification (PID)
IO instance documents, therefrom to obtain IO total throughouts, and then always handle up above-mentioned IO is got every time
After amount, the real-time I/O throughput of each destination service with reference to previous record, can be calculated.So as to
Each destination service can be monitored to the access situation of disk, and it is possible to flexibly monitor mesh
Mark services the reading to disk and writes respective access situation.
Embodiment seven
With reference to Fig. 7, a kind of structural representation of the I/O throughput supervising device of process is it illustrates, had
Body can include:
Process identification (PID) acquisition module 710, is suitable to obtain the process identification (PID) of each destination service;
IO total throughouts acquisition module 720, is suitable to according to each process identification (PID), at predetermined time intervals, from being
IO total throughouts are obtained in the IO instance documents of each process identification (PID) of correspondence in system kernel file, is specifically included:
IO instance documents acquisition submodule 721, is suitable at predetermined time intervals, from system kernel file
The corresponding IO instance documents of each process identification (PID) of correspondence are obtained in path/proc/ $ pid/io;Wherein described pid
For process identification (PID).
IO total throughouts acquisition submodule 722, is suitable to from the IO instance documents, extracts corresponding
The IO total throughouts at moment.
I/O throughput computing module 730, is suitable to the current acquisition according to each destination service of correspondence in real time
Moment corresponding IO total throughouts, and the IO at the current at least one acquisition moment obtained before the moment
Total throughout, calculates the real-time I/O throughput of each destination service, specifically includes:
Independent I/O throughput calculating sub module 731, is suitable to for each destination service, for each
The moment is obtained, by corresponding at acquisition moment IO total throughouts, the acquisition moment is deducted previous
The IO total throughouts at moment are obtained, the first I/O throughput is obtained;
Second real-time I/O throughput calculating sub module 732, is suitable to obtain the moment for current, will be from
From the current acquisition moment, at least two first nearest I/O throughputs are weighted, each to obtain
The real-time I/O throughput of individual destination service.
In embodiments of the present invention, technical staff is found that system kernel file can be recorded in the form of accumulative
All processes are accessing the access times of disk process, then the embodiment of the present invention then can first find target
The process identification (PID) of service, then goes each process identification (PID) of correspondence is searched in system kernel file with process identification (PID)
IO instance documents, therefrom to obtain IO total throughouts, and then always handle up above-mentioned IO is got every time
After amount, the real-time I/O throughput of each destination service with reference to previous record, can be calculated.So as to
Each destination service can be monitored to the access situation of disk, and it is possible to flexibly monitor mesh
Mark services the reading to disk and writes respective access situation, furthermore it is possible to pass through multiple record, smooths
The data of the real-time I/O throughput at current time so as to which abnormity is lower.
Embodiment eight
With reference to Fig. 8, a kind of structural representation of the I/O throughput supervising device of process is it illustrates, had
Body can include:
Process identification (PID) acquisition module 810, is suitable to obtain the process identification (PID) of each destination service;
IO total throughouts acquisition module 820, is suitable to according to each process identification (PID), at predetermined time intervals, from being
IO total throughouts are obtained in the IO instance documents of each process identification (PID) of correspondence in system kernel file;
I/O throughput computing module 830, is suitable to the current acquisition according to each destination service of correspondence in real time
Moment corresponding IO total throughouts, and the IO at the current at least one acquisition moment obtained before the moment
Total throughout, calculates the real-time I/O throughput of each destination service.
Order module 840, is suitable to each destination service is ranked up according to real-time I/O throughput size.
Alarm module 850, is suitable to the real-time I/O throughput for each destination service, judges the IO
Whether handling capacity exceedes threshold value;If the I/O throughput exceedes threshold value, remote alarm interface is called to institute
State destination service to be reported to the police.
In embodiments of the present invention, technical staff is found that system kernel file can be recorded in the form of accumulative
All processes are accessing the access times of disk process, then the embodiment of the present invention then can first find target
The process identification (PID) of service, then goes each process identification (PID) of correspondence is searched in system kernel file with process identification (PID)
IO instance documents, therefrom to obtain IO total throughouts, and then always handle up above-mentioned IO is got every time
After amount, the real-time I/O throughput of each destination service with reference to previous record, can be calculated.So as to
Each destination service can be monitored to the access situation of disk, and it is possible to flexibly monitor mesh
Mark services the reading to disk and writes respective access situation;Furthermore it is possible to pass through multiple record, smooth
The data of the real-time I/O throughput at current time so as to which abnormity is lower;Furthermore, can be by real-time IO
Handling capacity exceedes the destination service of threshold value, generates warning message to which and informs technical staff, makes technical staff
Can know that concrete which destination service takes IO in time especially many, such that it is able to targetedly go into
Row is processed.
Algorithm and display are solid with any certain computer, virtual system or miscellaneous equipment provided herein
There is correlation.Various general-purpose systems can also be used together based on teaching in this.As described above,
It is obvious to construct the structure required by this kind of system.Additionally, the present invention be also not for it is any specific
Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein,
And the description done to language-specific above is for the preferred forms for disclosing the present invention.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case where not having these details.In some instances, not
Known method, structure and technology are shown specifically, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect
Or it is multiple, above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is sometimes
It is grouped together in single embodiment, figure or descriptions thereof.However, should not be by the disclosure
Method be construed to reflect following intention:I.e. the present invention for required protection requires ratio in each claim
The more features of middle feature be expressly recited.More precisely, as the following claims reflect
As, inventive aspect is less than all features of single embodiment disclosed above.Therefore, it then follows
Thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right
Separate embodiments of the requirement all as the present invention itself.
Those skilled in the art are appreciated that can be carried out to the module in the equipment in embodiment certainly
Adaptively change and they are arranged in one or more different from embodiment equipment.Can be with
Module or unit or component in embodiment is combined into a module or unit or component, and in addition may be used
To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some in unit is excluded each other, (companion can be included to this specification using any combinations
With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or
All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification (includes companion
With claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or phase
Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include which
Some included features rather than further feature in its embodiment, but the group of the feature of different embodiments
Conjunction means to be within the scope of the present invention and formed different embodiments.For example, in following power
In sharp claim, embodiment required for protection one of arbitrarily can in any combination mode making
With.
The present invention all parts embodiment can be realized with hardware, or with one or more process
The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should
Understand, basis can be realized using microprocessor or digital signal processor (DSP) in practice
The embodiment of the present inventionThe I/O throughput monitoring of processSome or all parts in equipment some or
Person's repertoire.The present invention be also implemented as perform method as described herein a part or
Whole equipment or program of device (for example, computer program and computer program).It is such
Realize that the program of the present invention can be stored on a computer-readable medium, or can be with one or many
The form of individual signal.Such signal can be downloaded from internet website and be obtained, or in carrier signal
Upper offer, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention,
And those skilled in the art can design replacement without departing from the scope of the appended claims
Embodiment.In the claims, any reference markss between bracket should not be configured to right
The restriction of requirement.Word "comprising" does not exclude the presence of element not listed in the claims or step.Position
Word "a" or "an" before element does not exclude the presence of multiple such elements.The present invention can
Realize with by means of the hardware for including some different elements and by means of properly programmed computer.
If in the unit claim for listing equipment for drying, several in these devices can be by same
Individual hardware branch is embodying.The use of word first, second, and third does not indicate that any order.
These words can be construed to title.
The invention discloses the I/O throughput monitoring method of A1, a kind of process, including:
Obtain the process identification (PID) of each destination service;
According to each process identification (PID), at predetermined time intervals, each process identification (PID) of correspondence from system kernel file
IO total throughouts are obtained in IO instance documents;
According to the corresponding IO total throughouts of current acquisition moment for corresponding to each destination service, and currently
The IO total throughouts at least one acquisition moment before the moment are obtained, the reality of each destination service is calculated
When I/O throughput.
A2, the method according to A1, it is described according to each process identification (PID), at predetermined time intervals, from being
IO total throughouts are obtained in the IO instance documents of each process identification (PID) of correspondence in system kernel file, including:
At predetermined time intervals, each process mark of acquisition correspondence from system kernel file path/proc/ $ pid/io
Know corresponding IO instance documents;Wherein described pid is process identification (PID);
From the IO instance documents, the IO total throughouts at corresponding moment are extracted.
A3, the method according to A1 or A2, currently the obtaining according to each destination service of correspondence
Moment corresponding IO total throughouts are taken, and the current at least one acquisition moment obtained before the moment
IO total throughouts, calculate the real-time I/O throughput of each destination service, including:
For each destination service, moment corresponding IO total throughouts will be currently obtained, is deducted and is currently obtained
The IO total throughouts at the previous acquisition moment at moment are taken, is gulped down with the real-time IO for obtaining each destination service
The amount of telling.
A4, the method according to A1 or A2, currently the obtaining according to each destination service of correspondence
Moment corresponding IO total throughouts are taken, and the current at least one acquisition moment obtained before the moment
IO total throughouts, calculate the real-time I/O throughput of each destination service, including:
For each destination service, for each acquisition moment, will be corresponding at acquisition moment IO total
Handling capacity, deducts the IO total throughouts for obtaining the previous acquisition moment at moment, obtains an IO and gulp down
The amount of telling;
The moment is obtained for current, will be from the current acquisition moment, at least two the oneth nearest IO are gulped down
The amount of telling is weighted, to obtain the real-time I/O throughput of each destination service.
A5, the method according to A2, from the IO instance documents, extract the IO at corresponding moment
Total throughout, including:
Total IO is extracted from the syscr fields of the IO instance documents and reads number of times, and/or from the IO
Total IO is extracted in the syscw fields of instance document and writes number of times;
The IO is read number of times as IO total throughouts, or the IO is write number of times always to gulp down as IO
The amount of telling, or IO reading number of times is write into number of times sum as IO total throughouts with IO.
A6, the method according to A1, at the current acquisition moment pair according to each destination service of correspondence
The IO at least one acquisition moment before the IO total throughouts answered, and current acquisition moment always handles up
Amount, after calculating the real-time I/O throughput of each destination service, also includes:
Each destination service is ranked up according to real-time I/O throughput size.
A7, the method according to A1, at the current acquisition moment pair according to each destination service of correspondence
The IO at least one acquisition moment before the IO total throughouts answered, and current acquisition moment always handles up
Amount, after calculating the real-time I/O throughput of each destination service, also includes:
For the real-time I/O throughput of each destination service, judge whether the I/O throughput exceedes threshold value;
If the I/O throughput exceedes threshold value, remote alarm interface is called to report to the police the destination service.
The invention also discloses the I/O throughput supervising device of B8, a kind of process, including:
Process identification (PID) acquisition module, is suitable to obtain the process identification (PID) of each destination service;
IO total throughout acquisition modules, are suitable to according to each process identification (PID), at predetermined time intervals, from system
IO total throughouts are obtained in the IO instance documents of each process identification (PID) of correspondence in kernel file;
I/O throughput computing module, is suitable to the current acquisition moment according to each destination service of correspondence in real time
The IO at least one acquisition moment before corresponding IO total throughouts, and current acquisition moment is always gulped down
The amount of telling, calculates the real-time I/O throughput of each destination service.
B9, the device according to B8, the IO total throughouts acquisition module, including:
IO instance document acquisition submodules, are suitable at predetermined time intervals, from system kernel file path
The corresponding IO instance documents of each process identification (PID) of correspondence are obtained in/proc/ $ pid/io;Wherein described pid be into
Journey is identified;
IO total throughout acquisition submodules, are suitable to from the IO instance documents, extract the corresponding moment
IO total throughouts.
B10, the device according to B8 or B9, the real-time I/O throughput computing module, including:
First real-time I/O throughput calculating sub module, is suitable to, for each destination service, currently to obtain
Moment corresponding IO total throughouts, the IO for deducting the current previous acquisition moment for obtaining the moment are always handled up
Amount, to obtain the real-time I/O throughput of each destination service.
B11, the device according to B8 or B9, the real-time I/O throughput computing module, including:
Independent I/O throughput calculating sub module, is suitable to for each destination service, when obtaining for each
Carve, by the acquisition moment corresponding IO total throughouts, when deducting the acquisition moment previous acquisition
The IO total throughouts at quarter, obtain the first I/O throughput;
Second real-time I/O throughput calculating sub module, is suitable to obtain the moment for current, will obtain from currently
Take and rise constantly, at least two first nearest I/O throughputs are weighted, to obtain each target
The real-time I/O throughput of service.
B12, the device according to B9, the IO total throughouts acquisition submodule, including:
Number of times extraction module, is suitable to from the syscr fields of the IO instance documents extract total IO readings
Number of times, and/or extract total IO from the syscw fields of the IO instance documents and write number of times;
Handling capacity confirms module, is suitable to for the IO to read number of times as IO total throughouts, or will be described
IO writes number of times as IO total throughouts, or IO reading number of times is write number of times sum as IO with IO
Total throughout.
B13, the device according to B8, after real-time I/O throughput computing module, also include:
Order module, is suitable to each destination service is ranked up according to real-time I/O throughput size.
B14, the device according to B8, after real-time I/O throughput computing module, also include:
Alarm module, is suitable to the real-time I/O throughput for each destination service, judges that the IO handles up
Whether amount exceedes threshold value;If the I/O throughput exceedes threshold value, remote alarm interface is called to the mesh
Mark service is reported to the police.
Claims (10)
1. the I/O throughput monitoring method of a kind of process, including:
Obtain the process identification (PID) of each destination service;
According to each process identification (PID), at predetermined time intervals, each process identification (PID) of correspondence from system kernel file
IO total throughouts are obtained in IO instance documents;
According to the corresponding IO total throughouts of current acquisition moment for corresponding to each destination service, and currently
The IO total throughouts at least one acquisition moment before the moment are obtained, the reality of each destination service is calculated
When I/O throughput.
2. method according to claim 1, it is characterised in that described according to each process identification (PID),
At predetermined time intervals, IO is obtained in the IO instance documents of each process identification (PID) of correspondence from system kernel file
Total throughout, including:
At predetermined time intervals, each process mark of acquisition correspondence from system kernel file path/proc/ $ pid/io
Know corresponding IO instance documents;Wherein described pid is process identification (PID);
From the IO instance documents, the IO total throughouts at corresponding moment are extracted.
3. method according to claim 1 and 2, it is characterised in that it is described according to correspondence each
Before the corresponding IO total throughouts of current acquisition moment of destination service, and current acquisition moment extremely
The IO total throughouts at a few acquisition moment, calculate the real-time I/O throughput of each destination service, including:
For each destination service, moment corresponding IO total throughouts will be currently obtained, is deducted and is currently obtained
The IO total throughouts at the previous acquisition moment at moment are taken, is gulped down with the real-time IO for obtaining each destination service
The amount of telling.
4. method according to claim 1 and 2, the working as according to each destination service of correspondence
It is front to obtain moment corresponding IO total throughouts, and when currently obtaining at least one acquisition before the moment
The IO total throughouts at quarter, calculate the real-time I/O throughput of each destination service, including:
For each destination service, for each acquisition moment, will be corresponding at acquisition moment IO total
Handling capacity, deducts the IO total throughouts for obtaining the previous acquisition moment at moment, obtains an IO and gulp down
The amount of telling;
The moment is obtained for current, will be from the current acquisition moment, at least two the oneth nearest IO are gulped down
The amount of telling is weighted, to obtain the real-time I/O throughput of each destination service.
5. method according to claim 2, it is characterised in that from the IO instance documents,
The IO total throughouts at corresponding moment are extracted, including:
Total IO is extracted from the syscr fields of the IO instance documents and reads number of times, and/or from the IO
Total IO is extracted in the syscw fields of instance document and writes number of times;
The IO is read number of times as IO total throughouts, or the IO is write number of times always to gulp down as IO
The amount of telling, or IO reading number of times is write into number of times sum as IO total throughouts with IO.
6. method according to claim 1, it is characterised in that take in each target according to correspondence
Before the corresponding IO total throughouts of current acquisition moment of business, and current acquisition moment at least one
The IO total throughouts at moment are obtained, after calculating the real-time I/O throughput of each destination service, is also included:
Each destination service is ranked up according to real-time I/O throughput size.
7. method according to claim 1, it is characterised in that take in each target according to correspondence
Before the corresponding IO total throughouts of current acquisition moment of business, and current acquisition moment at least one
The IO total throughouts at moment are obtained, after calculating the real-time I/O throughput of each destination service, is also included:
For the real-time I/O throughput of each destination service, judge whether the I/O throughput exceedes threshold value;
If the I/O throughput exceedes threshold value, remote alarm interface is called to report to the police the destination service.
8. the I/O throughput supervising device of a kind of process, including:
Process identification (PID) acquisition module, is suitable to obtain the process identification (PID) of each destination service;
IO total throughout acquisition modules, are suitable to according to each process identification (PID), at predetermined time intervals, from system
IO total throughouts are obtained in the IO instance documents of each process identification (PID) of correspondence in kernel file;
I/O throughput computing module, is suitable to the current acquisition moment according to each destination service of correspondence in real time
The IO at least one acquisition moment before corresponding IO total throughouts, and current acquisition moment is always gulped down
The amount of telling, calculates the real-time I/O throughput of each destination service.
9. device according to claim 8, it is characterised in that the IO total throughouts obtain mould
Block, including:
IO instance document acquisition submodules, are suitable at predetermined time intervals, from system kernel file path
The corresponding IO instance documents of each process identification (PID) of correspondence are obtained in/proc/ $ pid/io;Wherein described pid be into
Journey is identified;
IO total throughout acquisition submodules, are suitable to from the IO instance documents, extract the corresponding moment
IO total throughouts.
10. device according to claim 8 or claim 9, it is characterised in that the real-time IO handles up
Amount computing module, including:
First real-time I/O throughput calculating sub module, is suitable to, for each destination service, currently to obtain
Moment corresponding IO total throughouts, the IO for deducting the current previous acquisition moment for obtaining the moment are always handled up
Amount, to obtain the real-time I/O throughput of each destination service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510614361.XA CN106547478A (en) | 2015-09-23 | 2015-09-23 | The I/O throughput monitoring method of process and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510614361.XA CN106547478A (en) | 2015-09-23 | 2015-09-23 | The I/O throughput monitoring method of process and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106547478A true CN106547478A (en) | 2017-03-29 |
Family
ID=58365671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510614361.XA Pending CN106547478A (en) | 2015-09-23 | 2015-09-23 | The I/O throughput monitoring method of process and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106547478A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019000626A1 (en) * | 2017-06-28 | 2019-01-03 | 上海壹账通金融科技有限公司 | Interface invoking method, system, electronic device and computer readable storage medium |
CN110069338A (en) * | 2018-01-24 | 2019-07-30 | 中兴通讯股份有限公司 | Resource control method, device and equipment, computer readable storage medium |
CN110119431A (en) * | 2019-05-14 | 2019-08-13 | 深信服科技股份有限公司 | A kind of the operation regulation method and relevant device of data synchronous task |
CN111447113A (en) * | 2020-03-25 | 2020-07-24 | 中国建设银行股份有限公司 | System monitoring method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070064329A1 (en) * | 2005-09-21 | 2007-03-22 | Fujitsu Limited | Storage apparatus, storage apparatus control method, and computer product |
CN101201801A (en) * | 2006-12-11 | 2008-06-18 | 南京理工大学 | Classification storage management method for VOD system |
CN101866312A (en) * | 2010-06-18 | 2010-10-20 | 北京北大众志微系统科技有限责任公司 | System and method for detecting hardware failure based on dynamic I/O value invariance |
CN102314391A (en) * | 2011-05-27 | 2012-01-11 | 运软网络科技(上海)有限公司 | Architecture and method for monitoring performance of virtualization system based on hardware basis tools |
CN103207827A (en) * | 2013-04-19 | 2013-07-17 | 北京百度网讯科技有限公司 | Method and device for detecting IO (input output) hotspots based on Linux system |
CN103327079A (en) * | 2013-05-31 | 2013-09-25 | 青岛海信传媒网络技术有限公司 | Multimedia resource caching method and device |
CN103366017A (en) * | 2013-08-02 | 2013-10-23 | 人民搜索网络股份公司 | Microblog information capturing method and device |
CN104091295A (en) * | 2014-07-07 | 2014-10-08 | 东南大学 | Canteen service quality evaluation system and method |
-
2015
- 2015-09-23 CN CN201510614361.XA patent/CN106547478A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070064329A1 (en) * | 2005-09-21 | 2007-03-22 | Fujitsu Limited | Storage apparatus, storage apparatus control method, and computer product |
CN101201801A (en) * | 2006-12-11 | 2008-06-18 | 南京理工大学 | Classification storage management method for VOD system |
CN101866312A (en) * | 2010-06-18 | 2010-10-20 | 北京北大众志微系统科技有限责任公司 | System and method for detecting hardware failure based on dynamic I/O value invariance |
CN102314391A (en) * | 2011-05-27 | 2012-01-11 | 运软网络科技(上海)有限公司 | Architecture and method for monitoring performance of virtualization system based on hardware basis tools |
CN103207827A (en) * | 2013-04-19 | 2013-07-17 | 北京百度网讯科技有限公司 | Method and device for detecting IO (input output) hotspots based on Linux system |
CN103327079A (en) * | 2013-05-31 | 2013-09-25 | 青岛海信传媒网络技术有限公司 | Multimedia resource caching method and device |
CN103366017A (en) * | 2013-08-02 | 2013-10-23 | 人民搜索网络股份公司 | Microblog information capturing method and device |
CN104091295A (en) * | 2014-07-07 | 2014-10-08 | 东南大学 | Canteen service quality evaluation system and method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019000626A1 (en) * | 2017-06-28 | 2019-01-03 | 上海壹账通金融科技有限公司 | Interface invoking method, system, electronic device and computer readable storage medium |
CN110069338A (en) * | 2018-01-24 | 2019-07-30 | 中兴通讯股份有限公司 | Resource control method, device and equipment, computer readable storage medium |
CN110069338B (en) * | 2018-01-24 | 2024-03-19 | 中兴通讯股份有限公司 | Resource control method, device and equipment and computer readable storage medium |
CN110119431A (en) * | 2019-05-14 | 2019-08-13 | 深信服科技股份有限公司 | A kind of the operation regulation method and relevant device of data synchronous task |
CN111447113A (en) * | 2020-03-25 | 2020-07-24 | 中国建设银行股份有限公司 | System monitoring method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9268838B2 (en) | Efficient query processing using histograms in a columnar database | |
US9652374B2 (en) | Sparsity-driven matrix representation to optimize operational and storage efficiency | |
US11301578B2 (en) | Protecting data based on a sensitivity level for the data | |
US10073866B2 (en) | Dynamic test case prioritization for relational database systems | |
CN106547478A (en) | The I/O throughput monitoring method of process and device | |
JP2016533564A (en) | An event model that correlates the state of system components | |
US10223270B1 (en) | Predicting future access requests by inverting historic access requests in an object storage system | |
CN112527599A (en) | Intelligent monitoring method and device, electronic equipment and readable storage medium | |
CN103632092A (en) | Method and system for file scanning | |
CN116601630A (en) | Generating defensive target database attacks through dynamic honey database responses | |
US11768701B2 (en) | Exception analysis for data storage devices | |
JP2022549590A (en) | Mutation event detection for integrity monitoring | |
US20180260447A1 (en) | Advanced anomaly correlation pattern recognition system | |
US11237890B2 (en) | Analytics initiated predictive failure and smart log | |
US20140082228A1 (en) | Remotely located timing method and device for a processing unit in an information processing system | |
CN106528876A (en) | Information processing method for distributed system and distributed information processing system | |
CN108140047B (en) | Data processing apparatus and method, and data container structure | |
CN111898013B (en) | Website monitoring method and device | |
US10769125B2 (en) | Ordering records for timed meta-data generation in a blocked record environment | |
US11531642B2 (en) | Synchronous object placement for information lifecycle management | |
KR101948150B1 (en) | Application server for distributing data in Hadoop ecosystem based on scheduler, and Hadoop ecosystem including the same | |
CN104391662A (en) | Data reading and writing method and device | |
US20210255829A1 (en) | Ordering records for timed meta-data generation in a blocked record environment | |
US10261945B1 (en) | Systems and methods for storing and accessing monitoring data | |
US10339049B2 (en) | Garbage collection facility grouping infrequently accessed data units in designated transient memory area |
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: 20170329 |