Use uptime to view average linux system load

Source: Internet
Author: User
The main commands used to analyze linux performance and load are as follows: tload & amp; nbsp; capable of drawing load changes

The main commands used to analyze linux performance and load are as follows:

  • Tload allows you to draw load changes.
  • Uptime also displays the start time
  • W. the logged-on user is displayed at the same time.
  • Top interactive tools
  • Cat/proc/loadavg obtain the average load through/proc system information

Today, let's take a look at the average load of the linux system and check the command uptime. the result of this command is a bit strange:
[Root @ mckee ~] # Uptime
21:44:00 up 30 days, 1 user, load average: 0.17, 0.22, 0.09
Look at the red part. these three numbers indicate the average number of processes in the process queue that the system has run in the past 1 minute, 5 minutes, and 15 minutes.
So how do you know if your system load is too high?
Obviously, my load average is very small. for load average, it depends on the number of your CPU cores:
1. for single-core processors
The values between 0.00 and 1.00 are normal, but as a system administrator, you 'd better leave some room.
When the system load continues to be less than 0.7, it indicates OK
When the system load continues to exceed 0.7, you must begin to investigate where the problem is, to prevent the situation from deteriorating.

When the system load continues to exceed 1.0, you must find a solution to reduce this value.


When the system load reaches 5.0, it indicates that your system has a very serious problem, does not respond for a long time, or is close to the dead. You should not allow the system to reach this value.
2. for multi-core processors
For example, if you have two CPUs and the processing capacity is doubled, the maximum load can reach 2.0, and the number of computers with n CPUs can reach the maximum load of n.0.
You can run the "grep-c 'model name'/proc/cpuinfo" command to view the number of CPU cores on your server.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.