Understanding --cpu load and performance testing metrics

cpu and load

15985861-2e6b3a8ead00a216

The first performance tests, according to the operation of the completed document is finally in sight, and got the result, see a bunch of indicators and data, still dumbfounded, I do not know what it means each index. Daniel consulted and degree of your mother, digestion understand a little, do not know is not true.

CPU usage: CPU usage over time, the index can be seen from this case within a certain period of time CPU resources are occupied.

And the number within a certain period of time, CPU is processing and waiting for the CPU processes: LoadAverage.

LoadAverage from another angle to reflect the status of the CPU.

The relationship between CPU usage and LoadAverage

: Take a medical examination to make an example:

User: Students CPU to be inspected: inspection departments (B ultrasound, ophthalmology ....)

High Load, CPU usage is low: a total of three doctors ophthalmology, check order, must be ended before a medical examination to get to the next medical treatment because the first doctor's examination takes longer, resulting in many students behind the line, but the next two doctors are in the idle state.

Load: waiting for the students, as more students to wait, so the higher value Load CPU usage: Only one doctor is in working condition, so the CPU utilization rate of 33.33% 2, Load low,

CPU usage is high: Suppose B-ophthalmology department and have the same number of doctors, but doctors work between each is independent. To a new classmate of time, about a classmate checked the time.

Load: Wait students, substantially <= 1

CPU usage: every physician in a busy state, the CPU utilization close to 100% can be seen from the above, not simply from the point of view of one aspect of the performance of the pros and cons. Similarly, it can also start tuning in many ways.

Reproduced in: https: //www.jianshu.com/p/2af4a749e1c0

Guess you like

Origin blog.csdn.net/weixin_34246551/article/details/91161264