uptime

View Linux system load information

Supplementary instructions

uptime command can print the total time the system has been running and the average load of the system. The information that the uptime command can display is: the current time, how long the system has been running, how many logged-in users are currently there, and the average load of the system in the past 1 minute, 5 minutes, and 15 minutes.

grammar

uptime (option)

Options

-V: Display the version information of the command.

Example

Use the uptime command to check the system load:

[root@LinServ-1 ~]# uptime -V #Display uptime command version information
procps version 3.2.7

[root@LinServ-1 ~]# uptime
  15:31:30 up 127 days, 3:00, 1 user, load average: 0.00, 0.00, 0.00

Display content description:

15:31:30 # Current system time
up 127 days, 3:00 # The running time of the host. The longer the time, the more stable your machine is.
1 user #The number of user connections, which is the total number of connections rather than the number of users
load average: 0.00, 0.00, 0.00 # System average load, statistics of the system average load in the last 1, 5, and 15 minutes

So what is system load average? System load average is the average number of processes in the run queue during a specific time interval.

If the number of currently active processes per CPU core is no more than 3, then the system performance is good. If the number of tasks per CPU core is greater than 5, then the machine has serious performance problems.

If your Linux host has a dual-core CPU, when the Load Average is 6, it means that the machine has been fully used.