Article Title: Loadaverage in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In Linux, commands such as uptime, w, and top all have an average system load of average output. What is the average system load?
The average system load is defined as the average process tree in the running queue within a specific time interval. If a process meets the following conditions, it will be in the running queue: -It does not have the result of waiting for the I/O operation-it does not take the initiative to enter the waiting state (that is, it does not call 'wait ')
-Not stopped (for example, waiting for termination)
For example: [root @ www2 init. d] # uptime pm up 2 days, 2 users, load average: 8.13, 5.90, the final output content of the 4.94 command indicates the average number of processes in the queue running in the past 1, 5, and 15 minutes.
Generally, as long as the number of active processes of each CPU is not greater than 3, the system performance is good. If the number of tasks of each CPU is greater than 5, it indicates that the performance of this machine has a serious problem. In the preceding example, if the system has two CPUs, the current number of tasks for each CPU is 8.13/2 = 4. 065. This indicates that the system performance is acceptable.