One day a Linux instruction-uptime__linux

Source: Internet
Author: User
Purpose Description

The uptime command is used to display system Run-time information (tell-how long, system has been running.), and the following is an example and description of the output information:

21:41:43 up 2 days, 12:28, 7 users, load average:0.05, 0.04, 0.15

Current time system continuous run time Current user connection number system average load (last 1 minutes, 5 minutes, 15 minutes)

System Running time: for example, above is the system has been running for 2 days 12 hours 28 minutes. So far I have seen the maximum of about more than 400 days. You can also reply to the maximum elapsed time you see.

Current User link number: Not the number of users, open a terminal even if a connection.

System average load: Refers to the average number of processes running in a queue at a specific time interval.

The first line of the W command is the same as the output of the uptime command.

22:34:43 up 2 days, 13:21, 6 users, load average:0.01, 0.01, 0.00
USER TTY from login@ IDLE jcpu pcpu WHAT

The first line of the top command is the same as the output of the uptime command, and the other lines are similar to the output of the free command.
top-22:12:04 up 2 days, 12:58, 7 users, load average:0.14, 0.07, 0.02
tasks:95 Total, 1 running, sleeping, 0 stopped, 0 zombie
Cpu (s): 1.7%us, 0.3%sy, 0.0%ni, 96.7%id, 0.0%wa, 0.7%hi, 0.7%si, 0.0%st
mem:507060k Total, 499424k used, 7636k free, 33476k buffers
swap:2064376k Total, 25144k used, 2039232k free, 335516k cached

The relevant data "6" provides two rules for determining whether the system is overloaded: "How much of the core is the load" rule: in multi-core processing, your system mean should not be higher than the total number of processor cores. (especially the third value, 15-minute average system load) "core core" rule: Core distribution is not important in a few individual physical processes, in fact, two quad-core processors equals four dual-core processors equal to eight single processors. So, it should have eight processor cores. Common Parameters

No. using the sample Example One

[Root@new55 ~]# Uptime
21:41:43 up 2 days, 12:28, 7 users, load average:0.05, 0.04, 0.15
[Root@new55 ~]# Sample Two

[Root@web ~]# Uptime
21:36:32 up, 1:18, 1 user, load average:0.03, 0.03, 0.00
[Root@web ~]# Sample Three

[Root@sunrise root]# Uptime
21:35:22 up 163 days, 6:56, 1 user, load average:1.02, 1.01, 1.00
[Root@sunrise root]# sample Four

[root@mos178 root]# Uptime
04:26:38 up 244 days, 15:34, 1 user, load average:0.00, 0.01, 0.00
[root@mos178 root]# Example Five

[Root@jfht ~]# Uptime
21:44:51 up 307 days, 5:08, 1 user, load average:0.01, 0.02, 0.00
[Root@jfht ~]# Example Six

[ROOT@SMSGW root]# Uptime
21:45:27 up 316 days, 4:30, 2 users, load average:0.00, 0.02, 0.01
[ROOT@SMSGW root]# Sample Seven

[root@web186 root]# Uptime
21:44:55 up 426 days, 3:59, 1 user, load average:0.36, 0.20, 0.13
[root@web186 root]# Example eight

[Web@hnweb1 ~]$ Uptime
21:56:03 up 443 days, 19:33, 3 users, load average:0.08, 0.13, 0.10
[Web@hnweb1 ~]$

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.