CN109656789A - IO method for testing performance and system - Google Patents

IO method for testing performance and system Download PDF

Info

Publication number
CN109656789A
CN109656789A CN201710946376.5A CN201710946376A CN109656789A CN 109656789 A CN109656789 A CN 109656789A CN 201710946376 A CN201710946376 A CN 201710946376A CN 109656789 A CN109656789 A CN 109656789A
Authority
CN
China
Prior art keywords
performance
mobile terminal
detected
application
outstanding message
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
Application number
CN201710946376.5A
Other languages
Chinese (zh)
Inventor
王曜东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710946376.5A priority Critical patent/CN109656789A/en
Publication of CN109656789A publication Critical patent/CN109656789A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3409Recording 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/3419Recording 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
    • G06F11/3423Recording 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 where the assessed time is active or idle time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3485Performance evaluation by tracing or monitoring for I/O devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Abstract

This application provides a kind of IO method for testing performance and systems, wherein method comprises determining that the state operating file and/or scheduling information file of operating system, from the state operating file and/or the scheduling information file, the IO outstanding message for obtaining mobile terminal, the IO performance of mobile terminal is determined based on the IO outstanding message of mobile terminal.The application no longer pays close attention to disk read-write speed, but determines the state operating file and scheduling information file of operation, including IO outstanding message.IO performance is reflected come side by the IO outstanding message in state operating file and scheduling information file.Since this process can execute in real time in mobile terminal use process, it is possible to obtain real-time IO performance, accuracy is higher.

Description

