Linux Command uptime
The uptime command is used to query linux system loads.
Command Format
Uptime [OPTION]
-V display version
The system load is directly output by uptime without parameters.
What is 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 has no results waiting for I/O operations.
-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)
Generally, if the number of active processes per CPU core is no greater than 3, the system runs well! Of course, this is about every cpu kernel, that is, if your host is a quad-core cpu, as long as the number of characters output by uptime is smaller than 12, the system load is not very serious.
Of course, if it reaches 20, it indicates that the current system load is very serious. It is estimated that the web script is very slow to be opened.
Uptime command result description
16:47:41 up, 2 users, load average: 0.00, 0.01, 0.05
Current time the system has run time the average load of current online users: the load of the system in the last 1 minute, 5 minutes, and 15 minutes.