The uptime command is used to query the Linux system load.
Command format
Uptime [OPTION]
- v display version
The uptime with no parameters directly outputs the system load.
What is the system load?
The average system load is defined as the average process tree running in the queue for a specific time interval. If a process meets the following criteria, it will be in the run queue:
-It is not in the result of waiting for I/O operation
-It does not actively enter the waiting state (that is, "Wait" is not called)
-Not stopped (for example: waiting to be terminated)
In general, the current number of active processes per CPU core is not greater than 3, the system performance is good! Of course, it is said that each CPU core, that is, if your host is a quad-core CPU, then as long as the uptime last output of a string of characters less than 12 means that the system load is not very serious.
Of course, if you reach 20, it means that the current system load is very serious and it is very slow to open execution Web scripts.
Uptime Command Result description
16:47:41 up 6:54, 2 users, load average:0.00, 0.01, 0.05
Current time system elapsed time current online user average load: Last 1 minutes, 5 minutes, 15 minutes of system load.
The Uptime of Linux commands