IO method for testing performance and system
Technical field
This application involves field of communication technology more particularly to IO method for testing performance and systems.
Background technique
The superiority and inferiority of IO performance (input/output performance) has a significant impact to mobile terminal, can carry out IO to mobile terminal Performance detection is to obtain IO performance.
For mobile terminal, IOS operating system or the IO performance of Android operation system are usually utilized when leaving the factory Detection instrument carries out IO performance detection to the operating system of mobile terminal.Disk read-write speed is predominantly obtained in the detection process Degree, the disk read-write speed the high, illustrates that IO performance is better.
But in mobile terminal use process, due to disk fragments and using the increase of time, disk performance can be by Gradually decline, in addition the mounted number of applications of mobile terminal and the number of applications run simultaneously etc. can all impact IO.
Therefore, the IO performance that mobile terminal is detected when factory, cannot represent mobile terminal has on an equal basis in use process Performance, so needing to detect IO performance in mobile terminal use process.
Summary of the invention
In consideration of it, the application provides a kind of IO method for testing performance and mobile terminal, it can be in mobile terminal use process Middle detection IO performance.
A kind of IO method for testing performance, comprising:
Determine the state operating file and/or scheduling information file of operating system;
According to the state operating file and/or the scheduling information file, the IO outstanding message of mobile terminal is determined;
Determine the IO performance of mobile terminal.
Optionally, described according to the state operating file and/or the scheduling information file, determine the IO of mobile terminal When outstanding message includes: I/O latency and the CPU operation for obtaining mobile terminal from the state operating file of operating system Between;
Then the IO performance of the determining mobile terminal includes: to calculate the I/O latency and the CPU runing time Ratio determines the IO abnormal performance of mobile terminal if the ratio is greater than the first ratio.
Optionally, described according to the state operating file and/or the scheduling information file, determine the IO of mobile terminal Outstanding message includes: the waiting time that multiple processes are obtained from the scheduling information file, from the state operating file Obtain the runing time of multiple processes;
Then the IO performance of the determining mobile terminal includes: the ratio of the waiting time of calculation procedure and the runing time of process Value;
If the number of processes that ratio is greater than the first ratio is greater than the first quantity, or, ratio is greater than the process number of the first ratio The ratio of amount and all number of processes is greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
Optionally, described according to the state operating file and/or the scheduling information file, it determines and obtains mobile terminal IO outstanding message include: from the scheduling information file of operating system obtain process outstanding message;
Then determine the IO performance of mobile terminal, comprising: the IO performance of mobile terminal is determined based on the outstanding message of process.
Optionally, the outstanding message of the process includes waiting number and/or waiting time;
The then IO performance that mobile terminal is determined based on the outstanding message of process, comprising:
It is greater than the second quantity in the number of processes for waiting number to be greater than preset times, or, number is waited to be greater than preset times Number of processes and all number of processes ratio be greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal;
And/or
It is greater than the second quantity in the number of processes that the waiting time is greater than preset time, or, the waiting time is greater than preset time Number of processes and all number of processes ratio be greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
Optionally, the outstanding message of the process includes the waiting time of process;
The then IO performance that mobile terminal is determined based on the outstanding message of process, comprising: in multiple scheduling information files The waiting time of the middle multiple same process of determination, and calculate the difference of adjacent waiting time;If the difference of waiting time increases width Degree is greater than predetermined amplitude, it is determined that the IO abnormal performance of mobile terminal.
Optionally, according to the state operating file and/or the scheduling information file, determine that the IO of mobile terminal is waited Information includes: to obtain mobile terminal from the state operating file of operating system and be in not interruptable dormant process Quantity;
The then IO performance of the determining mobile terminal, comprising:
If being greater than the second quantity in not interruptable dormant number of processes, or, being in not interruptable sleep The ratio of the number of processes of state and all number of processes is greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
Optionally, further includes: the IO outstanding message based on mobile terminal determines the degree of mobile terminal IO abnormal performance.
A kind of IO method for testing performance, comprising:
Determine the scheduling information file of operating system;
The outstanding message to be detected using occupied process is determined in the scheduling information file;
By the outstanding message to be detected using occupied process, the IO performance of the application to be detected is determined.
Optionally, the outstanding message includes waiting time and/or waiting number;
It is then described by the outstanding message to be detected using occupied process, determine the IO of the application to be detected Performance, comprising:
If the waiting time to be detected using occupied process is greater than preset time, it is determined that described to be detected to answer IO abnormal performance;
And/or
If the waiting number of process occupied by the application to be detected is greater than preset times, it is determined that the application to be detected IO abnormal performance.
It optionally, further include determining that the waiting to be detected using occupied thread is believed in the scheduling information file Breath;
Then by the outstanding message to be detected using occupied process, the IO of the application to be detected is determined It can, comprising: by described to be detected using the outstanding message of occupied process and the outstanding message of thread, determine described to be checked Survey the IO performance of application.
Optionally, the outstanding message includes waiting time and/or waiting number;
Then by described to be detected using the outstanding message of occupied process and the outstanding message of thread, determine it is described to Detect the IO performance of application, comprising:
If the waiting time to be detected using occupied process is greater than preset time, or, to be detected being answered described It is greater than preset time with the waiting time of occupied thread, it is determined that the IO abnormal performance of the application to be detected;
And/or
If the waiting number to be detected using occupied process is greater than preset times, or, if described to be detected answer It is greater than preset times with the waiting number of occupied thread, it is determined that the IO abnormal performance of the application to be detected.
Optionally, further includes:
Based on outstanding message, the degree to be detected using IO abnormal performance is determined.
Optionally, further includes:
In the case where the IO abnormal performance of the application to be detected, the IO for reducing the application to be detected uses operation.
Optionally, the outstanding message includes waiting time and/or waiting number;
Then by described to be detected using the outstanding message of occupied process and the outstanding message of thread, determine it is described to Detect the IO performance of application, comprising:
If the waiting time to be detected using occupied process is not more than preset time, and, described to be detected It is not more than preset time using the waiting time of occupied thread, it is determined that the IO performance of the application to be detected is normal;
If the waiting number to be detected using occupied process is not more than preset times, and, if described to be detected It is not more than preset times using the waiting number of occupied thread, it is determined that the IO performance of the application to be detected is normal.
Optionally, further includes:
In the normal situation of IO performance recovery of the application to be detected, the IO for increasing the application to be detected uses behaviour Make.
A kind of IO method for testing performance, comprising:
Determine the state operating file and scheduling information file of operating system;
IO outstanding message is obtained in the state operating file and scheduling information file;
Based on the IO outstanding message, the IO performance of mobile terminal and the IO performance of application are determined.
Optionally, further includes:
In the case where the IO abnormal performance of application, if the IO performance of mobile terminal is normal, it is determined that be using itself I/O operation excessively caused by IO abnormal performance;
In the case where the IO abnormal performance of application, if there is exception in the IO performance of mobile terminal, and, using preparatory test Normally, it is determined that the hardware performance of mobile terminal lowly leads to the IO abnormal performance of application.
A kind of IO performance detecting system, comprising:
Multiple mobile terminals, for determining the state operating file and scheduling information file of operating system, in the state IO outstanding message is obtained in operating file and scheduling information file, is based on the IO outstanding message, is determined the IO of mobile terminal The IO performance that can and apply, sends end message, IO performance and the IO performance of application of mobile terminal;
Server, for receiving the end message of the mobile terminal that multiple mobile terminals are sent, IO performance and application IO performance carries out data analysis to the end message of multiple mobile terminals, IO performance and the IO performance of application and obtains analysis knot Fruit.
A kind of IO device for detecting performance characterized by comprising
First determines file unit, for determining the state operating file and/or scheduling information file of operating system;
First determines outstanding message unit, is used for according to the state operating file and/or the scheduling information file, really Determine the IO outstanding message of mobile terminal;
First determines IO characteristics unit, for determining the IO performance of mobile terminal.
Optionally, described first determine outstanding message unit according to the state operating file and/or the scheduling information File determines the IO outstanding message of mobile terminal, specifically includes: from the state operating file of operating system, obtaining mobile whole The I/O latency and CPU runing time at end;
Then described first determine IO characteristics unit determine mobile terminal IO performance include: calculate the I/O latency with The ratio of the CPU runing time determines the IO abnormal performance of mobile terminal if the ratio is greater than the first ratio.
Optionally, described first determine outstanding message unit according to the state operating file and/or the scheduling information File determines that the IO outstanding message of mobile terminal includes: the waiting time that multiple processes are obtained from the scheduling information file, The runing time of multiple processes is obtained from the state operating file;
Then it is described first determine IO characteristics unit determine mobile terminal IO performance include: calculation procedure waiting time with The ratio of the runing time of process;If the number of processes that ratio is greater than the first ratio is greater than the first quantity, or, ratio is greater than first The ratio of the number of processes of ratio and all number of processes is greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
Optionally, described first determine outstanding message unit according to the state operating file and/or the scheduling information File, determine obtain mobile terminal IO outstanding message include: from the scheduling information file of operating system obtain process etc. To information;
Then described first determine that IO characteristics unit determines the IO performance of mobile terminal, comprising: the outstanding message based on process Determine the IO performance of mobile terminal.
Optionally, the outstanding message of the process includes waiting number and/or waiting time;Then it is described based on process etc. The IO performance of mobile terminal is determined to information, comprising:
It is greater than the second quantity in the number of processes for waiting number to be greater than preset times, or, number is waited to be greater than preset times Number of processes and all number of processes ratio be greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal;
And/or
It is greater than the second quantity in the number of processes that the waiting time is greater than preset time, or, the waiting time is greater than preset time Number of processes and all number of processes ratio be greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
Optionally, the outstanding message of the process includes the waiting time of process;The then outstanding message based on process Determine the IO performance of mobile terminal, comprising: determine the waiting time of multiple same process in multiple scheduling information files, and count Calculate the difference of adjacent waiting time;If the difference increasing degree of waiting time is greater than predetermined amplitude, it is determined that the IO of mobile terminal Abnormal performance.
Optionally, described first determine outstanding message unit according to the state operating file and/or the scheduling information File determines that the IO outstanding message of mobile terminal includes: to obtain mobile terminal from the state operating file of operating system and be in Not interruptable dormant number of processes;
Then described first determine that IO characteristics unit determines the IO performance of mobile terminal, comprising:
If being greater than the second quantity in not interruptable dormant number of processes, or, being in not interruptable sleep The ratio of the number of processes of state and all number of processes is greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
Optionally, further includes: determine intensity of anomaly unit, for the IO outstanding message based on mobile terminal, determine movement The degree of terminal IO abnormal performance.
A kind of IO device for detecting performance characterized by comprising
Second determines file unit, for determining the scheduling information file of operating system;
Second determine outstanding message unit, in the scheduling information file determine it is to be detected application it is occupied into The outstanding message of journey;
Second determines IO characteristics unit, for determining by the outstanding message to be detected using occupied process The IO performance of the application to be detected.
Optionally, the outstanding message includes waiting time and/or waiting number;
Then described second determine that IO characteristics unit by the outstanding message to be detected using occupied process, determines The IO performance of the application to be detected, specifically includes:
If the waiting time to be detected using occupied process is greater than preset time, it is determined that described to be detected to answer IO abnormal performance;
And/or
If the waiting number of process occupied by the application to be detected is greater than preset times, it is determined that the application to be detected IO abnormal performance.
Optionally, it second determines outstanding message unit, is also used to determine application to be detected in the scheduling information file The outstanding message of occupied thread;
Then second IO characteristics unit is determined by the outstanding message to be detected using occupied process, described in determination The IO performance of application to be detected, specifically includes: passing through the outstanding message and thread to be detected using occupied process Outstanding message determines the IO performance of the application to be detected.
Optionally, the outstanding message includes waiting time and/or waiting number;
Then second determine that IO characteristics unit passes through the outstanding message and thread to be detected using occupied process Outstanding message determines the IO performance of the application to be detected, specifically includes:
If the waiting time to be detected using occupied process is greater than preset time, or, to be detected being answered described It is greater than preset time with the waiting time of occupied thread, it is determined that the IO abnormal performance of the application to be detected;
And/or
If the waiting number to be detected using occupied process is greater than preset times, or, if described to be detected answer It is greater than preset times with the waiting number of occupied thread, it is determined that the IO abnormal performance of the application to be detected.
Optionally, further includes:
Intensity of anomaly unit is determined, for determining the degree to be detected using IO abnormal performance based on outstanding message.
Optionally, further includes: reverse operating unit, in the case where the IO abnormal performance of the application to be detected, The IO for reducing the application to be detected uses operation.
Optionally, the outstanding message includes waiting time and/or waiting number;
Then second determine that IO characteristics unit passes through the outstanding message and thread to be detected using occupied process Outstanding message determines the IO performance of the application to be detected, specifically includes:
If the waiting time to be detected using occupied process is not more than preset time, and, described to be detected It is not more than preset time using the waiting time of occupied thread, it is determined that the IO performance of the application to be detected is normal;
If the waiting number to be detected using occupied process is not more than preset times, and, if described to be detected It is not more than preset times using the waiting number of occupied thread, it is determined that the IO performance of the application to be detected is normal.
Optionally, the reverse operating unit is also used to the situation normal in the IO performance recovery of the application to be detected Under, the IO for increasing the application to be detected uses operation.
A kind of IO device for detecting performance characterized by comprising
Third determines file unit, for determining the state operating file and scheduling information file of operating system;
Third determines outstanding message unit, waits for obtaining IO in the state operating file and scheduling information file Information;
Third determines IO characteristics unit, for being based on the IO outstanding message, determines the IO performance and application of mobile terminal IO performance.
Optionally, further includes:
Determine cause unit, in the case where the IO abnormal performance of application, if the IO performance of mobile terminal is normal, Be determined as using itself I/O operation excessively caused by IO abnormal performance;In the case where the IO abnormal performance of application, if mobile There is exception in the IO performance of terminal, and, it is normal using preparatory test, it is determined that the hardware performance of mobile terminal lowly causes to apply IO abnormal performance.
By the above technological means, may be implemented it is following the utility model has the advantages that
The application no longer pays close attention to disk read-write speed, but determines the state operating file and scheduling information file of operation, Including IO outstanding message.IO is reflected come side by the IO outstanding message in state operating file and scheduling information file Performance.
Since this process can execute in real time in mobile terminal use process, it is possible to real-time IO performance is obtained, it is quasi- True property is higher.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of IO method for testing performance disclosed in the embodiment of the present application;
Fig. 2 is a kind of flow chart of IO method for testing performance disclosed in the embodiment of the present application;
Fig. 3 is a kind of flow chart of IO method for testing performance disclosed in the embodiment of the present application;
Fig. 4 is a kind of flow chart of IO method for testing performance disclosed in the embodiment of the present application;
Fig. 5 is a kind of flow chart of IO method for testing performance disclosed in the embodiment of the present application;
Fig. 6 is a kind of flow chart of IO method for testing performance disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of IO device for detecting performance disclosed in the embodiment of the present application;
Fig. 8 is the structural schematic diagram of another IO device for detecting performance disclosed in the embodiment of the present application;
Fig. 9 is the structural schematic diagram of another IO device for detecting performance disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Applicant has found in the course of the research: pay close attention to mobile terminal disk read-write speed be a realization it is more complicated, The scheme that influence factor is more and practical significance is not high.The application no longer goes the disk read-write speed of concern mobile terminal, and It is to pay close attention to the IO outstanding message of the operating system of mobile terminal, and reflect IO performance based on IO outstanding message.
IO method for testing performance provided by the present application can integrate in the operating system of mobile terminal, can also be used as one A application integration is not limited this in mobile terminal.Since the application can detect IO in mobile terminal use process Performance, it is possible to obtain the real-time IO performance of mobile terminal and application, real-time is higher.
It is understood that using IO method for testing performance as an application integration in the case where mobile terminal, can It is modified to avoid to operating system.Therefore, using IO method for testing performance as an application integration in mobile terminal scheme, Applicability is higher.
The application both can detecte the IO performance of mobile terminal, can also detect the IO performance of application.Separately below to shifting The detection process of the IO performance of the IO performance and application of dynamic terminal is illustrated.
First part: the IO performance of mobile terminal is detected.
According to one embodiment provided by the present application, a kind of embodiment one of IO method for testing performance is provided.
Step S101: from the state operating file of operating system, I/O latency and CPU runing time are obtained.
State operating file/the proc/stat for obtaining operating system, has recorded in the state operating file of operating system Many system operational parameters, for example, IOWait time and CPU runing time.
The IOWait time refers to after mobile terminal-opening operation, since I O scheduling leads to the waiting time of mobile terminal;? In the IO waiting process of mobile terminal, mobile terminal does not have process that can run, and the CPU of mobile terminal is in idle condition (idle state).
It is understood that the IOWait time the long, indicate time that mobile terminal is in idle condition by I O scheduling more It is long.CPU runing time is the time value of lasting timing after mobile terminal-opening operation.
Step S102: the ratio of the I/O latency Yu the CPU runing time is calculated.
Step S103: in the case where the ratio is greater than the first ratio, it is abnormal to determine that the IO performance of mobile terminal occurs.
It is understood that indicating that the degree of IO abnormal performance is bigger in the case where ratio is bigger.
When the ratio is not more than the first ratio, it can reflect that mobile terminal does not have from side and fall into a long wait, but Mobile terminal does not occur IO abnormal performance not necessarily.
Wherein, the first ratio is a threshold limit value, and the specific value of the first ratio can be set by technical staff, again Without limitation.
State operating file/proc/stat of operating system further includes running state of a process;Running state of a process can To include:
R state: Running or runnable (on run queue), task is currently running state.
S state: Interruptible sleep (waiting for an event to complete) task is etc. The suspend mode to some event.
D-state: Uninterruptible sleep (usually IO).
Certainly, running state of a process can also include other states, and this is no longer going to repeat them.
Wherein, D-state is not interruptable sleep state, and the process in the state is usually waiting free time IO.Such as Free disk IO is waited, dormant network IO is waited, alternatively, waiting other idle peripheral hardware IO.
Therefore, the application can be in state operating file/proc/stat of operating system, and acquisition is in can not terminal Dormant number of processes (namely number of processes in D-state), be used to assist determine mobile terminal IO performance.
Can count in the dormant number of processes that can not interrupt, if in it is not interruptable it is dormant into The ratio of number of passes amount and all number of processes is greater than the second ratio, then it is abnormal can to determine that the IO performance of mobile terminal occurs.
That is, occupying most of number of processes in not interruptable dormant number of processes in all number of processes When, then it is abnormal can to determine that the IO performance of mobile terminal occurs.
Or, it can be determined that whether it is greater than the second quantity in not interruptable dormant number of processes, is being in In the case that not interruptable dormant number of processes is greater than the second quantity, illustrate in not interruptable dormant Number of processes is more, can determine the IO abnormal performance of mobile terminal.
It is understood that indicating IO in the case where more in not interruptable dormant number of processes Degree that can be abnormal is bigger.
According to one embodiment provided by the present application, a kind of embodiment two of IO method for testing performance is provided.Referring to figure 2, comprising the following steps:
Step S201: the scheduling information file of operating system is determined.
In the scheduling information file (Sched file) of operating system, it will usually in the scheduling of middle record the process and thread Information and IO outstanding message.
Step S202: the outstanding message of process is obtained from the scheduling information file of operating system.
Outstanding message may include that the I/O latency of process and IO wait number.
Step S203: the IO performance of mobile terminal is determined by the outstanding message of process.
There are three types of implementation, three kinds of implementations can be used alone and can also be used with random incorporation this step tool, then It is secondary without limitation.
The first implementation: the IO performance of terminal is determined by the waiting number of process.
When process temporarily can be used without IO, process is just in waiting I/O state, waits number that can add 1.Usually In the case of each process have the case where waiting IO, so the waiting number non-zero of most of process.Therefore one is set in advance If number, for indicating the more threshold value of process waiting number.
It determines the size relation of each process waited between number and preset times, and counts and wait number greater than default The process of number.
It is greater than the second quantity in the number of processes for waiting number to be greater than preset times, then illustrates that mobile terminal has more be in The process of IO can not be obtained, that is, determines the IO abnormal performance of mobile terminal.
If the ratio for the number of processes and all number of processes for waiting number to be greater than preset times is greater than the second ratio, really Determine the IO abnormal performance of mobile terminal.
It is understood that indicating IO performance in the case where waiting number greater than the number of processes of preset times more Abnormal degree is bigger.
Second of implementation: the IO performance of terminal is determined by the waiting time of process.
In the case where process is in and waits IO, the waiting time of process can be gradually increased.Each process under normal conditions The case where waiting IO is had, so the waiting time non-zero of most of process.Therefore a preset time is set, for indicating Process waiting time more threshold value.
It determines the size relation between the waiting time and preset time of each process, and counts the waiting time greater than default The process of time quantity.
It is greater than preset quantity in the number of processes that the waiting time is greater than preset time, then illustrates that mobile terminal has more be in The process of IO can not be obtained, that is, determines the IO abnormal performance of mobile terminal.
Alternatively, being greater than the number of processes of preset time and the ratio of all number of processes greater than the second ratio in the waiting time Value, it is determined that the IO abnormal performance of mobile terminal.
It is understood that indicating IO performance in the case that the number of processes for being greater than preset time in the waiting time is more Abnormal degree is bigger.
The third implementation: IO performance is determined by the difference of the waiting time of process.
The schedule file of operating system can be periodically acquired, for example, obtaining in multiple scheduling information files.In multiple tune It spends in file and determines the difference of the waiting time of same process, if the increasing degree of waiting time is greater than predetermined amplitude, it is determined that The IO abnormal performance of mobile terminal.
Referring to table 1, for the citing for calculating waiting time difference by multiple scheduling information files.
Table 1
Under normal circumstances, the difference of the waiting time of the same process in adjacent scheduling information file should be similar consistent 's.Increasing degree if the waiting time indicates that the difference of waiting time increases suddenly if being greater than predetermined amplitude, can determine shifting The IO performance of dynamic terminal occurs abnormal.
For example, the difference of the waiting time of process 1 suddenly increases to 500ms (above-mentioned table 1 from 50ms in the above-mentioned citing of table 1 This implementation process by way of example only does not represent truth), then it can determine the growth width of the difference of waiting time Degree is greater than predetermined amplitude, so that it is determined that exception occurs in the IO performance of mobile terminal.
It is understood that indicating that the degree of IO abnormal performance is got in the case where the increasing degree of waiting time is bigger Greatly.
According to one embodiment provided by the present application, a kind of embodiment three of IO method for testing performance is provided.Referring to figure 3, comprising the following steps:
Step S301: the state operating file and scheduling information file of operating system are determined.
Determine the state operating file/proc/stat and scheduling information file Sched of operating system.
Step S302: it obtains from the waiting time for obtaining process in scheduling information file and from the state operating file The runing time of process.
The waiting time of each process is obtained from scheduling information file Sched, is then obtained from state operating file The runing time of each process.
Step S303: the ratio of the runing time of the waiting time and process of calculation procedure.
Step S304: it is greater than the first quantity in the number of processes that ratio is greater than the first ratio, or, ratio is greater than the first ratio Number of processes and all number of processes ratio be greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
In the case where the ratio of the waiting time of process and the runing time of process is greater than the first ratio, then illustrate process In falling into a long wait state.
The number of processes that ratio is greater than the first ratio is counted, if the number of processes that ratio is greater than the first ratio is more, table Show more in the process for falling into a long wait state.
It is greater than the first quantity in the number of processes that ratio is greater than the first ratio, it is determined that the IO abnormal performance of mobile terminal. Alternatively, being greater than the number of processes of the first ratio and the ratio of all number of processes greater than the second ratio in ratio, it is determined that mobile The IO abnormal performance of terminal.
It is understood that indicating IO performance in the case where the number of processes that statistics ratio is greater than the first ratio Abnormal degree is bigger.
According to one embodiment provided by the present application, a kind of example IV of IO method for testing performance is provided.Referring to figure 4, comprising the following steps:
Step S401: the state operating file and scheduling information file of operating system are determined.
Step S402: I/O latency and CPU runing time are obtained from the state operating file of operating system, from operation The outstanding message of process is obtained in the scheduling information file of system.
Step S403: the ratio of the I/O latency Yu the CPU runing time is calculated.
Step S404: by the ratio and the outstanding message of process, the IO performance of mobile terminal is determined.
Determine whether mobile terminal IO abnormal performance occurs by two dimensions in the present embodiment, one of dimension be by Determine whether mobile terminal IO abnormal performance occurs based on ratio according to the mode of embodiment one;Another dimension is according to implementation The mode of example two or embodiment three determines whether mobile terminal IO abnormal performance occurs based on the outstanding message of process.
In the case where two dimensions determine that IO abnormal performance occurs in mobile terminal, determine that IO performance occurs in mobile terminal It is abnormal.
Through the foregoing embodiment the application may be implemented it is following the utility model has the advantages that
The application no longer pays close attention to disk read-write speed, but determines the state operating file and scheduling information file of operation, Including the IO outstanding message of mobile terminal.I.e. by the IO outstanding message in state operating file and scheduling information file come The IO performance of side reflection mobile terminal.
Since this process can execute in real time in mobile terminal use process, it is possible to real-time IO performance is obtained, it is quasi- True property is higher.
Second part: IO performance is carried out to the application of mobile terminal and is detected.
According to one embodiment provided by the present application, a kind of embodiment five of IO method for testing performance is provided.Due to right The implementation procedure of each application is consistent, therefore is illustrated by taking an application to be detected as an example.
Referring to Fig. 5, comprising the following steps:
Step S501: the scheduling information file of operating system is determined.
Step S502: the outstanding message and line to be detected using occupied process is determined in the scheduling information file The outstanding message of journey.
In the scheduling information file of operating system, it will usually the IO etc. in Sched file including record the process, thread To information, outstanding message may include I/O latency, and IO waits number etc..
In scheduling information file, process corresponding with the mark of application to be detected and thread can be searched, to obtain Process outstanding message and thread outstanding message to be detected using occupied process and thread.
Step S503: by described to be detected using the outstanding message of occupied process and the outstanding message of thread, really The IO performance of the fixed application to be detected.
Present embodiments provide two kinds of implementations of this step.
The first implementation:
It is greater than preset times in the waiting number to be detected using occupied process, or, shared by application to be detected It is greater than preset times with the waiting number of thread, it is determined that the IO abnormal performance of the application to be detected.
In the case where the waiting number to be detected using occupied process is greater than preset times, can determine to be detected The IO abnormal performance of application.It is understood that the IO of application to be detected can be determined only by the process of application to be detected Performance.
In the case where the waiting number to be detected using occupied thread is greater than preset times, can determine to be detected The IO abnormal performance of application.
Since the corresponding process of application to be detected may include multiple threads, some IO wait situation that may not be reflected in Where application to be detected in process, but it is reflected on one or more threads in process.Therefore, the present embodiment can also obtain The waiting number for obtaining thread can determine the IO of application to be detected in the case where the waiting number of thread is greater than preset times Abnormal performance.
Conversely, the waiting time to be detected using occupied process be not more than preset time, and, it is described to The waiting time of the occupied thread of detection application is not more than preset time, it is determined that the IO performance of the application to be detected is just Often.
Second of implementation:
It is greater than preset time in the waiting time to be detected using occupied process, or, shared by application to be detected It is greater than preset time with the waiting time of thread, it is determined that the IO abnormal performance of the application to be detected.
That is, being greater than preset time in the waiting time to be detected using occupied process, it is determined that described to be checked Survey the IO abnormal performance of application.It is understood that application to be detected can be determined only by the process of application to be detected IO performance.
It is greater than preset time in the waiting time to be detected using occupied thread, it is determined that described to be detected to answer IO abnormal performance.
The first implementation uses the waiting time in second of implementation using number is waited, and in addition to this second Kind implementation is that implementation is similar with the first, and details are not described herein.
Conversely, if the waiting number to be detected using occupied process be not more than preset times, and, if it is described to The waiting number of the occupied thread of detection application is not more than preset times, it is determined that the IO performance of the application to be detected is normal.
Step S504: the IO of the adjustment application to be detected uses operation.
In the case where the IO abnormal performance of application to be detected, it is possible to reduce the IO usage amount of the application to be detected.
For example, reducing the IO read-write amount or access time of application to be detected;The parallel of the application to be detected is reduced to appoint Business quantity;It is used or, adjusting the modes such as the priority of process or thread with outstanding message to reduce the IO of application to be detected Operation, to alleviate the IO performance of application to be detected.
After the IO performance recovery of application to be detected is normal, when can increase the IO read-write amount or read-write of application to be detected Between, increase the modes such as the parallel task quantity of application to be detected, to increase the IO of application to be detected using operation, thus adapt to Detect the IO performance of application.
After through multiple reversed adjusting, application to be detected can be made preferably to adapt to the performance of mobile terminal.It adjusts The IO performance of whole application to be detected, to reach IO performance balance point, to be conducive to be promoted the IO performance of application to be detected.
Present invention also provides a kind of IO performance detecting systems, including multiple mobile terminals and server.
Multiple mobile terminals, for determining the state operating file and scheduling information file of operating system, in the state IO outstanding message is obtained in operating file and scheduling information file, is based on the IO outstanding message, is determined the IO of mobile terminal The IO performance that can and apply, sends end message, IO performance and the IO performance of application of mobile terminal.
Mobile terminal can be with adoption status operating file and scheduling information file and any according to one-example IV of embodiment The mode of kind, determines the IO performance of mobile terminal;And adoption status operating file and management and running file are according to embodiment five Mode determines the IO performance of each application.
Then, the IO performance that mobile terminal can send end message, the IO performance of mobile terminal and application extremely services Device, so that server can summarize end message, IO performance and the IO performance of application of each mobile terminal.
Server, for receiving the end message of the mobile terminal that multiple mobile terminals are sent, IO performance and application IO performance carries out big data analysis to the end message of multiple mobile terminals, IO performance and the IO performance of application and is analyzed As a result.
Server can terminal to multiple mobile terminals, IO performance and the IO performance of application carry out Classifying Sum, thus Obtain some common informations and different information.
For example, Classifying Sum is carried out according to IO performance of the end message to mobile terminal, so as to obtain different terminals The IO performance of information.For example, finding that the generally existing IO of the IO performance of the mobile terminal of some model is abnormal after Classifying Sum, then It can determine the degraded performance of the mobile terminal of the model.
For another example, statistics application each mobile terminal volume IO performance, if it is a certain apply on most of mobile terminal go out Existing IO is abnormal, then can determine that the implementation procedure of application is abnormal.
Of course, it is possible to need to carry out big data analysis according to the actual situation, so that common information and different information are obtained, with It just can be application and development after, the collocation optimization of the optimization of operating system, hardware provides further reference.
The application provides a kind of IO method for testing performance again.Referring to Fig. 6, comprising the following steps:
Step S601: the state operating file and scheduling information file of operating system are determined.
Step S602: IO outstanding message is obtained in the state operating file and scheduling information file.
Step S603: it is based on the IO outstanding message, determines the IO performance of mobile terminal and the IO performance of application.
The present embodiment can also determine the reason caused using IO exception:
In the case where the IO abnormal performance of application, if the IO performance of mobile terminal is normal, it is determined that be using itself I/O operation excessively caused by IO abnormal performance.
The IO performance of mobile terminal is determined in the way of one-example IV of embodiment, if the IO performance of mobile terminal is just Often, but the IO abnormal performance of application to be detected, it is determined that be application process to be detected I/O operation it is more, already exceed this and set Standby IO read or write speed.
In the case where the IO abnormal performance of application, if there is exception in the IO performance of mobile terminal, and, using preparatory test Normally, it is determined that the hardware performance of mobile terminal lowly leads to the IO abnormal performance of application.
The IO performance of mobile terminal is determined in the way of one-example IV of embodiment, if the IO performance of mobile terminal is different Often, then after a period of time, the IO performance of mobile terminal and the IO performance of application to be detected are detected again, if the IO of mobile terminal Abnormal performance, and, the abnormal performance of application to be detected.
If the test result to be detected applied before restocking is normal, it is determined that the performance of mobile terminal is lower, is running Using it is more when, the problem of IO abnormal performance of application to be detected will occur.
Referring to Fig. 7, this application provides a kind of IO device for detecting performance, comprising:
First determines file unit 71, for determining the state operating file and/or scheduling information file of operating system;
First determines outstanding message unit 72, is used for according to the state operating file and/or the scheduling information file, Determine the IO outstanding message of mobile terminal;
First determines IO characteristics unit 73, for determining the IO performance of mobile terminal.
Optionally, described first determine that outstanding message unit 72 is believed according to the state operating file and/or the scheduling File is ceased, the IO outstanding message of mobile terminal is determined, specifically includes: from the state operating file of operating system, being moved The I/O latency and CPU runing time of terminal;
Then described first determine that IO characteristics unit 73 determines that the IO performance of mobile terminal includes: to calculate the I/O latency With the ratio of the CPU runing time, the IO abnormal performance of mobile terminal is determined if the ratio is greater than the first ratio.
Optionally, described first determine that outstanding message unit 72 is believed according to the state operating file and/or the scheduling File is ceased, determines that the IO outstanding message of mobile terminal includes: when obtaining the waiting of multiple processes from the scheduling information file Between, the runing time of multiple processes is obtained from the state operating file;
Then described first determine that IO characteristics unit 73 determines that the IO performance of mobile terminal includes: the waiting time of calculation procedure With the ratio of the runing time of process;If the number of processes that ratio is greater than the first ratio is greater than the first quantity, or, ratio is greater than the The ratio of the number of processes of one ratio and all number of processes is greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
Optionally, described first determine that outstanding message unit 72 is believed according to the state operating file and/or the scheduling File is ceased, determines that the IO outstanding message for obtaining mobile terminal includes: the acquisition process from the scheduling information file of operating system Outstanding message;
Then described first determine that IO characteristics unit 73 determines the IO performance of mobile terminal, comprising: the waiting letter based on process Cease the IO performance for determining mobile terminal.
Optionally, the outstanding message of the process includes waiting number and/or waiting time;Then it is described based on process etc. The IO performance of mobile terminal is determined to information, comprising:
It is greater than the second quantity in the number of processes for waiting number to be greater than preset times, or, number is waited to be greater than preset times Number of processes and all number of processes ratio be greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal;
And/or
It is greater than the second quantity in the number of processes that the waiting time is greater than preset time, or, the waiting time is greater than preset time Number of processes and all number of processes ratio be greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
Optionally, the outstanding message of the process includes the waiting time of process;The then outstanding message based on process Determine the IO performance of mobile terminal, comprising: determine the waiting time of multiple same process in multiple scheduling information files, and count Calculate the difference of adjacent waiting time;If the difference increasing degree of waiting time is greater than predetermined amplitude, it is determined that the IO of mobile terminal Abnormal performance.
Optionally, described first determine that outstanding message unit 72 is believed according to the state operating file and/or the scheduling File is ceased, determines that the IO outstanding message of mobile terminal includes: to obtain at mobile terminal from the state operating file of operating system In not interruptable dormant number of processes;
Then described first determine that IO characteristics unit 73 determines the IO performance of mobile terminal, comprising:
If being greater than the second quantity in not interruptable dormant number of processes, or, being in not interruptable sleep The ratio of the number of processes of state and all number of processes is greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
Optionally, further includes: determine intensity of anomaly unit 74, for the IO outstanding message based on mobile terminal, determine and move The degree of dynamic terminal IO abnormal performance.
About the specific implementation process of IO device for detecting performance shown in Fig. 7, one-example IV of embodiment may refer to Implementation procedure, details are not described herein.
According to Fig. 8, the application also provides a kind of IO device for detecting performance, comprising:
Second determines file unit 81, for determining the scheduling information file of operating system;
Second determines outstanding message unit 82, for determining that application to be detected is occupied in the scheduling information file The outstanding message of process;
Second determines IO characteristics unit 83, for by the outstanding message to be detected using occupied process, really The IO performance of the fixed application to be detected.
Optionally, the outstanding message includes waiting time and/or waiting number;
Then the described second determining IO characteristics unit 82 is by the outstanding message to be detected using occupied process, really The IO performance of the fixed application to be detected, specifically includes: if the waiting time to be detected using occupied process is greater than Preset time, it is determined that the IO abnormal performance of the application to be detected;And/or if process occupied by the application to be detected Number is waited to be greater than preset times, it is determined that the IO abnormal performance of the application to be detected.
Optionally, it second determines outstanding message unit 82, is also used to determine to be detected answer in the scheduling information file With the outstanding message of occupied thread;
Then second determine that IO characteristics unit 82 by the outstanding message to be detected using occupied process, determines institute The IO performance for stating application to be detected, specifically includes: passing through the outstanding message and thread to be detected using occupied process Outstanding message, determine the IO performance of the application to be detected.
Optionally, the outstanding message includes waiting time and/or waiting number;
Then second determine that IO characteristics unit 83 passes through the outstanding message and thread to be detected using occupied process Outstanding message, determine the IO performance of the application to be detected, specifically include:
If the waiting time to be detected using occupied process is greater than preset time, or, to be detected being answered described It is greater than preset time with the waiting time of occupied thread, it is determined that the IO abnormal performance of the application to be detected;
And/or
If the waiting number to be detected using occupied process is greater than preset times, or, if described to be detected answer It is greater than preset times with the waiting number of occupied thread, it is determined that the IO abnormal performance of the application to be detected.
Optionally, further includes: intensity of anomaly unit 84 is determined, for determining application IO performance to be detected based on outstanding message Abnormal degree.
Optionally, further includes: reverse operating unit 85, for the IO abnormal performance of the application to be detected the case where Under, the IO for reducing the application to be detected uses operation.
Optionally, the outstanding message includes waiting time and/or waiting number;
Then second determine that IO characteristics unit 83 passes through the outstanding message and thread to be detected using occupied process Outstanding message, determine the IO performance of the application to be detected, specifically include:
If the waiting time to be detected using occupied process is not more than preset time, and, described to be detected It is not more than preset time using the waiting time of occupied thread, it is determined that the IO performance of the application to be detected is normal;
If the waiting number to be detected using occupied process is not more than preset times, and, if described to be detected It is not more than preset times using the waiting number of occupied thread, it is determined that the IO performance of the application to be detected is normal.
Optionally, the reverse operating unit 85 is also used to the normal feelings of IO performance recovery in the application to be detected Under condition, the IO for increasing the application to be detected uses operation.
About IO device for detecting performance shown in Fig. 8, the specific implementation process of embodiment two may refer to, it is no longer superfluous herein It states.
Referring to Fig. 9, a kind of IO device for detecting performance is provided, comprising:
Third determines file unit 91, for determining the state operating file and scheduling information file of operating system;
Third determines outstanding message unit 92, for obtaining IO etc. in the state operating file and scheduling information file To information;
Third determines IO characteristics unit 93, for being based on the IO outstanding message, determining the IO performance of mobile terminal and answering IO performance.
Optionally, further includes:
Determine cause unit 94, in the case where the IO abnormal performance of application, if the IO performance of mobile terminal is normal, Then be determined as using itself I/O operation excessively caused by IO abnormal performance;In the case where the IO abnormal performance of application, if moving There is exception in the IO performance of dynamic terminal, and, it is normal using preparatory test, it is determined that the hardware performance of mobile terminal lowly causes to answer IO abnormal performance.
About IO device for detecting performance shown in Fig. 9, the specific implementation process of embodiment three may refer to, it is no longer superfluous herein It states.
If function described in the present embodiment method is realized in the form of SFU software functional unit and as independent product pin It sells or in use, can store in a storage medium readable by a compute device.Based on this understanding, the embodiment of the present application The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, this is soft Part product is stored in a storage medium, including some instructions are used so that calculating equipment (it can be personal computer, Server, mobile computing device or network equipment etc.) execute all or part of step of each embodiment the method for the application Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (22)

