Linux Update command detailed __linux

Source: Internet
Author: User
Tags current time

The Linux uptime command is primarily used to get the host running time and query the Linux system load and other information. The uptime command used to show only how long the system was running. Now, you can show how long the system has been running, and the display of the information is: now time, how long the system has been running, how many users are currently logged in, the system's average load in the last 1 minutes, 5 minutes, and 15 minutes.

Uptime command usage is simple: direct input

# uptime

Can.

Input Sample:

18:02:41 up, 23:42, 1 user, Load average:0.00, 0.00, 0.00

1 can be considered to be the optimal load value. The load is changed as the system varies. Single-CPU system 1-3 and SMP system 6-10 are all possible to accept.

There is also a parameter-V, which is used to query the version. (Note that the letter is uppercase V)

[Linux @ localhost]$ uptime-v

Procps version 3.2.7

[Linux @ localhost]$ uptime

Display results as:

10:19:04 up 257 days, 18:56, users, load average:2.10, 2.10,2.09

Display Content Description:

10:19:04//System Current time

Up to 257 days, 18:56//host has run time, the greater the time, indicating that your machine more stable.

Number of users//connections, which is the total number of connections instead of the number of users

Load average//System average load, statistic last 1, 5, 15 min system load

So what is the average system load? The system average load refers to the average number of processes running in a queue at a specific time interval.

If the current number of active processes per CPU kernel is not greater than 3, then the performance of the system is good. If the number of tasks per CPU kernel is greater than 5, then this machine has a serious performance problem.

If your Linux host is 1 dual-core CPUs, when the load Average is 6, the machine is fully used.

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.