1. a kind of IO method for testing performance characterized by comprising
Determine the state operating file and/or scheduling information file of operating system;
According to the state operating file and/or the scheduling information file, the IO outstanding message of mobile terminal is determined;
IO outstanding message based on mobile terminal determines the IO performance of mobile terminal.
2. the method as described in claim 1, which is characterized in that
It is described according to the state operating file and/or the scheduling information file, determine the IO outstanding message packet of mobile terminal It includes: from the state operating file of operating system, obtaining the I/O latency and CPU runing time of mobile terminal;
The then IO outstanding message based on mobile terminal determines that the IO performance of mobile terminal includes: when calculating the IO to wait Between ratio with the CPU runing time, the IO abnormal performance of mobile terminal is determined if the ratio is greater than the first ratio.
3. the method as described in claim 1, which is characterized in that
It is described according to the state operating file and/or the scheduling information file, determine the IO outstanding message packet of mobile terminal Include: obtaining the waiting time of multiple processes from the scheduling information file, obtained from the state operating file it is multiple into The runing time of journey;
The then IO outstanding message based on mobile terminal, when determining that the IO performance of mobile terminal includes: the waiting of calculation procedure Between ratio with the runing time of process;
If ratio be greater than the first ratio number of processes be greater than the first quantity, or, ratio be greater than the first ratio number of processes with The ratio of all number of processes is greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
4. the method as described in claim 1, which is characterized in that described according to the state operating file and/or the scheduling Message file determines that obtaining the IO outstanding message of mobile terminal includes: to obtain process from the scheduling information file of operating system Outstanding message;
The then IO outstanding message based on mobile terminal determines the IO performance of mobile terminal, comprising: the outstanding message based on process is true Determine the IO performance of mobile terminal.
5. method as claimed in claim 4, which is characterized in that the outstanding message of the process includes waiting number and/or waiting To the time;
The then IO performance that mobile terminal is determined based on the outstanding message of process, comprising:
Wait number be greater than preset times number of processes be greater than the second quantity, or, wait number be greater than preset times into The ratio of number of passes amount and all number of processes is greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal;
And/or
The waiting time be greater than preset time number of processes be greater than the second quantity, or, the waiting time be greater than preset time into The ratio of number of passes amount and all number of processes is greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
6. method as claimed in claim 4, which is characterized in that the outstanding message of the process includes the waiting time of process;
The then IO performance that mobile terminal is determined based on the outstanding message of process, comprising: in multiple scheduling information files really The waiting time of fixed multiple same process, and calculate the difference of adjacent waiting time;If the difference increasing degree of waiting time is big In predetermined amplitude, it is determined that the IO abnormal performance of mobile terminal.
7. the method as described in claim 1, which is characterized in that
According to the state operating file and/or the scheduling information file, determine mobile terminal IO outstanding message include: from In the state operating file of operating system, obtains mobile terminal and be in not interruptable dormant number of processes;
The then IO outstanding message based on mobile terminal, determines the IO performance of mobile terminal, comprising:
If being greater than the second quantity in not interruptable dormant number of processes, or, being in not interruptable sleep state Number of processes and all number of processes ratio be greater than the second ratio, it is determined that the IO abnormal performance of mobile terminal.
8. such as the described in any item methods of claim 2-7, which is characterized in that further include: the IO based on mobile terminal waits letter Breath, determines the degree of mobile terminal IO abnormal performance.
9. a kind of IO method for testing performance characterized by comprising
Determine the scheduling information file of operating system;
The outstanding message to be detected using occupied process is determined in the scheduling information file;
By the outstanding message to be detected using occupied process, the IO performance of the application to be detected is determined.
10. method as claimed in claim 9, which is characterized in that the outstanding message includes the waiting time and/or waits secondary Number;
It is then described by the outstanding message to be detected using occupied process, determine the IO of the application to be detected It can, comprising:
If the waiting time to be detected using occupied process is greater than preset time, it is determined that the application to be detected IO abnormal performance;
And/or
If the waiting number of process occupied by the application to be detected is greater than preset times, it is determined that the IO of the application to be detected Abnormal performance.
11. method as claimed in claim 9, which is characterized in that further include determining to be detected in the scheduling information file Using the outstanding message of occupied thread;
Then by the outstanding message to be detected using occupied process, the IO performance of the application to be detected is determined, wrap It includes: by described to be detected using the outstanding message of occupied process and the outstanding message of thread, determining described to be detected answer IO performance.
12. method as claimed in claim 11, which is characterized in that the outstanding message includes the waiting time and/or waits secondary Number;
Then by described to be detected using the outstanding message of occupied process and the outstanding message of thread, determine described to be detected The IO performance of application, comprising:
If the waiting time to be detected using occupied process is greater than preset time, or, described to be detected using institute The waiting time of the thread of occupancy is greater than preset time, it is determined that the IO abnormal performance of the application to be detected;
And/or
If the waiting number to be detected using occupied process is greater than preset times, or, if described to be detected using institute The waiting number for occupying thread is greater than preset times, it is determined that the IO abnormal performance of the application to be detected.
13. such as the described in any item methods of claim 9-11, which is characterized in that further include:
Based on outstanding message, the degree to be detected using IO abnormal performance is determined.
14. such as the described in any item methods of claim 9-11, which is characterized in that further include:
In the case where the IO abnormal performance of the application to be detected, the IO for reducing the application to be detected uses operation.
15. method as claimed in claim 11, which is characterized in that the outstanding message includes the waiting time and/or waits secondary Number;
Then by described to be detected using the outstanding message of occupied process and the outstanding message of thread, determine described to be detected The IO performance of application, comprising:
If the waiting time to be detected using occupied process is not more than preset time, and, in the application to be detected The waiting time of occupied thread is not more than preset time, it is determined that the IO performance of the application to be detected is normal;
If the waiting number to be detected using occupied process is not more than preset times, and, if the application to be detected The waiting number of occupied thread is not more than preset times, it is determined that the IO performance of the application to be detected is normal.
16. method as claimed in claim 15, which is characterized in that further include:
In the normal situation of IO performance recovery of the application to be detected, the IO for increasing the application to be detected uses operation.
17. a kind of IO method for testing performance characterized by comprising
Determine the state operating file and scheduling information file of operating system;
IO outstanding message is obtained in the state operating file and scheduling information file;
Based on the IO outstanding message, the IO performance of mobile terminal and the IO performance of application are determined.
18. method as claimed in claim 17, which is characterized in that further include:
In the case where the IO abnormal performance of application, if the IO performance of mobile terminal is normal, it is determined that be grasped using the IO of itself Make excessive caused IO abnormal performance;
In the case where the IO abnormal performance of application, if there is exception in the IO performance of mobile terminal, and, just using preparatory test Often, it is determined that the hardware performance of mobile terminal lowly leads to the IO abnormal performance of application.
19. a kind of IO performance detecting system characterized by comprising
Multiple mobile terminals are run for determining the state operating file and scheduling information file of operating system in the state In file and scheduling information file obtain IO outstanding message, be based on the IO outstanding message, determine mobile terminal IO performance and The IO performance of application sends end message, IO performance and the IO performance of application of mobile terminal;
Server, for receiving end message, IO performance and the IO of application of the mobile terminal that multiple mobile terminals are sent Can, data analysis is carried out to the end message of multiple mobile terminals, IO performance and the IO performance of application and obtains analysis result.
20. a kind of IO device for detecting performance characterized by comprising
First determines file unit, for determining the state operating file and/or scheduling information file of operating system;
First determines outstanding message unit, for determining and moving according to the state operating file and/or the scheduling information file The IO outstanding message of dynamic terminal;
First determines IO characteristics unit, for determining the IO performance of mobile terminal.
21. a kind of IO device for detecting performance characterized by comprising
Second determines file unit, for determining the scheduling information file of operating system;
Second determines outstanding message unit, to be detected using occupied process for determining in the scheduling information file Outstanding message;
Second determines IO characteristics unit, described in determining by the outstanding message to be detected using occupied process The IO performance of application to be detected.
22. a kind of IO device for detecting performance characterized by comprising
Third determines file unit, for determining the state operating file and scheduling information file of operating system;
Third determines outstanding message unit, waits letter for obtaining IO in the state operating file and scheduling information file Breath;
Third determines IO characteristics unit, for being based on the IO outstanding message, determines the IO performance of mobile terminal and the IO of application Performance.
CN201710946376.5A 2017-10-12 2017-10-12 IO method for testing performance and system Pending CN109656789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710946376.5A CN109656789A (en) 2017-10-12 2017-10-12 IO method for testing performance and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710946376.5A CN109656789A (en) 2017-10-12 2017-10-12 IO method for testing performance and system

Publications (1)

Publication Number Publication Date
CN109656789A true CN109656789A (en) 2019-04-19

Family

ID=66109257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710946376.5A Pending CN109656789A (en) 2017-10-12 2017-10-12 IO method for testing performance and system

Country Status (1)

Country Link
CN (1) CN109656789A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000543A (en) * 2020-07-29 2020-11-27 北京浪潮数据技术有限公司 Method, device and equipment for detecting time delay performance of storage system
CN112052088A (en) * 2020-08-31 2020-12-08 北京升鑫网络科技有限公司 Adaptive process CPU resource limitation method, device, terminal and storage medium
CN113884750A (en) * 2021-10-29 2022-01-04 核工业西南物理研究院 Device and method for detecting IO port of microprocessor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533366A (en) * 2009-03-09 2009-09-16 浪潮电子信息产业股份有限公司 Method for acquiring and analyzing performance data of server
US7970776B1 (en) * 2008-08-06 2011-06-28 Precise Software Solutions Inc. Apparatus, method and computer readable medium for identifying and quantifying database disk-sort operations
US20170005904A1 (en) * 2015-06-30 2017-01-05 Wipro Limited System and method for monitoring performance of applications for an entity
CN107239339A (en) * 2016-03-29 2017-10-10 阿里巴巴集团控股有限公司 System function optimization parameter determination method, system function optimization method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7970776B1 (en) * 2008-08-06 2011-06-28 Precise Software Solutions Inc. Apparatus, method and computer readable medium for identifying and quantifying database disk-sort operations
CN101533366A (en) * 2009-03-09 2009-09-16 浪潮电子信息产业股份有限公司 Method for acquiring and analyzing performance data of server
US20170005904A1 (en) * 2015-06-30 2017-01-05 Wipro Limited System and method for monitoring performance of applications for an entity
CN107239339A (en) * 2016-03-29 2017-10-10 阿里巴巴集团控股有限公司 System function optimization parameter determination method, system function optimization method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张琳等: "网络组建、管理与安全", 《网络组建、管理与安全 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000543A (en) * 2020-07-29 2020-11-27 北京浪潮数据技术有限公司 Method, device and equipment for detecting time delay performance of storage system
CN112000543B (en) * 2020-07-29 2023-03-31 北京浪潮数据技术有限公司 Method, device and equipment for detecting time delay performance of storage system
CN112052088A (en) * 2020-08-31 2020-12-08 北京升鑫网络科技有限公司 Adaptive process CPU resource limitation method, device, terminal and storage medium
CN113884750A (en) * 2021-10-29 2022-01-04 核工业西南物理研究院 Device and method for detecting IO port of microprocessor
CN113884750B (en) * 2021-10-29 2022-05-20 核工业西南物理研究院 Device and method for detecting IO port of microprocessor

Similar Documents

Publication Publication Date Title
CN106407190B (en) Event record query method and device
US20060031631A1 (en) Method of managing storage capacity in storage system, a storage device and a computer system
US9460032B2 (en) Apparatus and method for processing an interrupt
US8631280B2 (en) Method of measuring and diagnosing misbehaviors of software components and resources
CN107040578A (en) Method of data synchronization, device and system
US20140189689A1 (en) Apparatus for controlling information processing system, computer-readable recording medium storing program thereof, and method thereof
CN108874535B (en) Task adjusting method, computer readable storage medium and terminal device
CN109656789A (en) IO method for testing performance and system
US20140143777A1 (en) Resource Scheduling Method and Device
US9377834B2 (en) Adjusting working frequency of a processor based on monitored idle time
JP5324914B2 (en) Method and apparatus for allocating storage resources
US9003432B1 (en) Efficient management of kernel driver performance data
CN108762686A (en) Consistency verification of data flow control method, device, electronic equipment and storage medium
CN115269108A (en) Data processing method, device and equipment
CN109213659A (en) A kind of monitoring method, device and the storage medium of device memory state
CN112052078A (en) Time-consuming determination method and device
CN109800085A (en) Detection method, device, storage medium and the electronic equipment of resource distribution
CA2780467A1 (en) An improved performance testing tool for financial applications
CN109002381A (en) Process communication monitoring method, electronic device and computer readable storage medium
CN108156054A (en) The test method and device of cloud desktop performance
CN114003345A (en) Cloud-native-based Kubernetes platform health degree determination method and device
CN114356571A (en) Processing method and device
WO2020206703A1 (en) Terminal control method and apparatus, storage medium, and electronic device
CN113760176A (en) Data storage method and device
CN109344043A (en) A kind of method for analyzing performance and relevant apparatus

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

Application publication date: 20190419

RJ01 Rejection of invention patent application after publication